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:
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": {
"id": "id",
"created_at": "created_at",
"disabled": "disabled",
"ingest_server": "ingest_server",
"meeting_id": "meeting_id",
"name": "name",
"playback_url": "playback_url",
"status": "LIVE",
"stream_key": "stream_key",
"updated_at": "updated_at"
},
"paging": {
"end_offset": 1,
"start_offset": 1,
"total_count": 1
},
"session": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"err_message": "err_message",
"ingest_seconds": 0,
"invoked_time": "2019-12-27T18:11:19.117Z",
"livestream_id": "livestream_id",
"started_time": "2019-12-27T18:11:19.117Z",
"stopped_time": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z",
"viewer_seconds": 0
}
},
"success": true
}Returns Examples
{
"data": {
"livestream": {
"id": "id",
"created_at": "created_at",
"disabled": "disabled",
"ingest_server": "ingest_server",
"meeting_id": "meeting_id",
"name": "name",
"playback_url": "playback_url",
"status": "LIVE",
"stream_key": "stream_key",
"updated_at": "updated_at"
},
"paging": {
"end_offset": 1,
"start_offset": 1,
"total_count": 1
},
"session": {
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"err_message": "err_message",
"ingest_seconds": 0,
"invoked_time": "2019-12-27T18:11:19.117Z",
"livestream_id": "livestream_id",
"started_time": "2019-12-27T18:11:19.117Z",
"stopped_time": "2019-12-27T18:11:19.117Z",
"updated_at": "2019-12-27T18:11:19.117Z",
"viewer_seconds": 0
}
},
"success": true
}