Skip to content
HALOWERK

File Formats and Conversion

hls playlist subtitle language

HLS subtitle language lookup resolves linked subtitle tracks for a requested language and optional forced-only selection. Use it when an agent needs choosing a subtitle rendition.

POST https://format.halowerk.com/v1/hls-playlist-subtitle-language

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
playliststringYes
languagestringYes
forced_onlybooleanYes
Show full input schema
{
  "type": "object",
  "properties": {
    "playlist": {
      "type": "string",
      "maxLength": 60000,
      "minLength": 1
    },
    "language": {
      "type": "string",
      "maxLength": 35,
      "minLength": 1
    },
    "forced_only": {
      "type": "boolean"
    }
  },
  "required": [
    "playlist",
    "language",
    "forced_only"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "playlist": "#EXTM3U\n#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID=\"s\",NAME=\"en\",LANGUAGE=\"en\",URI=\"s.m3u8\",FORCED=YES\n#EXT-X-STREAM-INF:BANDWIDTH=92000,SUBTITLES=\"s\"\nv.m3u8",
  "language": "en",
  "forced_only": false
}

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": {
        "tracks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              },
              "forced": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "uri",
              "forced"
            ]
          }
        },
        "groups_checked": {
          "type": "integer"
        }
      },
      "required": [
        "tracks",
        "groups_checked"
      ]
    },
    "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 โ†’