Get an HLS media playlist
GET
/api/v1/video/{item_id}/hls/{height}/index.m3u8
const url = 'https://example.com/api/v1/video/example/hls/1/index.m3u8';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/video/example/hls/1/index.m3u8 \ --header 'Authorization: Bearer <token>'Return the playlist for one video rendition. Use height 720 or 1080. If the rendition is not ready, the server queues it and returns 202 with a retry hint. Route: /api/v1/video/{item_id}/hls/{height}/index.m3u8. Inputs: item_id, height. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”item_id
required
string
height
required
integer format: int32
Responses
Section titled “Responses”HLS media playlist
Media typeapplication/vnd.apple.mpegurl
The rendition is queued
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}