Fetch livestream details using livestream ID
GET/accounts/{account_id}/realtime/kit/{app_id}/livestreams/{livestream_id}
Returns details of a livestream with sessions for the given livestream ID. Retreive the livestream ID using the Start livestreaming a meeting API.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Path Parameters
Query Parameters
Fetch livestream details using livestream ID
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/realtime/kit/$APP_ID/livestreams/$LIVESTREAM_ID \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"data": {
"livestream": {
"created_at": "2023-07-15T07:08:26.634Z",
"disabled": false,
"external_id": "7de6a3fec0f9c05bf1df140950d3a237",
"id": "b60ef3da-fbbb-441b-9168-8235b0035248",
"ingest_server": "rtmps://live.cloudflare.com:443/live/",
"manual_ingest": false,
"meeting_id": "bbb87945-df1c-49d9-8159-262a7ae6cfde",
"name": "test",
"playback_url": "https://customer-s8oj0c1n5ek8ah1e.cloudflarestream.com/7de6a3fec0f9c05bf1df140950d3a237/manifest/video.m3u8",
"status": "LIVE",
"stream_key": "f26566285faca6fbe2e79a73a66rsrrsrrsr3cde23a2bb7dbc6c2c1761b98f4e4",
"updated_at": "2023-07-15T07:08:40.726Z"
},
"sessions": [
{
"created_at": "2023-07-15T07:08:40.742Z",
"err_message": null,
"id": "cf55a850-c3fd-46b5-b5d2-25b3b9aa1686",
"ingest_seconds": 600,
"invoked_time": "2023-07-15T07:08:26.634Z",
"livestream_id": "b60ef3da-fbbb-441b-9168-8235b0035248",
"started_time": "2023-07-15T07:08:39Z",
"stopped_time": "2023-07-15T07:18:39Z",
"updated_at": "2023-07-15T07:18:40.742Z",
"viewer_seconds": 1200
}
]
},
"paging": {
"end_offset": 1,
"start_offset": 1,
"total_count": 1
},
"success": true
}Returns Examples
{
"data": {
"livestream": {
"created_at": "2023-07-15T07:08:26.634Z",
"disabled": false,
"external_id": "7de6a3fec0f9c05bf1df140950d3a237",
"id": "b60ef3da-fbbb-441b-9168-8235b0035248",
"ingest_server": "rtmps://live.cloudflare.com:443/live/",
"manual_ingest": false,
"meeting_id": "bbb87945-df1c-49d9-8159-262a7ae6cfde",
"name": "test",
"playback_url": "https://customer-s8oj0c1n5ek8ah1e.cloudflarestream.com/7de6a3fec0f9c05bf1df140950d3a237/manifest/video.m3u8",
"status": "LIVE",
"stream_key": "f26566285faca6fbe2e79a73a66rsrrsrrsr3cde23a2bb7dbc6c2c1761b98f4e4",
"updated_at": "2023-07-15T07:08:40.726Z"
},
"sessions": [
{
"created_at": "2023-07-15T07:08:40.742Z",
"err_message": null,
"id": "cf55a850-c3fd-46b5-b5d2-25b3b9aa1686",
"ingest_seconds": 600,
"invoked_time": "2023-07-15T07:08:26.634Z",
"livestream_id": "b60ef3da-fbbb-441b-9168-8235b0035248",
"started_time": "2023-07-15T07:08:39Z",
"stopped_time": "2023-07-15T07:18:39Z",
"updated_at": "2023-07-15T07:18:40.742Z",
"viewer_seconds": 1200
}
]
},
"paging": {
"end_offset": 1,
"start_offset": 1,
"total_count": 1
},
"success": true
}