Skip to content
Fourohtwo

format.halowerk.com/v1/media-playlist-tail-cadence

HLS playlist analysis compares the final segment length with the median of the preceding segment durations. Use it when an agent needs a shortened or unusually long ending.

BaseAnswering
POSThttps://format.halowerk.com/v1/media-playlist-tail-cadence

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://format.halowerk.com/v1/media-playlist-tail-cadence", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"playlist":"#EXTM3U\n#EXT-X-VERSION:3\n#EXT-X-TARGETDURATION:2\n#EXT-X-MEDIA-SEQUENCE:10\n#EXT-X-PLAYLIST-TYPE:VOD\n#EXTINF:2.005333,\nstudio-tone-010.ts\n#EXTINF:2.005333,\nstudio-tone-011.ts\n#EXTINF:2.005333,\nstudio-tone-012.ts\n#EXTINF:0.526667,\nstudio-tone-013.ts\n#EXT-X-ENDLIST\n"}),
});
console.log(await res.json());

Example input

{
  "playlist": "#EXTM3U\n#EXT-X-VERSION:3\n#EXT-X-TARGETDURATION:2\n#EXT-X-MEDIA-SEQUENCE:10\n#EXT-X-PLAYLIST-TYPE:VOD\n#EXTINF:2.005333,\nstudio-tone-010.ts\n#EXTINF:2.005333,\nstudio-tone-011.ts\n#EXTINF:2.005333,\nstudio-tone-012.ts\n#EXTINF:0.526667,\nstudio-tone-013.ts\n#EXT-X-ENDLIST\n"
}