Rooms

To list all live rooms (which have participants inside), you need to execute a GET request against the /rooms/live endpoint. The current session_duration of each live room is specified in seconds.

Since potentially there could be thousands of rooms, pagination is supported with limit, order and after arguments. Read about pagination to learn the details of it. By default maximum 100 live rooms will be returned in the response.

If you want to retrieve the details of one concrete live room execute a GET request against the /rooms/:id/live endpoint

Request (listing all live rooms)

curl --request GET \
  --url https://api.digitalsamba.com/api/v1/rooms/live \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

Response (200 OK)

{
    "total_count": 5134,
    "data": [
        {
            "id": "bdaa431a-681a-424b-bbcd-30dedb48e6ba",
            "external_id": null,
            "start_time": "2023-02-13T16:45:05.000000Z",
            "session_duration": 49,
            "live_participants": 8
        },
        {
            "id": "16e4c86d-3030-411a-bfac-4e5a7c427e0a",
            "external_id": null,
            "start_time": "2023-02-13T16:45:41.000000Z",
            "session_duration": 13,
            "live_participants": 5
        },
        ...............99 more rooms...............
    ]
}

The total_count is the total amount of rooms which are live. It is NOT the amount of rooms in the current page returned in the data array. In the above example you have 5134 rooms live in total, but in the data array there will be maximum 100 rooms (the default limit argument value).

Request (get stats for a concrete live room)

curl --request GET \
  --url https://api.digitalsamba.com/api/v1/rooms/bdaa431a-681a-424b-bbcd-30dedb48e6ba/live \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

Response (200 OK)

{
    "id": "bdaa431a-681a-424b-bbcd-30dedb48e6ba",
    "external_id": null,
    "start_time": "2023-02-13T16:45:05.000000Z",
    "session_duration": 49,
    "live_participants": 8
}

Last updated