Video API, REST: Playlist.List
List playlists for a channel.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/playlists
Query parameters
Field |
Description |
channelId |
string Required field. ID of the channel. |
pageSize |
string (int64) The maximum number of the results per page to return. |
pageToken |
string Page token for getting the next page of the result. |
orderBy |
string By which column the listing should be ordered and in which direction, |
filter |
string Filter expression that filters resources listed in the response. |
Response
HTTP Code: 200 - OK
{
"playlists": [
{
"id": "string",
"channelId": "string",
"title": "string",
"description": "string",
"items": [
{
// Includes only one of the fields `videoId`, `episodeId`
"videoId": "string",
"episodeId": "string",
// end of the list of possible fields
"position": "string"
}
],
"createdAt": "string",
"updatedAt": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
playlists[] |
List of playlists for specific channel. |
nextPageToken |
string Token for getting the next page. |
Playlist
Entity representing an ordered list of videos or episodes.
Field |
Description |
id |
string ID of the playlist. |
channelId |
string ID of the channel to create the playlist in. |
title |
string Playlist title. |
description |
string Playlist description. |
items[] |
List of playlist items. |
createdAt |
string (date-time) Time when playlist was created. String in RFC3339 To work with values in this field, use the APIs described in the |
updatedAt |
string (date-time) Time of last playlist update. String in RFC3339 To work with values in this field, use the APIs described in the |
PlaylistItem
Field |
Description |
videoId |
string ID of the video. Includes only one of the fields |
episodeId |
string ID of the episode. Includes only one of the fields |
position |
string (int64) Item position (zero-indexed). |