Video API, gRPC: ThumbnailService.BatchGenerateDownloadURLs
Written by
Updated at April 24, 2025
Generate urls for downloading images.
gRPC request
rpc BatchGenerateDownloadURLs (BatchGenerateDownloadURLsRequest) returns (BatchGenerateDownloadURLsResponse)
BatchGenerateDownloadURLsRequest
{
"channel_id": "string",
"thumbnail_ids": [
"string"
]
}
Field |
Description |
channel_id |
string Required field. ID of the channel. |
thumbnail_ids[] |
string List of thumbnails IDs. |
BatchGenerateDownloadURLsResponse
{
"download_urls": [
{
"thumbnail_id": "string",
"original_url": "string",
"scaled_urls": [
{
"url": "string",
"max_width": "int64",
"max_height": "int64",
"image_format": "ImageFormat"
}
]
}
]
}
Field |
Description |
download_urls[] |
List of download urls. |
ThumbnailDownloadURL
Field |
Description |
thumbnail_id |
string ID of the thumbnail. |
original_url |
string Original download url. |
scaled_urls[] |
List of download urls, one per each available image size. |
ScaledURL
Field |
Description |
url |
string Download url. |
max_width |
int64 Maximum width of the rectangle to inscribe the thumbnail into. |
max_height |
int64 Maximum height of the rectangle to inscribe the thumbnail into. |
image_format |
enum ImageFormat Image format.
|