Skip to content
HALOWERK

File Formats and Conversion

media playlist clip fetch plan

HLS clip planning returns the first and last sequences required to cover a half-open playback interval. Use it when an agent needs a minimal contiguous segment request range.

POST https://format.halowerk.com/v1/media-playlist-clip-fetch-plan

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
playliststringYes
fromnumberYes
tonumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "playlist": {
      "type": "string",
      "maxLength": 18000,
      "minLength": 1
    },
    "from": {
      "type": "number",
      "minimum": 0,
      "maximum": 8640000
    },
    "to": {
      "type": "number",
      "minimum": 0,
      "maximum": 8640000
    }
  },
  "required": [
    "playlist",
    "from",
    "to"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "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",
  "from": 1,
  "to": 4.1
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "first": {
          "type": "integer"
        },
        "last": {
          "type": "integer"
        },
        "overfetch_seconds": {
          "type": "number"
        }
      },
      "required": [
        "first",
        "last",
        "overfetch_seconds"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’