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.
Video Live Streaming
Download OpenAPI DocumentUse 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).
Endpoints
- GET
/live_streams - POST
/live_streams - GET
/live_streams/{liveStreamId} - DEL
/live_streams/{liveStreamId} - PATCH
/live_streams/{liveStreamId} - POST
/live_streams/{liveStreamId}/activate - POST
/live_streams/{liveStreamId}/idle - GET
/live_streams/{liveStreamId}/outputs - POST
/live_streams/{liveStreamId}/outputs - GET
/live_streams/{liveStreamId}/outputs/{liveStreamOutputId} - DEL
/live_streams/{liveStreamId}/outputs/{liveStreamOutputId} - PATCH
/live_streams/{liveStreamId}/outputs/{liveStreamOutputId} - GET
/live_streams/{liveStreamId}/stats - GET
/live_streams/{liveStreamId}/health - GET
/live_streams/{liveStreamId}/analytics/metrics - GET
/live_streams/{liveStreamId}/analytics/time_series
Responses
200 A list of live streams
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamResponse[]Requirednullable
ShowHide child attributes of data
Items LiveStreamResponse- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid parameters
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
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
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
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.
/live_streamscurl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams' \
-u 'API_KEY:API_SECRET'{
"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
}
]
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Body Required application/json
- name stringexample
"My first stream" - input LiveStreamInputCreatePayloadRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp"
- idle_timeout_sec integernullableexample
120 - max_runtime_sec integernullableexample
10800 - embedded_captions LiveStreamEmbeddedCaption[]nullable
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
Responses
201 Created live stream
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid request body
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
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
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
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.
/live_streamscurl -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"
}
]
}'{
"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
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Responses
200 A live stream
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid parameters
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
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
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
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
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.
/live_streams/{liveStreamId}curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}' \
-u 'API_KEY:API_SECRET'{
"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
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Responses
200 OK
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
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
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
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
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
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.
/live_streams/{liveStreamId}curl -X DELETE 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}' \
-u 'API_KEY:API_SECRET'{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"data": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Body Required application/json
- name stringnullableexample
"My first stream" - idle_timeout_sec integernullableexample
120 - max_runtime_sec integernullableexample
10800 - embedded_captions LiveStreamEmbeddedCaption[]nullable
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
Responses
200 A live stream
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid request body
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
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
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
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
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.
/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"
}
]
}'{
"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
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Responses
200 OK
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
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
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
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
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
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.
/live_streams/{liveStreamId}/activatecurl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/activate' \
-u 'API_KEY:API_SECRET'{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"data": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Responses
200 OK
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
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
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
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
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
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.
/live_streams/{liveStreamId}/idlecurl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/idle' \
-u 'API_KEY:API_SECRET'{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"data": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Responses
200 A list of outputs for a live stream
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of data
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid parameters
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
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
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
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.
/live_streams/{liveStreamId}/outputscurl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs' \
-u 'API_KEY:API_SECRET'{
"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
}
]
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
Body Required application/json
- name stringnullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"rtmp://a.rtmp.youtube.com/live2" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive"
Responses
201 Created live stream output
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamOutputResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid request body
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
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
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
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
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.
/live_streams/{liveStreamId}/outputscurl -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"
}'{
"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
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
- liveStreamOutputId stringRequired
live stream output id
Responses
200 A live stream output
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamOutputResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid parameters
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
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
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
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
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.
/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/outputs/{liveStreamOutputId}' \
-u 'API_KEY:API_SECRET'{
"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
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
- liveStreamOutputId stringRequired
live stream output id
Responses
200 OK
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
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
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
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
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
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.
/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'{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"data": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Path parameters
- liveStreamId stringRequired
live stream id
- liveStreamOutputId stringRequired
live stream output id
Body Required application/json
- name stringnullableexample
"main stream" - uri stringnullableexample
"rtmp://a.rtmp.youtube.com/live2" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive"
Responses
200 A live stream output
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamOutputResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
400 Bad request - invalid request body
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
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
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
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
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.
/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"
}'{
"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
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}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.
formatint64Signed 64-bit integer - to integer
The end of the time range, as a Unix timestamp in milliseconds. Defaults to the time of the request.
formatint64Signed 64-bit integer
Responses
200 The stats collected during the time range, oldest first.
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 LiveStreamStatsResponseThe 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.
formatint64Signed 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.
formatdoubleDouble-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.
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
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
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
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.
/live_streams/{liveStreamId}/statscurl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/stats' \
-u 'API_KEY:API_SECRET'{
"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
}
]
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}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.
formatint64Signed 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.
formatint64Signed 64-bit integer
Responses
200 The health assessment for the time range.
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.
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
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
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
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
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.
/live_streams/{liveStreamId}/healthcurl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/health' \
-u 'API_KEY:API_SECRET'{
"request_id": "8d2e4f6a1b3c5d7e9f0a2b4c6d8e0f1a",
"data": {
"assessment": "excellent"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}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.
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
0when the session has ended.example12 - total_viewers_count integerRequired
The number of unique viewers who watched the stream during the session.
example48 - 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.
formatint64Signed 64-bit integerexample754000
400 Bad request
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
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
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.
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
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.
/live_streams/{liveStreamId}/analytics/metricscurl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/analytics/metrics' \
-u 'API_KEY:API_SECRET'{
"request_id": "5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b",
"data": {
"current_viewers_count": 12,
"total_viewers_count": 48,
"average_watch_time": 754000
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}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.
formatint64Signed 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.
formatint64Signed 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.
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 objectOne data point of the time series.
- timestamp integerRequired
The time of the data point, as a Unix timestamp in milliseconds.
formatint64Signed 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.
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
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
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.
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
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.
/live_streams/{liveStreamId}/analytics/time_seriescurl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/live_streams/{liveStreamId}/analytics/time_series?dimension=' \
-u 'API_KEY:API_SECRET'{
"request_id": "2b4d6f8a0c2e4a6c8e0b2d4f6a8c0e2d",
"data": [
{
"timestamp": 1763548800000,
"value": 10
},
{
"timestamp": 1763548805000,
"value": 12
},
{
"timestamp": 1763548810000,
"value": 12
}
]
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}{
"request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
"error": {
"message": "string"
}
}Models
Show schema
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.
Show schema
An object carrying a human-readable message.
- message string
A human-readable message.
Show schema
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.
Show schema
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamResponse[]Requirednullable
ShowHide child attributes of data
Items LiveStreamResponse- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
Show schema
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
Show schema
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of data
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
Show schema
- request_id stringRequiredexample
"6ec0bd7f11c043da975e2a8ad9ebae0b" - data LiveStreamOutputResponseRequired
ShowHide child attributes of data
- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
Show schema
- id stringRequiredexample
"0bd7f11c043da975e2a8ad9ebae0b6ec" - name stringRequirednullableexample
"My first stream" - input LiveStreamInputResponseRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
- status stringRequiredexample
"idle" - outputs LiveStreamOutputResponse[]Requirednullable
ShowHide child attributes of outputs
Items LiveStreamOutputResponse- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
- embedded_captions LiveStreamEmbeddedCaption[]
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
- idle_timeout_sec integerRequiredexample
120 - max_runtime_sec integerRequiredexample
10800 - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
Show schema
- type stringRequiredexample
"rtmp" - uri stringRequiredexample
"rtmp://live.cloudinary.com/streams" - stream_key stringnullableexample
"dh8bxtg97t9cns4bddoa"
Show schema
- id stringRequiredexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - name stringRequirednullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"https://res.cloudinary.com/demo/video/live/f11c043da975e2a8ad9ebae0b6ec0bd7.m3u8" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive" - created_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621 - updated_at integerRequiredformat
int64Signed 64-bit integerexample1697265900621
Show schema
- name stringexample
"My first stream" - input LiveStreamInputCreatePayloadRequired
ShowHide child attributes of input
- type stringRequiredexample
"rtmp"
- idle_timeout_sec integernullableexample
120 - max_runtime_sec integernullableexample
10800 - embedded_captions LiveStreamEmbeddedCaption[]nullable
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
Show schema
- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
Show schema
- name stringnullableexample
"main stream" - type stringRequiredexample
"hls" - uri stringnullableexample
"rtmp://a.rtmp.youtube.com/live2" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - vendor stringnullableexample
"youtube" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive"
Show schema
- name stringnullableexample
"My first stream" - idle_timeout_sec integernullableexample
120 - max_runtime_sec integernullableexample
10800 - embedded_captions LiveStreamEmbeddedCaption[]nullable
ShowHide child attributes of embedded_captions
Items LiveStreamEmbeddedCaption- caption_channel integerRequiredexample
1 - language_code stringRequired
ISO 639-2 language code
example"eng" - language_description stringRequiredexample
"English"
Show schema
- name stringnullableexample
"main stream" - uri stringnullableexample
"rtmp://a.rtmp.youtube.com/live2" - stream_key stringnullableexample
"f11c043da975e2a8ad9ebae0b6ec0bd7" - asset_folder stringnullableexample
"live_streams" - public_id stringnullableexample
"main_stream_archive"
Show schema
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.
formatint64Signed 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.
formatdoubleDouble-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.
Show schema
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"
Show schema
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"
Show schema
Viewer metrics for the latest session of a live stream.
- current_viewers_count integerRequired
The number of unique viewers watching the stream now. Always
0when the session has ended.example12 - total_viewers_count integerRequired
The number of unique viewers who watched the stream during the session.
example48 - 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.
formatint64Signed 64-bit integerexample754000
Show schema
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
0when the session has ended.example12 - total_viewers_count integerRequired
The number of unique viewers who watched the stream during the session.
example48 - 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.
formatint64Signed 64-bit integerexample754000
Show schema
The data points of the time series, oldest first.
One data point of the time series.
- timestamp integerRequired
The time of the data point, as a Unix timestamp in milliseconds.
formatint64Signed 64-bit integer - value integerRequired
The value of the requested metric at that time. For
average_watch_time, the value is in milliseconds.
Show schema
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 objectOne data point of the time series.
- timestamp integerRequired
The time of the data point, as a Unix timestamp in milliseconds.
formatint64Signed 64-bit integer - value integerRequired
The value of the requested metric at that time. For
average_watch_time, the value is in milliseconds.
Show schema
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 LiveStreamStatsResponseThe 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.
formatint64Signed 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.
formatdoubleDouble-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.