Video API, REST: Playlist.List
Lists all playlists in a specific channel with pagination support.
Results can be filtered and sorted using the provided parameters.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/playlists
Query parameters
| Field | Description | 
| channelId | string Required field. ID of the channel containing the playlists to list. | 
| pageSize | string (int64) The maximum number of playlists to return per page. | 
| pageToken | string Page token for retrieving the next page of results. | 
| orderBy | string Specifies the ordering of results. | 
| filter | string Filter expression to narrow down the list of returned playlists. Supported logical operators: ["AND", "OR"]. Example:  Filterable fields: ["id", "title"]. | 
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"
        }
      ],
      "stylePresetId": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "nextPageToken": "string"
}
| Field | Description | 
| playlists[] | List of playlists matching the request criteria. | 
| nextPageToken | string Token for retrieving the next page of results. | 
Playlist
Entity representing an ordered collection of videos or episodes.
Playlists allow organizing content into sequences for improved user experience.
| Field | Description | 
| id | string Unique identifier of the playlist. | 
| channelId | string Identifier of the channel where this playlist is created and managed. | 
| title | string Title of the playlist displayed in interfaces and players. | 
| description | string Detailed description of the playlist's content and purpose. | 
| items[] | Ordered list of content items included in this playlist. | 
| stylePresetId | string Identifier of the style preset used in the player during playlist playback. | 
| createdAt | string (date-time) Timestamp when the playlist was initially created in the system. String in RFC3339 To work with values in this field, use the APIs described in the | 
| updatedAt | string (date-time) Timestamp of the last modification to the playlist or its metadata. String in RFC3339 To work with values in this field, use the APIs described in the | 
PlaylistItem
Represents a single item in a playlist.
Each item references either a video or an episode and specifies its position in the sequence.
| Field | Description | 
| videoId | string Identifier of a video included in the playlist. Includes only one of the fields  Specifies the content identifier type for this playlist item. | 
| episodeId | string Identifier of an episode included in the playlist. Includes only one of the fields  Specifies the content identifier type for this playlist item. | 
| position | string (int64) Position of this item in the playlist sequence (zero-indexed). |