Video API, REST: Thumbnail.BatchGenerateDownloadURLs
Written by
Updated at April 24, 2025
Generate urls for downloading images.
HTTP request
POST https://video.api.cloud.yandex.net/video/v1/thumbnails:batchGenerateDownloadURLs
Body parameters
{
"channelId": "string",
"thumbnailIds": [
"string"
]
}
Field |
Description |
channelId |
string Required field. ID of the channel. |
thumbnailIds[] |
string List of thumbnails IDs. |
Response
HTTP Code: 200 - OK
{
"downloadUrls": [
{
"thumbnailId": "string",
"originalUrl": "string",
"scaledUrls": [
{
"url": "string",
"maxWidth": "string",
"maxHeight": "string",
"imageFormat": "string"
}
]
}
]
}
Field |
Description |
downloadUrls[] |
List of download urls. |
ThumbnailDownloadURL
Field |
Description |
thumbnailId |
string ID of the thumbnail. |
originalUrl |
string Original download url. |
scaledUrls[] |
List of download urls, one per each available image size. |
ScaledURL
Field |
Description |
url |
string Download url. |
maxWidth |
string (int64) Maximum width of the rectangle to inscribe the thumbnail into. |
maxHeight |
string (int64) Maximum height of the rectangle to inscribe the thumbnail into. |
imageFormat |
enum (ImageFormat) Image format.
|