Fetch all livestreams
GET/accounts/{account_id}/realtime/kit/{app_id}/livestreams
Returns details of livestreams associated with the given App ID. It includes livestreams created by your App and RealtimeKit meetings that are livestreamed by your App. If you only want details of livestreams created by your App and not RealtimeKit meetings, you can use the exclude_meetings query parameter.
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
end_time: optional string
Specify the end time range in ISO format to access the live stream.
formatdate-time
page_no: optional number
The page number from which you want your page search results to be displayed.
Fetch all livestreams
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/realtime/kit/$APP_ID/livestreams \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"data": {
"id": "3fd739f4-3c41-456e-bfba-6ebd51e16d2d",
"created_at": "2023-07-15T11:48:34.753Z",
"disabled": "disabled",
"ingest_server": "rtmps://live.cloudflare.com:443/live/",
"meeting_id": "meeting_id",
"name": "test",
"paging": {
"end_offset": 1,
"start_offset": 1,
"total_count": 1
},
"playback_url": "https://customer-s8oj0c1n5ek8ah1e.cloudflarestream.com/7de6a3fec0f9c05bf1df140950d3a237/manifest/video.m3u8",
"status": "LIVE",
"stream_key": "f26566285faca6fbe2e79a73a66rsrrsrrsr3cde23a2bb7dbc6c2c1761b98f4e4",
"updated_at": "2023-07-15T11:48:34.753Z"
},
"success": true
}Returns Examples
{
"data": {
"id": "3fd739f4-3c41-456e-bfba-6ebd51e16d2d",
"created_at": "2023-07-15T11:48:34.753Z",
"disabled": "disabled",
"ingest_server": "rtmps://live.cloudflare.com:443/live/",
"meeting_id": "meeting_id",
"name": "test",
"paging": {
"end_offset": 1,
"start_offset": 1,
"total_count": 1
},
"playback_url": "https://customer-s8oj0c1n5ek8ah1e.cloudflarestream.com/7de6a3fec0f9c05bf1df140950d3a237/manifest/video.m3u8",
"status": "LIVE",
"stream_key": "f26566285faca6fbe2e79a73a66rsrrsrrsr3cde23a2bb7dbc6c2c1761b98f4e4",
"updated_at": "2023-07-15T11:48:34.753Z"
},
"success": true
}