Documentation Index

Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt

Use this file to discover all available pages before exploring further.

v1.1.0OAS 3.0.3

Video Live Streaming

Download OpenAPI Document

Use the Video Live Streaming API to create and manage your RTMP live streams. This includes managing outputs as well as manually starting and stopping streams. See the live streaming guide for information on how to use the Live Streaming API to stream video to your users.

The API supports Basic Authentication using your Cloudinary API Key and API Secret (which can be found on the Dashboard page of your Cloudinary Console).

Get a list of live streams

Responses

200 A list of live streams
application/json
LiveStreamsWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamResponse[]Requirednullable
    ShowHide child attributes of data
    Items LiveStreamResponse
    • id stringRequired
      example "0bd7f11c043da975e2a8ad9ebae0b6ec"
    • name stringRequirednullable
      example "My first stream"
    • input LiveStreamInputResponseRequired
      ShowHide child attributes of input
      • type stringRequired
        example "rtmp"
      • uri stringRequired
        example "rtmp://live.cloudinary.com/streams"
      • stream_key stringnullable
        example "dh8bxtg97t9cns4bddoa"
    • status stringRequired
      example "idle"
    • outputs LiveStreamOutputResponse[]Requirednullable
      ShowHide child attributes of outputs
      Items LiveStreamOutputResponse
      • id stringRequired
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • name stringRequirednullable
        example "main stream"
      • type stringRequired
        example "hls"
      • uri stringnullable
        example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
      • stream_key stringnullable
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • vendor stringnullable
        example "youtube"
      • asset_folder stringnullable
        example "live_streams"
      • public_id stringnullable
        example "main_stream_archive"
      • created_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
      • updated_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
    • embedded_captions LiveStreamEmbeddedCaption[]
      ShowHide child attributes of embedded_captions
      Items LiveStreamEmbeddedCaption
      • caption_channel integerRequired
        example 1
      • language_code stringRequired

        ISO 639-2 language code

        example "eng"
      • language_description stringRequired
        example "English"
    • idle_timeout_sec integerRequired
      example 120
    • max_runtime_sec integerRequired
      example 10800
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": [
    {
      "id": "0bd7f11c043da975e2a8ad9ebae0b6ec",
      "name": "My Live Stream 1",
      "input": {
        "type": "rtmp",
        "uri": "rtmp://live.cloudinary.com/streams",
        "stream_key": "dh8bxtg97t9cns4bddoa"
      },
      "status": "idle",
      "outputs": [
        {
          "id": "8132d2dc5251432bb57f32ee55a336c1",
          "name": "default hls",
          "type": "hls",
          "uri": "https://res.cloudinary.com/demo/video/live/live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_hls.m3u8",
          "created_at": 1712914020253,
          "updated_at": 1712914020253
        },
        {
          "id": "29b5cd6f54474bea9cec3834e763e12c",
          "name": "default archive",
          "type": "archive",
          "public_id": "live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_archive",
          "created_at": 1712914020253,
          "updated_at": 1714378330476
        }
      ],
      "idle_timeout_sec": 120,
      "max_runtime_sec": 10800,
      "created_at": 1697265900621,
      "updated_at": 1697265900621
    },
    {
      "id": "92aa375287aa4f2b82be628060c46f43",
      "name": "My Live Stream 2",
      "input": {
        "type": "rtmp",
        "uri": "rtmp://live.cloudinary.com/streams",
        "stream_key": "48224ec768164e11a685a558605f52f5"
      },
      "status": "idle",
      "outputs": [
        {
          "id": "2c5e87b0648c4767acd93ea66d34a3c0",
          "name": "default hls",
          "type": "hls",
          "uri": "https://res.cloudinary.com/demo/video/live/live_stream_92aa375287aa4f2b82be628060c46f43_hls.m3u8",
          "created_at": 1712914020253,
          "updated_at": 1712914020253
        },
        {
          "id": "bb55ab0c159445df93cffbfc1d3a85db",
          "name": "default archive",
          "type": "archive",
          "public_id": "live_stream_92aa375287aa4f2b82be628060c46f43_archive",
          "created_at": 1712914020253,
          "updated_at": 1714378330476
        }
      ],
      "idle_timeout_sec": 120,
      "max_runtime_sec": 10800,
      "created_at": 1697265900621,
      "updated_at": 1697265900621
    }
  ]
}

Create a new live stream

Body Required application/json

LiveStreamCreatePayload
  • name string
    example "My first stream"
  • input LiveStreamInputCreatePayloadRequired
    ShowHide child attributes of input
    • type stringRequired
      example "rtmp"
  • idle_timeout_sec integernullable
    example 120
  • max_runtime_sec integernullable
    example 10800
  • embedded_captions LiveStreamEmbeddedCaption[]nullable
    ShowHide child attributes of embedded_captions
    Items LiveStreamEmbeddedCaption
    • caption_channel integerRequired
      example 1
    • language_code stringRequired

      ISO 639-2 language code

      example "eng"
    • language_description stringRequired
      example "English"

Responses

201 Created live stream
application/json
LiveStreamWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "0bd7f11c043da975e2a8ad9ebae0b6ec"
    • name stringRequirednullable
      example "My first stream"
    • input LiveStreamInputResponseRequired
      ShowHide child attributes of input
      • type stringRequired
        example "rtmp"
      • uri stringRequired
        example "rtmp://live.cloudinary.com/streams"
      • stream_key stringnullable
        example "dh8bxtg97t9cns4bddoa"
    • status stringRequired
      example "idle"
    • outputs LiveStreamOutputResponse[]Requirednullable
      ShowHide child attributes of outputs
      Items LiveStreamOutputResponse
      • id stringRequired
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • name stringRequirednullable
        example "main stream"
      • type stringRequired
        example "hls"
      • uri stringnullable
        example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
      • stream_key stringnullable
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • vendor stringnullable
        example "youtube"
      • asset_folder stringnullable
        example "live_streams"
      • public_id stringnullable
        example "main_stream_archive"
      • created_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
      • updated_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
    • embedded_captions LiveStreamEmbeddedCaption[]
      ShowHide child attributes of embedded_captions
      Items LiveStreamEmbeddedCaption
      • caption_channel integerRequired
        example 1
      • language_code stringRequired

        ISO 639-2 language code

        example "eng"
      • language_description stringRequired
        example "English"
    • idle_timeout_sec integerRequired
      example 120
    • max_runtime_sec integerRequired
      example 10800
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid request body
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

POST/live_streams
curl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "My first stream",
  "input": {
    "type": "rtmp"
  },
  "idle_timeout_sec": 120,
  "max_runtime_sec": 10800,
  "embedded_captions": [
    {
      "caption_channel": 1,
      "language_code": "eng",
      "language_description": "English"
    }
  ]
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "0bd7f11c043da975e2a8ad9ebae0b6ec",
    "name": "My Live Stream",
    "input": {
      "type": "rtmp",
      "uri": "rtmp://live.cloudinary.com/streams",
      "stream_key": "dh8bxtg97t9cns4bddoa"
    },
    "status": "idle",
    "outputs": [
      {
        "id": "8132d2dc5251432bb57f32ee55a336c1",
        "name": "default hls",
        "type": "hls",
        "uri": "https://res.cloudinary.com/demo/video/live/live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_hls.m3u8",
        "created_at": 1712914020253,
        "updated_at": 1712914020253
      },
      {
        "id": "29b5cd6f54474bea9cec3834e763e12c",
        "name": "default archive",
        "type": "archive",
        "public_id": "live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_archive",
        "created_at": 1712914020253,
        "updated_at": 1714378330476
      }
    ],
    "idle_timeout_sec": 120,
    "max_runtime_sec": 10800,
    "created_at": 1697265900621,
    "updated_at": 1697265900621
  }
}

Get a single live stream

Path parameters

  • liveStreamId stringRequired

    live stream id

Responses

200 A live stream
application/json
LiveStreamWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "0bd7f11c043da975e2a8ad9ebae0b6ec"
    • name stringRequirednullable
      example "My first stream"
    • input LiveStreamInputResponseRequired
      ShowHide child attributes of input
      • type stringRequired
        example "rtmp"
      • uri stringRequired
        example "rtmp://live.cloudinary.com/streams"
      • stream_key stringnullable
        example "dh8bxtg97t9cns4bddoa"
    • status stringRequired
      example "idle"
    • outputs LiveStreamOutputResponse[]Requirednullable
      ShowHide child attributes of outputs
      Items LiveStreamOutputResponse
      • id stringRequired
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • name stringRequirednullable
        example "main stream"
      • type stringRequired
        example "hls"
      • uri stringnullable
        example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
      • stream_key stringnullable
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • vendor stringnullable
        example "youtube"
      • asset_folder stringnullable
        example "live_streams"
      • public_id stringnullable
        example "main_stream_archive"
      • created_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
      • updated_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
    • embedded_captions LiveStreamEmbeddedCaption[]
      ShowHide child attributes of embedded_captions
      Items LiveStreamEmbeddedCaption
      • caption_channel integerRequired
        example 1
      • language_code stringRequired

        ISO 639-2 language code

        example "eng"
      • language_description stringRequired
        example "English"
    • idle_timeout_sec integerRequired
      example 120
    • max_runtime_sec integerRequired
      example 10800
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "0bd7f11c043da975e2a8ad9ebae0b6ec",
    "name": "My Live Stream",
    "input": {
      "type": "rtmp",
      "uri": "rtmp://live.cloudinary.com/streams",
      "stream_key": "dh8bxtg97t9cns4bddoa"
    },
    "status": "idle",
    "outputs": [
      {
        "id": "8132d2dc5251432bb57f32ee55a336c1",
        "name": "default hls",
        "type": "hls",
        "uri": "https://res.cloudinary.com/demo/video/live/live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_hls.m3u8",
        "created_at": 1712914020253,
        "updated_at": 1712914020253
      },
      {
        "id": "29b5cd6f54474bea9cec3834e763e12c",
        "name": "default archive",
        "type": "archive",
        "public_id": "live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_archive",
        "created_at": 1712914020253,
        "updated_at": 1714378330476
      }
    ],
    "idle_timeout_sec": 120,
    "max_runtime_sec": 10800,
    "created_at": 1697265900621,
    "updated_at": 1697265900621
  }
}

Delete a live stream

Path parameters

  • liveStreamId stringRequired

    live stream id

Responses

200 OK
application/json
MessageWrappedResponse

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of data
    • message string

      A human-readable message.

400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

DEL/live_streams/{liveStreamId}
curl -X DELETE 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "message": "string"
  }
}

Update a live stream

Path parameters

  • liveStreamId stringRequired

    live stream id

Body Required application/json

LiveStreamUpdatePayload
  • name stringnullable
    example "My first stream"
  • idle_timeout_sec integernullable
    example 120
  • max_runtime_sec integernullable
    example 10800
  • embedded_captions LiveStreamEmbeddedCaption[]nullable
    ShowHide child attributes of embedded_captions
    Items LiveStreamEmbeddedCaption
    • caption_channel integerRequired
      example 1
    • language_code stringRequired

      ISO 639-2 language code

      example "eng"
    • language_description stringRequired
      example "English"

Responses

200 A live stream
application/json
LiveStreamWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "0bd7f11c043da975e2a8ad9ebae0b6ec"
    • name stringRequirednullable
      example "My first stream"
    • input LiveStreamInputResponseRequired
      ShowHide child attributes of input
      • type stringRequired
        example "rtmp"
      • uri stringRequired
        example "rtmp://live.cloudinary.com/streams"
      • stream_key stringnullable
        example "dh8bxtg97t9cns4bddoa"
    • status stringRequired
      example "idle"
    • outputs LiveStreamOutputResponse[]Requirednullable
      ShowHide child attributes of outputs
      Items LiveStreamOutputResponse
      • id stringRequired
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • name stringRequirednullable
        example "main stream"
      • type stringRequired
        example "hls"
      • uri stringnullable
        example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
      • stream_key stringnullable
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • vendor stringnullable
        example "youtube"
      • asset_folder stringnullable
        example "live_streams"
      • public_id stringnullable
        example "main_stream_archive"
      • created_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
      • updated_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
    • embedded_captions LiveStreamEmbeddedCaption[]
      ShowHide child attributes of embedded_captions
      Items LiveStreamEmbeddedCaption
      • caption_channel integerRequired
        example 1
      • language_code stringRequired

        ISO 639-2 language code

        example "eng"
      • language_description stringRequired
        example "English"
    • idle_timeout_sec integerRequired
      example 120
    • max_runtime_sec integerRequired
      example 10800
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid request body
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

PATCH/live_streams/{liveStreamId}
curl -X PATCH 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "My first stream",
  "idle_timeout_sec": 120,
  "max_runtime_sec": 10800,
  "embedded_captions": [
    {
      "caption_channel": 1,
      "language_code": "eng",
      "language_description": "English"
    }
  ]
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "0bd7f11c043da975e2a8ad9ebae0b6ec",
    "name": "My Live Stream",
    "input": {
      "type": "rtmp",
      "uri": "rtmp://live.cloudinary.com/streams",
      "stream_key": "dh8bxtg97t9cns4bddoa"
    },
    "status": "idle",
    "outputs": [
      {
        "id": "8132d2dc5251432bb57f32ee55a336c1",
        "name": "default hls",
        "type": "hls",
        "uri": "https://res.cloudinary.com/demo/video/live/live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_hls.m3u8",
        "created_at": 1712914020253,
        "updated_at": 1712914020253
      },
      {
        "id": "29b5cd6f54474bea9cec3834e763e12c",
        "name": "default archive",
        "type": "archive",
        "public_id": "live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_archive",
        "created_at": 1712914020253,
        "updated_at": 1714378330476
      }
    ],
    "idle_timeout_sec": 120,
    "max_runtime_sec": 10800,
    "created_at": 1697265900621,
    "updated_at": 1697265900621
  }
}

Manually activate a live stream

Path parameters

  • liveStreamId stringRequired

    live stream id

Responses

200 OK
application/json
MessageWrappedResponse

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of data
    • message string

      A human-readable message.

400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

POST/live_streams/{liveStreamId}/activate
curl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/activate' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "message": "string"
  }
}

Manually idle a live stream

Path parameters

  • liveStreamId stringRequired

    live stream id

Responses

200 OK
application/json
MessageWrappedResponse

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of data
    • message string

      A human-readable message.

400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

POST/live_streams/{liveStreamId}/idle
curl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/idle' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "message": "string"
  }
}

Get a list of live stream outputs

Path parameters

  • liveStreamId stringRequired

    live stream id

Responses

200 A list of outputs for a live stream
application/json
LiveStreamOutputsWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamOutputResponse[]Requirednullable
    ShowHide child attributes of data
    Items LiveStreamOutputResponse
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}/outputs
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "2f9754330d613b998bb572696869b1ed",
  "data": [
    {
      "id": "2c5e87b0648c4767acd93ea66d34a3c0",
      "name": "default hls",
      "type": "hls",
      "uri": "https://res.cloudinary.com/demo/video/live/live_stream_0bd7f11c043da975e2a8ad9ebae0b6ec_hls.m3u8",
      "created_at": 1714480579982,
      "updated_at": 1714480579982
    },
    {
      "id": "bb55ab0c159445df93cffbfc1d3a85db",
      "name": "default archive",
      "type": "archive",
      "public_id": "92aa375287aa_archive",
      "created_at": 1714480579982,
      "updated_at": 1714480579982
    },
    {
      "id": "54434dddf7d44ed7abf55ca34ec70527",
      "name": "new youtube",
      "type": "simulcast",
      "uri": "rtmp://a.rtmp.youtube.com/live2",
      "stream_key": "43q7qmah2e1p83jhfpbs",
      "vendor": "youtube",
      "created_at": 1715859923186,
      "updated_at": 1715859923186
    }
  ]
}

Create a new live stream output

Path parameters

  • liveStreamId stringRequired

    live stream id

Body Required application/json

LiveStreamOutputCreatePayload
  • name stringnullable
    example "main stream"
  • type stringRequired
    example "hls"
  • uri stringnullable
    example "rtmp://a.rtmp.youtube.com/live2"
  • stream_key stringnullable
    example "f11c043da975e2a8ad9ebae0b6ec0bd7"
  • vendor stringnullable
    example "youtube"
  • asset_folder stringnullable
    example "live_streams"
  • public_id stringnullable
    example "main_stream_archive"

Responses

201 Created live stream output
application/json
LiveStreamOutputWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamOutputResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid request body
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

POST/live_streams/{liveStreamId}/outputs
curl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "new youtube",
  "type": "simulcast",
  "uri": "rtmp://a.rtmp.youtube.com/live2",
  "stream_key": "43q7qmah2e1p83jhfpbs",
  "vendor": "youtube"
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "f11c043da975e2a8ad9ebae0b6ec0bd7",
    "name": "new youtube",
    "type": "simulcast",
    "uri": "rtmp://a.rtmp.youtube.com/live2",
    "stream_key": "43q7qmah2e1p83jhfpbs",
    "vendor": "youtube",
    "created_at": 1697265900621,
    "updated_at": 1697265900621
  }
}

Get a single live stream output

Path parameters

  • liveStreamId stringRequired

    live stream id

  • liveStreamOutputId stringRequired

    live stream output id

Responses

200 A live stream output
application/json
LiveStreamOutputWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamOutputResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream output not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "f11c043da975e2a8ad9ebae0b6ec0bd7",
    "name": "new youtube",
    "type": "simulcast",
    "uri": "rtmp://a.rtmp.youtube.com/live2",
    "stream_key": "43q7qmah2e1p83jhfpbs",
    "vendor": "youtube",
    "created_at": 1697265900621,
    "updated_at": 1697265900621
  }
}

Delete a live stream output

Path parameters

  • liveStreamId stringRequired

    live stream id

  • liveStreamOutputId stringRequired

    live stream output id

Responses

200 OK
application/json
MessageWrappedResponse

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of data
    • message string

      A human-readable message.

400 Bad request - invalid parameters
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream output not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

DEL/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}
curl -X DELETE 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "message": "string"
  }
}

Update a live stream output

Path parameters

  • liveStreamId stringRequired

    live stream id

  • liveStreamOutputId stringRequired

    live stream output id

Body Required application/json

LiveStreamOutputUpdatePayload
  • name stringnullable
    example "main stream"
  • uri stringnullable
    example "rtmp://a.rtmp.youtube.com/live2"
  • stream_key stringnullable
    example "f11c043da975e2a8ad9ebae0b6ec0bd7"
  • asset_folder stringnullable
    example "live_streams"
  • public_id stringnullable
    example "main_stream_archive"

Responses

200 A live stream output
application/json
LiveStreamOutputWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamOutputResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
400 Bad request - invalid request body
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream output not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

PATCH/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}
curl -X PATCH 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "new youtube",
  "uri": "rtmp://a.rtmp.youtube.com/live2",
  "stream_key": "43q7qmah2e1p83jhfpbs"
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "f11c043da975e2a8ad9ebae0b6ec0bd7",
    "name": "new youtube",
    "type": "simulcast",
    "uri": "rtmp://a.rtmp.youtube.com/live2",
    "stream_key": "43q7qmah2e1p83jhfpbs",
    "vendor": "youtube",
    "created_at": 1697265900621,
    "updated_at": 1697265900621
  }
}

Get live stream input stats

Returns the input stats collected for a live stream during a time range, such as the incoming video and audio bitrates, the resolution and codecs declared by the streaming software, and the number of dropped frames. Stats are kept for 30 days. Returns an empty list when no stats were collected in the time range, for example when the stream wasn't receiving input.

Path parameters

  • liveStreamId stringRequired

    The ID of the live stream.

Query parameters

  • from integer

    The start of the time range, as a Unix timestamp in milliseconds. Must be within the last 30 days. Defaults to five minutes before the request.

    format int64 Signed 64-bit integer
  • to integer

    The end of the time range, as a Unix timestamp in milliseconds. Defaults to the time of the request.

    format int64 Signed 64-bit integer

Responses

200 The stats collected during the time range, oldest first.
application/json
LiveStreamStatsWrappedResponse

A response envelope wrapping a list of live stream stats.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamStatsResponse[]Required

    The stats collected during the time range, oldest first.

    ShowHide child attributes of data
    Items LiveStreamStatsResponse

    The input stats of a live stream at one point in time.

    • collected_at integerRequired

      When the stats were collected, as a Unix timestamp in milliseconds.

      format int64 Signed 64-bit integer
    • video_bitrate integerRequired

      The measured bitrate of the incoming video, in bits per second.

    • video_codec stringRequired

      The video codec declared by the streaming software, for example H264.

    • video_width integerRequired

      The video width declared by the streaming software, in pixels.

    • video_height integerRequired

      The video height declared by the streaming software, in pixels.

    • video_frame_rate integerRequired

      The video frame rate declared by the streaming software, in frames per second.

    • audio_bitrate integerRequired

      The measured bitrate of the incoming audio, in bits per second.

    • bitrate_in_to_out_ratio numberRequired

      The measured ratio of the stream's incoming bitrate to its outgoing bitrate.

      format double Double-precision floating point
    • audio_codec stringRequired

      The audio codec declared by the streaming software, for example AAC.

    • audio_channels integerRequired

      The number of audio channels declared by the streaming software.

    • audio_sample_rate integerRequired

      The audio sample rate declared by the streaming software, in hertz.

    • client_frames_dropped integerRequired

      A running total of the frames that the streaming software dropped. To see how many frames were dropped between two entries, subtract the earlier value from the later one.

400 Bad request. A time value isn't a number, from is later than to, or the time range is outside the last 30 days.

Bad request. A time value isn't a number, from is later than to, or the time range is outside the last 30 days.

application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}/stats
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/stats' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "3c1f8e2a9b7d4e6f8a0b1c2d3e4f5a6b",
  "data": [
    {
      "collected_at": 1763548800000,
      "video_bitrate": 4500000,
      "video_codec": "H264",
      "video_width": 1920,
      "video_height": 1080,
      "video_frame_rate": 30,
      "audio_bitrate": 128000,
      "bitrate_in_to_out_ratio": 0.98,
      "audio_codec": "AAC",
      "audio_channels": 2,
      "audio_sample_rate": 48000,
      "client_frames_dropped": 0
    }
  ]
}

Get live stream health

Assesses the health of a live stream's input from the stats collected during a time range. The assessment compares the incoming video and audio bitrates to the bitrates expected for the stream's resolution, frame rate, and codecs, and also takes into account the ratio of incoming to outgoing bitrate and the number of dropped frames. By default, it covers the last 15 seconds, so you can poll it to monitor a stream while it runs.

Path parameters

  • liveStreamId stringRequired

    The ID of the live stream.

Query parameters

  • from integer

    The start of the time range to assess, as a Unix timestamp in milliseconds. Must be within the last 30 days. Defaults to 15 seconds before the request.

    format int64 Signed 64-bit integer
  • to integer

    The end of the time range to assess, as a Unix timestamp in milliseconds. Defaults to the time of the request.

    format int64 Signed 64-bit integer

Responses

200 The health assessment for the time range.
application/json
LiveStreamHealthWrappedResponse

A response envelope wrapping a live stream health assessment.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamHealthResponseRequired

    The health assessment of a live stream.

    ShowHide child attributes of data
    • assessment stringRequired

      The health of the stream's input during the time range. One of:

      • excellent: the input meets or nearly meets the expected quality.
      • good: the input is acceptable but below the expected quality.
      • poor: the input is well below the expected quality, or one of the measures is very low.
      • offline: there weren't enough stats in the time range to assess the stream, for example because it isn't receiving input.
      example "excellent"
400 Bad request. A time value isn't a number, from is later than to, or the time range is outside the last 30 days.

Bad request. A time value isn't a number, from is later than to, or the time range is outside the last 30 days.

application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 Live stream not found
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}/health
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/health' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "8d2e4f6a1b3c5d7e9f0a2b4c6d8e0f1a",
  "data": {
    "assessment": "excellent"
  }
}

Get live stream viewer metrics

Returns viewer metrics for the latest session of a live stream: how many people are watching now, how many watched in total, and the average watch time. A session runs from when the stream is activated until it goes idle.

Viewer data is reported by the Cloudinary Video Player, which sends an event when a viewer starts and stops watching the stream, unless the player's cloudinaryAnalytics option is set to false. Viewers who watch the stream in other players aren't counted.

Path parameters

  • liveStreamId stringRequired

    The ID of the live stream.

Responses

200 The viewer metrics for the latest session.
application/json
LiveStreamAnalyticsMetricsWrappedResponse

A response envelope wrapping live stream viewer metrics.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamAnalyticsMetricsResponseRequired

    Viewer metrics for the latest session of a live stream.

    ShowHide child attributes of data
    • current_viewers_count integerRequired

      The number of unique viewers watching the stream now. Always 0 when the session has ended.

      example 12
    • total_viewers_count integerRequired

      The number of unique viewers who watched the stream during the session.

      example 48
    • average_watch_time integerRequired

      The average time that viewers watched the stream during the session, in milliseconds. Views still in progress count up to the time of the request.

      format int64 Signed 64-bit integerexample 754000
400 Bad request
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 The live stream doesn't exist, or it hasn't had a session yet.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}/analytics/metrics
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/analytics/metrics' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b",
  "data": {
    "current_viewers_count": 12,
    "total_viewers_count": 48,
    "average_watch_time": 754000
  }
}

Get live stream viewer metrics over time

Returns one viewer metric for the latest session of a live stream as a time series, with a data point every five seconds from from to to. Use it to chart how the audience changed during the session. Viewer data comes from the Cloudinary Video Player, as described for the viewer metrics endpoint.

Path parameters

  • liveStreamId stringRequired

    The ID of the live stream.

Query parameters

  • from integer

    The start of the time range, as a Unix timestamp in milliseconds. Defaults to 15 seconds before the request.

    format int64 Signed 64-bit integer
  • to integer

    The end of the time range, as a Unix timestamp in milliseconds. Defaults to the time of the request. If the latest session has ended, the series stops at the end of the session.

    format int64 Signed 64-bit integer
  • dimension stringRequired

    The metric to return. One of:

    • current_viewers_count: the number of viewers watching at each point.
    • total_viewers_count: the number of viewers who started watching up to each point.
    • average_watch_time: the average watch time, in milliseconds, up to each point.

Responses

200 The time series, oldest point first.
application/json
LiveStreamAnalyticsTimeSeriesWrappedResponse

A response envelope wrapping a live stream viewer time series.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data object[]Required

    The data points of the time series, oldest first.

    ShowHide child attributes of data
    Items object

    One data point of the time series.

    • timestamp integerRequired

      The time of the data point, as a Unix timestamp in milliseconds.

      format int64 Signed 64-bit integer
    • value integerRequired

      The value of the requested metric at that time. For average_watch_time, the value is in milliseconds.

400 Bad request. dimension is missing or invalid, or a time value isn't a number.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

401 Authentication error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

403 Authorization error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

404 The live stream doesn't exist, or it hasn't had a session yet.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

500 Internal server error
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

GET/live_streams/{liveStreamId}/analytics/time_series
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/analytics/time_series?dimension=' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "2b4d6f8a0c2e4a6c8e0b2d4f6a8c0e2d",
  "data": [
    {
      "timestamp": 1763548800000,
      "value": 10
    },
    {
      "timestamp": 1763548805000,
      "value": 12
    },
    {
      "timestamp": 1763548810000,
      "value": 12
    }
  ]
}

Models

MessageWrappedResponse

Show schema
object

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of data
    • message string

      A human-readable message.

MessageWrappedResponseData

Show schema
object

An object carrying a human-readable message.

  • message string

    A human-readable message.

ErrorWrappedResponse

Show schema
object

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error MessageWrappedResponseDataRequired

    An object carrying a human-readable message.

    ShowHide child attributes of error
    • message string

      A human-readable message.

LiveStreamsWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamResponse[]Requirednullable
    ShowHide child attributes of data
    Items LiveStreamResponse
    • id stringRequired
      example "0bd7f11c043da975e2a8ad9ebae0b6ec"
    • name stringRequirednullable
      example "My first stream"
    • input LiveStreamInputResponseRequired
      ShowHide child attributes of input
      • type stringRequired
        example "rtmp"
      • uri stringRequired
        example "rtmp://live.cloudinary.com/streams"
      • stream_key stringnullable
        example "dh8bxtg97t9cns4bddoa"
    • status stringRequired
      example "idle"
    • outputs LiveStreamOutputResponse[]Requirednullable
      ShowHide child attributes of outputs
      Items LiveStreamOutputResponse
      • id stringRequired
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • name stringRequirednullable
        example "main stream"
      • type stringRequired
        example "hls"
      • uri stringnullable
        example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
      • stream_key stringnullable
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • vendor stringnullable
        example "youtube"
      • asset_folder stringnullable
        example "live_streams"
      • public_id stringnullable
        example "main_stream_archive"
      • created_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
      • updated_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
    • embedded_captions LiveStreamEmbeddedCaption[]
      ShowHide child attributes of embedded_captions
      Items LiveStreamEmbeddedCaption
      • caption_channel integerRequired
        example 1
      • language_code stringRequired

        ISO 639-2 language code

        example "eng"
      • language_description stringRequired
        example "English"
    • idle_timeout_sec integerRequired
      example 120
    • max_runtime_sec integerRequired
      example 10800
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621

LiveStreamWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "0bd7f11c043da975e2a8ad9ebae0b6ec"
    • name stringRequirednullable
      example "My first stream"
    • input LiveStreamInputResponseRequired
      ShowHide child attributes of input
      • type stringRequired
        example "rtmp"
      • uri stringRequired
        example "rtmp://live.cloudinary.com/streams"
      • stream_key stringnullable
        example "dh8bxtg97t9cns4bddoa"
    • status stringRequired
      example "idle"
    • outputs LiveStreamOutputResponse[]Requirednullable
      ShowHide child attributes of outputs
      Items LiveStreamOutputResponse
      • id stringRequired
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • name stringRequirednullable
        example "main stream"
      • type stringRequired
        example "hls"
      • uri stringnullable
        example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
      • stream_key stringnullable
        example "f11c043da975e2a8ad9ebae0b6ec0bd7"
      • vendor stringnullable
        example "youtube"
      • asset_folder stringnullable
        example "live_streams"
      • public_id stringnullable
        example "main_stream_archive"
      • created_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
      • updated_at integerRequired
        format int64 Signed 64-bit integerexample 1697265900621
    • embedded_captions LiveStreamEmbeddedCaption[]
      ShowHide child attributes of embedded_captions
      Items LiveStreamEmbeddedCaption
      • caption_channel integerRequired
        example 1
      • language_code stringRequired

        ISO 639-2 language code

        example "eng"
      • language_description stringRequired
        example "English"
    • idle_timeout_sec integerRequired
      example 120
    • max_runtime_sec integerRequired
      example 10800
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621

LiveStreamOutputsWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamOutputResponse[]Requirednullable
    ShowHide child attributes of data
    Items LiveStreamOutputResponse
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621

LiveStreamOutputWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamOutputResponseRequired
    ShowHide child attributes of data
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621

LiveStreamResponse

Show schema
object
  • id stringRequired
    example "0bd7f11c043da975e2a8ad9ebae0b6ec"
  • name stringRequirednullable
    example "My first stream"
  • input LiveStreamInputResponseRequired
    ShowHide child attributes of input
    • type stringRequired
      example "rtmp"
    • uri stringRequired
      example "rtmp://live.cloudinary.com/streams"
    • stream_key stringnullable
      example "dh8bxtg97t9cns4bddoa"
  • status stringRequired
    example "idle"
  • outputs LiveStreamOutputResponse[]Requirednullable
    ShowHide child attributes of outputs
    Items LiveStreamOutputResponse
    • id stringRequired
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • name stringRequirednullable
      example "main stream"
    • type stringRequired
      example "hls"
    • uri stringnullable
      example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
    • stream_key stringnullable
      example "f11c043da975e2a8ad9ebae0b6ec0bd7"
    • vendor stringnullable
      example "youtube"
    • asset_folder stringnullable
      example "live_streams"
    • public_id stringnullable
      example "main_stream_archive"
    • created_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
    • updated_at integerRequired
      format int64 Signed 64-bit integerexample 1697265900621
  • embedded_captions LiveStreamEmbeddedCaption[]
    ShowHide child attributes of embedded_captions
    Items LiveStreamEmbeddedCaption
    • caption_channel integerRequired
      example 1
    • language_code stringRequired

      ISO 639-2 language code

      example "eng"
    • language_description stringRequired
      example "English"
  • idle_timeout_sec integerRequired
    example 120
  • max_runtime_sec integerRequired
    example 10800
  • created_at integerRequired
    format int64 Signed 64-bit integerexample 1697265900621
  • updated_at integerRequired
    format int64 Signed 64-bit integerexample 1697265900621

LiveStreamInputResponse

Show schema
object
  • type stringRequired
    example "rtmp"
  • uri stringRequired
    example "rtmp://live.cloudinary.com/streams"
  • stream_key stringnullable
    example "dh8bxtg97t9cns4bddoa"

LiveStreamOutputResponse

Show schema
object
  • id stringRequired
    example "f11c043da975e2a8ad9ebae0b6ec0bd7"
  • name stringRequirednullable
    example "main stream"
  • type stringRequired
    example "hls"
  • uri stringnullable
    example "https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8"
  • stream_key stringnullable
    example "f11c043da975e2a8ad9ebae0b6ec0bd7"
  • vendor stringnullable
    example "youtube"
  • asset_folder stringnullable
    example "live_streams"
  • public_id stringnullable
    example "main_stream_archive"
  • created_at integerRequired
    format int64 Signed 64-bit integerexample 1697265900621
  • updated_at integerRequired
    format int64 Signed 64-bit integerexample 1697265900621

LiveStreamCreatePayload

Show schema
object
  • name string
    example "My first stream"
  • input LiveStreamInputCreatePayloadRequired
    ShowHide child attributes of input
    • type stringRequired
      example "rtmp"
  • idle_timeout_sec integernullable
    example 120
  • max_runtime_sec integernullable
    example 10800
  • embedded_captions LiveStreamEmbeddedCaption[]nullable
    ShowHide child attributes of embedded_captions
    Items LiveStreamEmbeddedCaption
    • caption_channel integerRequired
      example 1
    • language_code stringRequired

      ISO 639-2 language code

      example "eng"
    • language_description stringRequired
      example "English"

LiveStreamInputCreatePayload

Show schema
object
  • type stringRequired
    example "rtmp"

LiveStreamEmbeddedCaption

Show schema
object
  • caption_channel integerRequired
    example 1
  • language_code stringRequired

    ISO 639-2 language code

    example "eng"
  • language_description stringRequired
    example "English"

LiveStreamOutputCreatePayload

Show schema
object
  • name stringnullable
    example "main stream"
  • type stringRequired
    example "hls"
  • uri stringnullable
    example "rtmp://a.rtmp.youtube.com/live2"
  • stream_key stringnullable
    example "f11c043da975e2a8ad9ebae0b6ec0bd7"
  • vendor stringnullable
    example "youtube"
  • asset_folder stringnullable
    example "live_streams"
  • public_id stringnullable
    example "main_stream_archive"

LiveStreamUpdatePayload

Show schema
object
  • name stringnullable
    example "My first stream"
  • idle_timeout_sec integernullable
    example 120
  • max_runtime_sec integernullable
    example 10800
  • embedded_captions LiveStreamEmbeddedCaption[]nullable
    ShowHide child attributes of embedded_captions
    Items LiveStreamEmbeddedCaption
    • caption_channel integerRequired
      example 1
    • language_code stringRequired

      ISO 639-2 language code

      example "eng"
    • language_description stringRequired
      example "English"

LiveStreamOutputUpdatePayload

Show schema
object
  • name stringnullable
    example "main stream"
  • uri stringnullable
    example "rtmp://a.rtmp.youtube.com/live2"
  • stream_key stringnullable
    example "f11c043da975e2a8ad9ebae0b6ec0bd7"
  • asset_folder stringnullable
    example "live_streams"
  • public_id stringnullable
    example "main_stream_archive"

LiveStreamStatsResponse

Show schema
object

The input stats of a live stream at one point in time.

  • collected_at integerRequired

    When the stats were collected, as a Unix timestamp in milliseconds.

    format int64 Signed 64-bit integer
  • video_bitrate integerRequired

    The measured bitrate of the incoming video, in bits per second.

  • video_codec stringRequired

    The video codec declared by the streaming software, for example H264.

  • video_width integerRequired

    The video width declared by the streaming software, in pixels.

  • video_height integerRequired

    The video height declared by the streaming software, in pixels.

  • video_frame_rate integerRequired

    The video frame rate declared by the streaming software, in frames per second.

  • audio_bitrate integerRequired

    The measured bitrate of the incoming audio, in bits per second.

  • bitrate_in_to_out_ratio numberRequired

    The measured ratio of the stream's incoming bitrate to its outgoing bitrate.

    format double Double-precision floating point
  • audio_codec stringRequired

    The audio codec declared by the streaming software, for example AAC.

  • audio_channels integerRequired

    The number of audio channels declared by the streaming software.

  • audio_sample_rate integerRequired

    The audio sample rate declared by the streaming software, in hertz.

  • client_frames_dropped integerRequired

    A running total of the frames that the streaming software dropped. To see how many frames were dropped between two entries, subtract the earlier value from the later one.

LiveStreamHealthResponse

Show schema
object

The health assessment of a live stream.

  • assessment stringRequired

    The health of the stream's input during the time range. One of:

    • excellent: the input meets or nearly meets the expected quality.
    • good: the input is acceptable but below the expected quality.
    • poor: the input is well below the expected quality, or one of the measures is very low.
    • offline: there weren't enough stats in the time range to assess the stream, for example because it isn't receiving input.
    example "excellent"

LiveStreamHealthWrappedResponse

Show schema
object

A response envelope wrapping a live stream health assessment.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamHealthResponseRequired

    The health assessment of a live stream.

    ShowHide child attributes of data
    • assessment stringRequired

      The health of the stream's input during the time range. One of:

      • excellent: the input meets or nearly meets the expected quality.
      • good: the input is acceptable but below the expected quality.
      • poor: the input is well below the expected quality, or one of the measures is very low.
      • offline: there weren't enough stats in the time range to assess the stream, for example because it isn't receiving input.
      example "excellent"

LiveStreamAnalyticsMetricsResponse

Show schema
object

Viewer metrics for the latest session of a live stream.

  • current_viewers_count integerRequired

    The number of unique viewers watching the stream now. Always 0 when the session has ended.

    example 12
  • total_viewers_count integerRequired

    The number of unique viewers who watched the stream during the session.

    example 48
  • average_watch_time integerRequired

    The average time that viewers watched the stream during the session, in milliseconds. Views still in progress count up to the time of the request.

    format int64 Signed 64-bit integerexample 754000

LiveStreamAnalyticsMetricsWrappedResponse

Show schema
object

A response envelope wrapping live stream viewer metrics.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamAnalyticsMetricsResponseRequired

    Viewer metrics for the latest session of a live stream.

    ShowHide child attributes of data
    • current_viewers_count integerRequired

      The number of unique viewers watching the stream now. Always 0 when the session has ended.

      example 12
    • total_viewers_count integerRequired

      The number of unique viewers who watched the stream during the session.

      example 48
    • average_watch_time integerRequired

      The average time that viewers watched the stream during the session, in milliseconds. Views still in progress count up to the time of the request.

      format int64 Signed 64-bit integerexample 754000

LiveStreamAnalyticsTimeSeriesResponse

Show schema
object[]

The data points of the time series, oldest first.

Items object

One data point of the time series.

  • timestamp integerRequired

    The time of the data point, as a Unix timestamp in milliseconds.

    format int64 Signed 64-bit integer
  • value integerRequired

    The value of the requested metric at that time. For average_watch_time, the value is in milliseconds.

LiveStreamAnalyticsTimeSeriesWrappedResponse

Show schema
object

A response envelope wrapping a live stream viewer time series.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data object[]Required

    The data points of the time series, oldest first.

    ShowHide child attributes of data
    Items object

    One data point of the time series.

    • timestamp integerRequired

      The time of the data point, as a Unix timestamp in milliseconds.

      format int64 Signed 64-bit integer
    • value integerRequired

      The value of the requested metric at that time. For average_watch_time, the value is in milliseconds.

LiveStreamStatsWrappedResponse

Show schema
object

A response envelope wrapping a list of live stream stats.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data LiveStreamStatsResponse[]Required

    The stats collected during the time range, oldest first.

    ShowHide child attributes of data
    Items LiveStreamStatsResponse

    The input stats of a live stream at one point in time.

    • collected_at integerRequired

      When the stats were collected, as a Unix timestamp in milliseconds.

      format int64 Signed 64-bit integer
    • video_bitrate integerRequired

      The measured bitrate of the incoming video, in bits per second.

    • video_codec stringRequired

      The video codec declared by the streaming software, for example H264.

    • video_width integerRequired

      The video width declared by the streaming software, in pixels.

    • video_height integerRequired

      The video height declared by the streaming software, in pixels.

    • video_frame_rate integerRequired

      The video frame rate declared by the streaming software, in frames per second.

    • audio_bitrate integerRequired

      The measured bitrate of the incoming audio, in bits per second.

    • bitrate_in_to_out_ratio numberRequired

      The measured ratio of the stream's incoming bitrate to its outgoing bitrate.

      format double Double-precision floating point
    • audio_codec stringRequired

      The audio codec declared by the streaming software, for example AAC.

    • audio_channels integerRequired

      The number of audio channels declared by the streaming software.

    • audio_sample_rate integerRequired

      The audio sample rate declared by the streaming software, in hertz.

    • client_frames_dropped integerRequired

      A running total of the frames that the streaming software dropped. To see how many frames were dropped between two entries, subtract the earlier value from the later one.