Video API, gRPC: VideoService.List
List videos for channel.
gRPC request
rpc List (ListVideoRequest) returns (ListVideoResponse)
ListVideoRequest
{
"channel_id": "string",
"page_size": "int64",
"page_token": "string",
"order_by": "string",
"filter": "string"
}
Field |
Description |
channel_id |
string Required field. ID of the channel. |
page_size |
int64 The maximum number of the results per page to return. Default value: 100. |
page_token |
string Page token for getting the next page of the result. |
order_by |
string By which column the listing should be ordered and in which direction, |
filter |
string Filter expression that filters resources listed in the response. |
ListVideoResponse
{
"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>"
}
],
"next_page_token": "string"
}
Field |
Description |
videos[] |
|
next_page_token |
string Token for getting the next page. |
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 |