Video API, REST: Episode.BatchGet
Batch get episodes for channel.
HTTP request
POST https://video.api.cloud.yandex.net/video/v1/episodes:batchGet
Body parameters
{
"channelId": "string",
"episodeIds": [
"string"
]
}
Field |
Description |
channelId |
string Required field. ID of the channel. |
episodeIds[] |
string List of requested episode IDs. |
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",
// Includes only one of the fields `publicAccess`, `authSystemAccess`, `signUrlAccess`
"publicAccess": "object",
"authSystemAccess": "object",
"signUrlAccess": "object",
// end of the list of possible fields
"createdAt": "string",
"updatedAt": "string"
}
]
}
Field |
Description |
episodes[] |
List of episodes for specific channel. |
Episode
Field |
Description |
id |
string ID of the episode. |
streamId |
string ID of the stream. Optional, empty if the episode is linked to the line |
lineId |
string ID of the line. Optional, empty if the episode is linked to the stream |
title |
string Channel title. |
description |
string Channel description. |
thumbnailId |
string ID of the thumbnail. |
startTime |
string (date-time) Episode start time. String in RFC3339 To work with values in this field, use the APIs described in the |
finishTime |
string (date-time) Episode finish time. String in RFC3339 To work with values in this field, use the APIs described in the |
dvrSeconds |
string (int64) Enables episode DVR mode. DVR seconds determines how many last seconds of the stream are available. possible values:
|
visibilityStatus |
enum (VisibilityStatus)
|
publicAccess |
object Episode is available to everyone. Includes only one of the fields Episode access rights. |
authSystemAccess |
object Checking access rights using the authorization system. Includes only one of the fields Episode access rights. |
signUrlAccess |
object Checking access rights using url's signature. Includes only one of the fields Episode access rights. |
createdAt |
string (date-time) Time when episode 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 episode update. String in RFC3339 To work with values in this field, use the APIs described in the |