Skip to main contentIBM Video Streaming Developers

Featured videos on channel page

Returns data of featured videos listed on the channel page.

GET https://api.video.ibm.com/channels/{channel_id}/featured-videos.json

Parameters

The query parameters for the GET request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
pageintegerOPTIONALRequested page number (value is 1 by default)
pagesizeintegerOPTIONALRequested page size (value is 50 by default, max. 50)
detail_levelstringOPTIONALVerbosity level. Possible value: minimal. In case of minimal verbosity level, the result set is limited to id and links data. If the channel is protected (
see Security section
), only minimal data can be retrieved without a valid access token.

Success response

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

KEYTYPEDESCRIPTION
idstringUnique ID of the video
titlestringVideo title
descriptionstringVideo description
urlstringVideo URL
lengthstringVideo length in seconds
created_atnumberThe date and time when the video was created (Unix timestamp). By default, it has the same value as the added_at field, but it can be edited by channel admins to better reflect the real content creation date and time for the viewers.
added_atnumberThe date and time when the video was added (uploaded or recorded) to IBM Video Streaming (Unix timestamp)
file_sizestringVideo file size in bytes
viewsnumberNumber views on the video
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)
media_urlsobject(This field is being deprecated.)
linksobjectContains information about the channel of the video

Example of a success response:

{
"videos": [
{
"id": "111",
"title": "Title of video",
"description": "Description of video",
"url": "http://www.ustream.tv/recorded/111",
"length": "12345.123456",
"created_at": 1399388736,

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundThis error code is returned in the following cases: The channel does not exist; The featured videos on the channel are not shown
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

You can adjust what videos are designated as featured on a channel.

PUT https://api.video.ibm.com/channels/{channel_id}/featured-videos.json

Parameters

The parameters for the PUT request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
video_idsarrayREQUIREDVideo IDs to be added to the channel featured videos.

Example:

POST /channels/{channel_id}/featured-videos.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
video_ids[]=111&video_ids[]=222

The token in the request above is only an example.

Success response

The response will contain the following collection limit headers:

HEADERTYPEDESCRIPTION
X-Collection-LimitstringThe maximum number of videos that can be featured on a channel
X-Collection-RemainingnumberHow many more videos can be featured on the channel

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
413 Request Entity Too Largelimit_reachedThe number of videos in the featured videos list have reached the limit. Check the returned collection limit headers
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request