Video API, gRPC: VideoService.BatchGet
Batch get video in specific channel.
gRPC request
rpc BatchGet (BatchGetVideosRequest) returns (BatchGetVideosResponse)
BatchGetVideosRequest
{
"channel_id": "string",
"video_ids": [
"string"
]
}
Field |
Description |
channel_id |
string Required field. ID of the channel. |
video_ids[] |
string List of requested video IDs. |
BatchGetVideosResponse
{
"videos": [
{
"id": "string",
"channel_id": "string",
"title": "string",
"description": "string",
"thumbnail_id": "string",
"status": "VideoStatus",
"duration": "google.protobuf.Duration",
"visibility_status": "VisibilityStatus",
"auto_transcode": "AutoTranscode",
"subtitle_ids": [
"string"
],
// Includes only one of the fields `tusd`
"tusd": {
"url": "string"
},
// end of the list of possible fields
// Includes only one of the fields `public_access`, `auth_system_access`, `sign_url_access`
"public_access": "VideoPublicAccessRights",
"auth_system_access": "VideoAuthSystemAccessRights",
"sign_url_access": "VideoSignURLAccessRights",
// end of the list of possible fields
"created_at": "google.protobuf.Timestamp",
"updated_at": "google.protobuf.Timestamp",
"labels": "map<string, string>"
}
]
}
Field |
Description |
videos[] |
List of videos for channel. |
Video
Field |
Description |
id |
string ID of the video. |
channel_id |
string ID of the channel where the video was created. |
title |
string Video title. |
description |
string Video description. |
thumbnail_id |
string ID of the thumbnail. |
status |
enum VideoStatus Video status.
|
duration |
Video duration. Optional, may be empty until the transcoding result is ready. |
visibility_status |
enum VisibilityStatus Video visibility status.
|
auto_transcode |
enum AutoTranscode Auto start transcoding.
|
subtitle_ids[] |
string IDs of active video subtitles. |
tusd |
Upload video using the tus protocol. Includes only one of the fields Source type. |
public_access |
Video is available to everyone. Includes only one of the fields Video access rights. |
auth_system_access |
Checking access rights using the authorization system. Includes only one of the fields Video access rights. |
sign_url_access |
Checking access rights using url's signature. Includes only one of the fields Video access rights. |
created_at |
Time when video was created. |
updated_at |
Time of last video update. |
labels |
object (map<string, string>) Custom labels as |
VideoTUSDSource
Field |
Description |
url |
string URL for uploading video via the tus protocol. |
VideoPublicAccessRights
Field |
Description |
Empty |
VideoAuthSystemAccessRights
Field |
Description |
Empty |
VideoSignURLAccessRights
Field |
Description |
Empty |