Skip to main contentIBM Video Streaming Developers

Get playlist information

List the playlists on a channel

Returns data on a video playlists created on a specific channel.

GET https://api.video.ibm.com/channels/{channel_id}/playlists.json

Parameters

The parameters for the GET request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
pageintegerOPTIONALRequested page number (value is 1 by default)
pagesizeintegerOPTIONALRequested page size (value is 50 by default, max. 50)
filter[include_empty]stringOPTIONALIf the value is true then empty playlists will be returned (false by default)

Success response

Upon success, a set of key-value pairs is returned under a playlists element.

PARAMETERTYPEDESCRIPTION
idstringUnique ID of the playlist.
titlestringTitle of the playlist
behaviorstringPossible values: static, dynamic
total_durationstringThe sum of the duration of the videos added to the playlist in seconds.
thumbnailobjectA set of key-value pairs containing URLs of the thumbnail images. Attributes: default and various image sizes (e.g. image_112x63, … , image_320x180, image_640x360, image_1920x1080)
created_atnumberTime of creation returned as a Unix timestamp
updated_atnumberTime of last update returned as a Unix timestamp
channel_idnumberThe unique ID of the channel

Example of a success response:

{
"playlists": [
{
"id": "111",
"title": "Title of a playlist",
"behavior": "static",
"total_duration": "176.256",
"thumbnail": {
"default": "https://ustvstaticcdn1-a.akamaihd.net/111.jpg",

The paging information can be found under the paging key. Example:

"paging": {
"previous": "https://api.video.ibm.com/channels/CHANNEL_ID/playlists.json?pagesize=PAGE_SIZE&page=PREVIOUS_PAGE",
"next": "https://api.video.ibm.com/channels/CHANNEL_ID/playlists.json?pagesize=PAGE_SIZE&page=NEXT_PAGE",
"page_count": 8,
"item_count": 38
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
404 Not Foundnot_foundChannel does not exist
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get playlist details

Returns data of a specific video playlist.

GET https://api.video.ibm.com/playlists/{playlist_id}.json

Parameters

This request has no parameters.

Success response

Upon success, a set of key-value pairs is returned under a playlists element.

KEYTYPEDESCRIPTION
idstringUnique ID of the playlist.
titlestringTitle of the playlist
behaviorstringPossible values: static, dynamic
total_durationstringThe sum of the duration of the videos added to the playlist in seconds
thumbnailobjectA set of key-value pairs containing URLs of the thumbnail images. Attributes: default and various image sizes (e.g. image_112x63, … , image_320x180, image_640x360, image_1920x1080)
created_atnumberTime of creation returned as a Unix timestamp
updated_atnumberTime of last update returned as a Unix timestamp
channel_idnumberThe unique ID of the channel

Example of a success response:

{
"playlist": {
"id": "111",
"title": "Title of a playlist",
"behavior": "static",
"total_duration": "176.256",
"thumbnail": {
"default": "https://ustvstaticcdn1-a.akamaihd.net/111.jpg",
"image_192x108": "https://ustvstaticcdn1-a.akamaihd.net/111.jpg",

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
403 ForbiddenForbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel or playlist does not exist
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request