Fetch livestream details using livestream ID
realtime_kit.livestreams.get_livestream_session_for_livestream_id(strlivestream_id, LivestreamGetLivestreamSessionForLivestreamIDParams**kwargs) -> LivestreamGetLivestreamSessionForLivestreamIDResponse
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)
Parameters
Fetch livestream details using livestream ID
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
response = client.realtime_kit.livestreams.get_livestream_session_for_livestream_id(
livestream_id="livestream_id",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
app_id="app_id",
)
print(response.data){
"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
}