Video API, gRPC: VideoService.List
List videos for channel.
gRPC request
rpc List (ListVideoRequest) returns (ListVideoResponse)
ListVideoRequest
{
"channelId": "string",
"pageSize": "int64",
"pageToken": "string",
"orderBy": "string",
"filter": "string"
}
Field |
Description |
channelId |
string ID of the channel. |
pageSize |
int64 The maximum number of the results per page to return. Default value: 100. |
pageToken |
string Page token for getting the next page of the result. |
orderBy |
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",
"channelId": "string",
"title": "string",
"description": "string",
"thumbnailId": "string",
"status": "VideoStatus",
"duration": "google.protobuf.Duration",
"visibilityStatus": "VisibilityStatus",
// Includes only one of the fields `tusd`
"tusd": {
"url": "string"
},
// end of the list of possible fields
// Includes only one of the fields `publicAccess`, `authSystemAccess`
"publicAccess": "VideoPublicAccessRights",
"authSystemAccess": "VideoAuthSystemAccessRights",
// end of the list of possible fields
"createdAt": "google.protobuf.Timestamp",
"updatedAt": "google.protobuf.Timestamp",
"labels": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
videos[] |
|
nextPageToken |
string Token for getting the next page. |
Video
Field |
Description |
id |
string ID of the video. |
channelId |
string ID of the channel where the video was created. |
title |
string Video title. |
description |
string Video description. |
thumbnailId |
string ID of the thumbnail. |
status |
enum VideoStatus Video status.
|
duration |
Video duration. Optional, may be empty until the transcoding result is ready. |
visibilityStatus |
enum VisibilityStatus Video visibility status.
|
tusd |
Upload video using the tus protocol. Includes only one of the fields Source type. |
publicAccess |
Video is available to everyone. Includes only one of the fields Video access rights. |
authSystemAccess |
Checking access rights using the authorization system. Includes only one of the fields Video access rights. |
createdAt |
Time when video was created. |
updatedAt |
Time of last video update. |
labels |
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 |