Video API, REST: Episode.List
Lists all episodes associated with a specific stream or stream line with pagination support.
Results can be filtered and sorted using the provided parameters.
HTTP request
GET https://video.api.yandexcloud.kz/video/v1/episodes
Query parameters
|
Field |
Description |
|
streamId |
string ID of the stream containing the episodes to list. The maximum string length in characters is 50. Includes only one of the fields Specifies the parent resource to list episodes from (exactly one must be chosen). |
|
lineId |
string ID of the stream line containing the episodes to list. The maximum string length in characters is 50. Includes only one of the fields Specifies the parent resource to list episodes from (exactly one must be chosen). |
|
pageSize |
string (int64) The maximum number of episodes to return per page. The maximum value is 100. |
|
pageToken |
string Page token for retrieving the next page of results. The maximum string length in characters is 15000. |
|
orderBy |
string Specifies the ordering of results. The maximum string length in characters is 50. |
|
filter |
string Filter expression to narrow down the list of returned episodes. Supported logical operators: ["AND", "OR"]. Example: Filterable fields: ["id", "title"]. The maximum string length in characters is 1000. |
Response
HTTP Code: 200 - OK
{
"episodes": [
{
"id": "string",
"streamId": "string",
"lineId": "string",
"title": "string",
"description": "string",
"thumbnailId": "string",
"startTime": "string",
"finishTime": "string",
"dvrSeconds": "string",
"visibilityStatus": "string",
"stylePresetId": "string",
// Includes only one of the fields `publicAccess`, `signUrlAccess`
"publicAccess": "object",
"signUrlAccess": "object",
// end of the list of possible fields
"createdAt": "string",
"updatedAt": "string"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
episodes[] |
List of episodes matching the request criteria. |
|
nextPageToken |
string Token for retrieving the next page of results. |
Episode
Entity representing a stream fragment that can be accessed independently.
Episodes can be linked to either a stream or a line
and provide a way to reference specific portions of the corresponding content.
|
Field |
Description |
|
id |
string Unique identifier of the episode. |
|
streamId |
string Identifier of the stream this episode is linked to. |
|
lineId |
string Identifier of the line this episode is linked to. |
|
title |
string Title of the episode displayed in interfaces and players. |
|
description |
string Detailed description of the episode content and context. |
|
thumbnailId |
string Identifier of the thumbnail image used to represent the episode visually. |
|
startTime |
string (date-time) Timestamp marking the beginning of the episode content. String in RFC3339 To work with values in this field, use the APIs described in the |
|
finishTime |
string (date-time) Timestamp marking the end of the episode content. String in RFC3339 To work with values in this field, use the APIs described in the |
|
dvrSeconds |
string (int64) Controls the Digital Video Recording (DVR) functionality for the episode. Possible values:
|
|
visibilityStatus |
enum (VisibilityStatus) Current visibility status controlling whether the episode is publicly available.
|
|
stylePresetId |
string Identifier of the style preset used in the player during episode playback. |
|
publicAccess |
object Allows unrestricted public access to the episode via direct link. Includes only one of the fields Specifies the episode access permission settings. |
|
signUrlAccess |
object Restricts episode access using URL signatures for secure time-limited access. Includes only one of the fields Specifies the episode access permission settings. |
|
createdAt |
string (date-time) Timestamp when the episode 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 episode or its metadata. String in RFC3339 To work with values in this field, use the APIs described in the |