Skip to main content
Version: /v2

Fetch all HLS

This API lets you fetch all HLS streams.
Query Parameters
REQUIRED

The ID of the Room.

OPTIONAL

The ID of the Session.

OPTIONAL

defaultValue : 1

Page number for the recording

OPTIONAL

defaultValue : 20

Number of recordings you want per page.

GET
|
https://api.videosdk.live/v2/hls/
import fetch from 'node-fetch';
const options = {
method: "GET",
};
const url= `https://api.videosdk.live/v2/hls/?roomId=xyz`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"pageInfo": {
"currentPage": 1,
"perPage": 20,
"lastPage": 7,
"total": 125
},
"data": [
{
"sessionId": "abcde94c96e17e03fb0abcde4",
"start": "2022-04-19T09:18:13.432Z",
"end": "2022-04-19T09:19:34.552Z",
"roomId": "abcd-efgh-ijkl",
"duration": 75.173,
"links": {
"get_room": "https://api.videosdk.live/v2/rooms/abcd-efgh-ijkl",
"get_session": "https://api.videosdk.live/v2/sessions/abcde94c96e17e03fb0abcde4"
},
"downstreamUrl": "https://cdn.videosdk.live/meetings-hls/abcdefgh-ijkl-mnop-1234-abcdefghijkl/index.m3u8",
"id": "abcdef9879288c1f48339f64"
}
]
}