Video API, REST: Subtitle.Get
Return a specific subtitle.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/subtitles/{subtitleId}
Path parameters
Field |
Description |
subtitleId |
string Required field. ID of the subtitle. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"language": "string",
"label": "string",
"status": "string",
"filename": "string",
"createdAt": "string",
"updatedAt": "string",
// Includes only one of the fields `videoId`
"videoId": "string"
// end of the list of possible fields
}
Field |
Description |
id |
string ID of the subtitle. |
language |
string Subtitle language represented as a three-letter ISO 639-3 code. |
label |
string Subtitle caption to be displayed on screen during video playback. |
status |
enum (SubtitleStatus) Subtitle status.
|
filename |
string Subtitle filename. |
createdAt |
string (date-time) Time when subtitle was created. String in RFC3339 To work with values in this field, use the APIs described in the |
updatedAt |
string (date-time) Time of last subtitle update. String in RFC3339 To work with values in this field, use the APIs described in the |
videoId |
string ID of the video. Includes only one of the fields |