Video API, REST: Video.BatchGet
Batch get videos in specific channel.
HTTP request
POST https://video.api.cloud.yandex.net/video/v1/videos:batchGet
Body parameters
{
"channelId": "string",
"videoIds": [
"string"
]
}
Field |
Description |
channelId |
string Required field. ID of the channel. |
videoIds[] |
string List of requested video IDs. |
Response
HTTP Code: 200 - OK
{
"videos": [
{
"id": "string",
"channelId": "string",
"title": "string",
"description": "string",
"thumbnailId": "string",
"status": "string",
"errorMessage": "string",
"visibilityStatus": "string",
"duration": "string",
"autoTranscode": "string",
"enableAd": "boolean",
"subtitleIds": [
"string"
],
"features": {
"summary": {
"result": "string",
"urls": [
{
"url": "string",
"trackIndex": "string",
"srcLang": "string"
}
]
}
},
// Includes only one of the fields `tusd`
"tusd": {
"url": "string",
"fileSize": "string"
},
// end of the list of possible fields
// Includes only one of the fields `publicAccess`, `signUrlAccess`
"publicAccess": "object",
"signUrlAccess": "object",
// end of the list of possible fields
"createdAt": "string",
"updatedAt": "string",
"labels": "object"
}
]
}
Field |
Description |
videos[] |
List of videos for channel. |
Video
Field |
Description |
id |
string ID of the video. |
channelId |
string ID of the channel where the video was created. |
title |
string Video title displayed to users. |
description |
string Detailed description of the video. |
thumbnailId |
string ID of the video's thumbnail image. |
status |
enum (VideoStatus) Video status.
|
errorMessage |
string Error message describing the reason for video processing failure, if any. |
visibilityStatus |
enum (VisibilityStatus) Visibility status of the video.
|
duration |
string (duration) Video duration. Optional, may be empty until the transcoding result is ready. |
autoTranscode |
enum (AutoTranscode) Auto-transcoding setting.
|
enableAd |
boolean Enable advertisement for this video. |
subtitleIds[] |
string List of IDs defining the active subtitles for the video. |
features |
Additional video processing features and their results. |
tusd |
Upload video using the tus protocol. Includes only one of the fields Video upload source definition (one source variant must be chosen). |
publicAccess |
object Publicly accessible video available for viewing by anyone with the direct link. Includes only one of the fields Video access permission settings. |
signUrlAccess |
object Checking access rights using url's signature. Includes only one of the fields Video access permission settings. |
createdAt |
string (date-time) Time when video 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 video update. String in RFC3339 To work with values in this field, use the APIs described in the |
labels |
object (map<string, string>) Custom labels as |
VideoFeatures
Field |
Description |
summary |
Summarization result. |
Summary
Field |
Description |
result |
enum (FeatureResult)
|
urls[] |
SummaryURL
Field |
Description |
url |
string |
trackIndex |
string (int64) Input audio track index (one-based). |
srcLang |
string Source track language (three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3). |
VideoTUSDSource
Video upload source via tus protocol.
Field |
Description |
url |
string URL for uploading video via the tus protocol. |
fileSize |
string (int64) Size of the uploaded file, in bytes. |