Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Video
    • Overview
    • Control
    • Troubleshooting
  • Access management
  • Pricing policy
    • Authentication with the API
    • Getting started with the API
      • Overview
        • Overview
        • Get
        • List
        • BatchGet
        • Create
        • Update
        • Delete
        • BatchDelete
        • PerformAction
  • Audit Trails events
  • Release notes

In this article:

  • gRPC request
  • BatchGetStreamsRequest
  • BatchGetStreamsResponse
  • Stream
  • OnDemand
  • Schedule
  1. API reference
  2. gRPC
  3. Stream
  4. BatchGet

Video API, gRPC: StreamService.BatchGet

Written by
Yandex Cloud
Updated at April 24, 2025
  • gRPC request
  • BatchGetStreamsRequest
  • BatchGetStreamsResponse
  • Stream
  • OnDemand
  • Schedule

Batch get streams for channel.

gRPC requestgRPC request

rpc BatchGet (BatchGetStreamsRequest) returns (BatchGetStreamsResponse)

BatchGetStreamsRequestBatchGetStreamsRequest

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

Field

Description

channel_id

string

Required field. ID of the channel.

stream_ids[]

string

List of requested stream IDs.

BatchGetStreamsResponseBatchGetStreamsResponse

{
  "streams": [
    {
      "id": "string",
      "channel_id": "string",
      "line_id": "string",
      "title": "string",
      "description": "string",
      "thumbnail_id": "string",
      "status": "StreamStatus",
      "start_time": "google.protobuf.Timestamp",
      "publish_time": "google.protobuf.Timestamp",
      "finish_time": "google.protobuf.Timestamp",
      "auto_publish": "google.protobuf.BoolValue",
      // Includes only one of the fields `on_demand`, `schedule`
      "on_demand": "OnDemand",
      "schedule": {
        "start_time": "google.protobuf.Timestamp",
        "finish_time": "google.protobuf.Timestamp"
      },
      // end of the list of possible fields
      "created_at": "google.protobuf.Timestamp",
      "updated_at": "google.protobuf.Timestamp",
      "labels": "map<string, string>"
    }
  ]
}

Field

Description

streams[]

Stream

List of streams for specific channel.

StreamStream

Field

Description

id

string

ID of the stream.

channel_id

string

ID of the channel where the stream was created.

line_id

string

ID of the line to which stream is linked.

title

string

Stream title.

description

string

Stream description.

thumbnail_id

string

ID of the thumbnail.

status

enum StreamStatus

Stream status.

  • STREAM_STATUS_UNSPECIFIED: Stream status unspecified.
  • OFFLINE: Stream offline.
  • PREPARING: Preparing the infrastructure for receiving video signal.
  • READY: Everything is ready to launch stream.
  • ONAIR: Stream onair.
  • FINISHED: Stream finished.

start_time

google.protobuf.Timestamp

Stream start time.

publish_time

google.protobuf.Timestamp

Stream publish time. Time when stream switched to ONAIR status.

finish_time

google.protobuf.Timestamp

Stream finish time.

auto_publish

google.protobuf.BoolValue

Automatically publish stream when ready.
Switches status from READY to ONAIR.

on_demand

OnDemand

On-demand stream. Starts immediately when a signal appears.

Includes only one of the fields on_demand, schedule.

Stream type.

schedule

Schedule

Schedule stream. Starts or finished at the specified time.

Includes only one of the fields on_demand, schedule.

Stream type.

created_at

google.protobuf.Timestamp

Time when stream was created.

updated_at

google.protobuf.Timestamp

Time of last stream update.

labels

object (map<string, string>)

Custom labels as key:value pairs. Maximum 64 per resource.

OnDemandOnDemand

On-demand stream type.
This type of streams should be started and finished explicitly.

Field

Description

Empty

ScheduleSchedule

Schedule stream type.
This type of streams start and finish automatically at the specified time.

Field

Description

start_time

google.protobuf.Timestamp

finish_time

google.protobuf.Timestamp

Was the article helpful?

Previous
List
Next
Create
© 2025 Direct Cursus Technology L.L.C.