Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • AI Studio
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Yandex Cloud Video
    • Обзор
    • Управление
    • Решение проблем
  • Управление доступом
  • Правила тарификации
    • Аутентификация в API
    • Начало работы с API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • GenerateUploadURL
        • Delete
  • Аудитные логи Audit Trails
  • История изменений

В этой статье:

  • gRPC request
  • ListSubtitlesRequest
  • ListSubtitlesResponse
  • Subtitle
  1. Справочник API
  2. gRPC (англ.)
  3. Subtitle
  4. List

Video API, gRPC: SubtitleService.List

Статья создана
Yandex Cloud
Обновлена 8 августа 2025 г.
  • gRPC request
  • ListSubtitlesRequest
  • ListSubtitlesResponse
  • Subtitle

Lists all subtitles associated with a specific video with pagination support.
Results can be filtered and sorted using the provided parameters.

gRPC requestgRPC request

rpc List (ListSubtitlesRequest) returns (ListSubtitlesResponse)

ListSubtitlesRequestListSubtitlesRequest

{
  "page_size": "int64",
  "page_token": "string",
  // Includes only one of the fields `video_id`
  "video_id": "string"
  // end of the list of possible fields
}

Field

Description

page_size

int64

The maximum number of subtitles to return per page.

page_token

string

Page token for retrieving the next page of results.
This token is obtained from the next_page_token field in the previous ListSubtitlesResponse.

video_id

string

ID of the video containing the subtitles to list.

Includes only one of the fields video_id.

Specifies the parent resource to list subtitles from (exactly one must be chosen).

ListSubtitlesResponseListSubtitlesResponse

{
  "subtitles": [
    {
      "id": "string",
      "language": "string",
      "label": "string",
      "status": "SubtitleStatus",
      "source_type": "SubtitleSourceType",
      "filename": "string",
      "created_at": "google.protobuf.Timestamp",
      "updated_at": "google.protobuf.Timestamp",
      // Includes only one of the fields `video_id`
      "video_id": "string"
      // end of the list of possible fields
    }
  ],
  "next_page_token": "string"
}

Field

Description

subtitles[]

Subtitle

List of subtitles matching the request criteria.
May be empty if no subtitles match the criteria or if the video has no subtitles.

next_page_token

string

Token for retrieving the next page of results.
Empty if there are no more results available.

SubtitleSubtitle

Entity representing a subtitle track that can be associated with a video.
Subtitles provide text versions of the audio content, enabling accessibility
and multilingual support for video content.

Field

Description

id

string

Unique identifier of the subtitle track.

language

string

Language of the subtitle content according to ISO 639-2/T.

label

string

Display label for the subtitle track shown in the video player's subtitle selection menu.

status

enum SubtitleStatus

Current processing status of the subtitle.

  • SUBTITLE_STATUS_UNSPECIFIED: The subtitle status is not specified.
  • WAIT_UPLOADING: The subtitle file upload is in progress, waiting for all bytes to be received.
  • UPLOADED: The subtitle file has been fully uploaded and is ready for use.

source_type

enum SubtitleSourceType

Indicates how the subtitle was created or obtained.

  • SUBTITLE_SOURCE_TYPE_UNSPECIFIED: The subtitle source type is not specified.
  • MANUAL: The subtitle was manually created and uploaded by a user.
  • GENERATED: The subtitle was automatically generated through speech recognition.

filename

string

Original filename of the subtitle file.

created_at

google.protobuf.Timestamp

Timestamp when the subtitle was initially created in the system.

updated_at

google.protobuf.Timestamp

Timestamp of the last modification to the subtitle or its metadata.

video_id

string

Identifier of the video this subtitle belongs to.

Includes only one of the fields video_id.

Specifies the parent content this subtitle is associated with.

Была ли статья полезна?

Предыдущая
Get
Следующая
Create
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»