Get HLS Segment Duration by Library

Returns the configuration of a specific library. This page focuses only on the hls_segment_duration field.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

GET /library/{library_id}

Returns the configuration of a specific library. This page documents only the hls_segment_duration field.

The HLS segment duration is how long each .ts piece of a transcoded video lasts. It is configurable per library (default 6 seconds). A larger segment produces fewer files, and therefore fewer requests to the CDN and to storage — a cost lever. It does not reduce bandwidth in GB (the bitrate is the same), and it can slightly increase time-to-first-frame and reduce seek precision.

📘

Authorization

Requires a valid API token in the Authorization header (no Bearer prefix).

HTTP Method & Path

GET /library/{library_id}

Base URL: https://api-v2.pandavideo.com.br

🚧

Path

It is /library/{library_id} (singular), and the library_id goes in the URL — not in the body.

Path Parameters

ParameterTypeRequiredDescription
library_idstring (uuid)yesUnique identifier of the library.

The HLS field in the response

FieldTypeDescription
hls_segment_durationintegerDuration of each HLS segment in seconds (4–15, default 6).

The returned value is the one that applies to new uploads and reencodes.

Success Response (200)

{
  "data": {
    "hls_segment_duration": 6
  }
}

Error Responses

  • 404 — library not found.

Example — cURL

curl -X GET "https://api-v2.pandavideo.com.br/library/{library_id}" \
  -H "Authorization: {api_key}"
Path Params
uuid
required

Unique identifier of the library (UUID). Goes in the URL, not in the body.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json