GET
/
streaming
/
broadcasts
/
{broadcast_id}
/
spectators
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
broadcast_spectators_count = client.streaming.broadcasts.get_spectators_count(
    0,
)
print(broadcast_spectators_count.spectators_count)
{
  "spectators_count": 100
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

broadcast_id
integer
required

Broadcast ID.
IDs of all created broadcasts can be received via Get All Broadcasts request

Response

200 - application/json

Successful

The response is of type object.