Video API, REST: Video.BatchGetPlayerURLs
Generates multiple player URLs for a list of videos in a specific channel in a single request.
This is more efficient than making multiple GetPlayerURL requests when retrieving several URLs.
HTTP request
POST https://video.api.cloud.yandex.net/video/v1/videos:batchGetPlayerURLs
Body parameters
{
"channelId": "string",
"videoIds": [
"string"
],
"params": {
"mute": "boolean",
"autoplay": "boolean",
"hidden": "boolean"
},
"signedUrlExpirationDuration": "string"
}
|
Field |
Description |
|
channelId |
string Required field. ID of the channel containing the videos for which to generate player URLs. The maximum string length in characters is 50. |
|
videoIds[] |
string List of video IDs for which to generate player URLs. The number of elements must be in the range 1-100. The maximum string length in characters for each value is 50. |
|
params |
Optional player parameters to customize the playback experience. |
|
signedUrlExpirationDuration |
string (duration) For episodes with signed URL access, specifies how long the generated URL will be valid. |
VideoPlayerParams
|
Field |
Description |
|
mute |
boolean If true, the player will start with audio muted. |
|
autoplay |
boolean If true, the video will start playing automatically when the player loads. |
|
hidden |
boolean If true, the player interface controls will be hidden initially. |
Response
HTTP Code: 200 - OK
{
"playerUrls": [
"string"
]
}
|
Field |
Description |
|
playerUrls[] |
string List of player URLs corresponding to the requested video IDs. |