Yandex Cloud
Поиск
Связаться с экспертомПопробовать бесплатно
  • Кейсы
  • Документация
  • Блог
  • Все сервисы
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Neurosupport
    • Yandex Cloud Detection and Response
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • GOST Gateway
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • SourceCraft
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • Статус работы сервисов
  • Marketplace
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Yandex Cloud Trust
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Кейсы
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex Cloud Video
    • Обзор
    • Управление
    • Политика автозапуска браузеров
  • Управление доступом
  • Правила тарификации
    • Аутентификация в API
    • Начало работы с API
      • Overview
        • Overview
        • Get
        • List
        • BatchGet
        • Create
        • Update
        • Delete
        • BatchDelete
        • PerformAction
        • GetPlayerURL
        • GetManifests
  • Аудитные логи Audit Trails
  • История изменений
  • Решение проблем

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

  • gRPC request
  • BatchGetEpisodesRequest
  • BatchGetEpisodesResponse
  • Episode
  • EpisodePublicAccessRights
  • EpisodeSignURLAccessRights
  1. Справочник API
  2. gRPC (англ.)
  3. Episode
  4. BatchGet

Video API, gRPC: EpisodeService.BatchGet

Статья создана
Yandex Cloud
Обновлена 28 мая 2026 г.
Открыть в Markdown
  • gRPC request
  • BatchGetEpisodesRequest
  • BatchGetEpisodesResponse
  • Episode
  • EpisodePublicAccessRights
  • EpisodeSignURLAccessRights

Retrieves multiple episodes by their IDs in a specific channel in a single request.
This is more efficient than making multiple Get requests when retrieving several episodes.

gRPC requestgRPC request

rpc BatchGet (BatchGetEpisodesRequest) returns (BatchGetEpisodesResponse)

BatchGetEpisodesRequestBatchGetEpisodesRequest

{
  "channel_id": "string",
  "episode_ids": [
    "string"
  ]
}

Field

Description

channel_id

string

Required field. ID of the channel containing the episodes to retrieve.

The maximum string length in characters is 50.

episode_ids[]

string

List of episode IDs to retrieve.

The maximum string length in characters for each value is 50. The number of elements must be in the range 1-100.

BatchGetEpisodesResponseBatchGetEpisodesResponse

{
  "episodes": [
    {
      "id": "string",
      "stream_id": "string",
      "line_id": "string",
      "title": "string",
      "description": "string",
      "thumbnail_id": "string",
      "start_time": "google.protobuf.Timestamp",
      "finish_time": "google.protobuf.Timestamp",
      "dvr_seconds": "int64",
      "visibility_status": "VisibilityStatus",
      "style_preset_id": "string",
      // Includes only one of the fields `public_access`, `sign_url_access`
      "public_access": "EpisodePublicAccessRights",
      "sign_url_access": "EpisodeSignURLAccessRights",
      // end of the list of possible fields
      "created_at": "google.protobuf.Timestamp",
      "updated_at": "google.protobuf.Timestamp"
    }
  ]
}

Field

Description

episodes[]

Episode

List of episodes matching the requested IDs.

EpisodeEpisode

Entity representing a stream fragment that can be accessed independently.
Episodes can be linked to either a stream or a line
and provide a way to reference specific portions of the corresponding content.

Field

Description

id

string

Unique identifier of the episode.

stream_id

string

Identifier of the stream this episode is linked to.
Optional, empty if the episode is linked to a line.

line_id

string

Identifier of the line this episode is linked to.
Optional, empty if the episode is linked to a stream.

title

string

Title of the episode displayed in interfaces and players.

description

string

Detailed description of the episode content and context.

thumbnail_id

string

Identifier of the thumbnail image used to represent the episode visually.

start_time

google.protobuf.Timestamp

Timestamp marking the beginning of the episode content.

finish_time

google.protobuf.Timestamp

Timestamp marking the end of the episode content.

dvr_seconds

int64

Controls the Digital Video Recording (DVR) functionality for the episode.
Determines how many seconds of the stream are available for time-shifted viewing.
Possible values:

  • 0: Infinite DVR size, the full length of the stream is available for viewing.
  • >0: Size of DVR window in seconds, the minimum value is 30s.

visibility_status

enum VisibilityStatus

Current visibility status controlling whether the episode is publicly available.

  • PUBLISHED: The episode is publicly available, subject to its access permission settings.
  • UNPUBLISHED: The episode is available only to administrators.

style_preset_id

string

Identifier of the style preset used in the player during episode playback.

public_access

EpisodePublicAccessRights

Allows unrestricted public access to the episode via direct link.
No additional authorization or access control is applied.

Includes only one of the fields public_access, sign_url_access.

Specifies the episode access permission settings.

sign_url_access

EpisodeSignURLAccessRights

Restricts episode access using URL signatures for secure time-limited access.

Includes only one of the fields public_access, sign_url_access.

Specifies the episode access permission settings.

created_at

google.protobuf.Timestamp

Timestamp when the episode was initially created in the system.

updated_at

google.protobuf.Timestamp

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

EpisodePublicAccessRightsEpisodePublicAccessRights

Represents public access rights for an episode.
When this access type is set, the episode is publicly accessible via direct link.

Field

Description

Empty

EpisodeSignURLAccessRightsEpisodeSignURLAccessRights

Represents access rights controlled by URL signatures.
When this access type is set, the episode is accessible only via properly signed temporary link.

Field

Description

Empty

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

Предыдущая
List
Следующая
Create
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»