Watching
GET /api/analytics/watching
Current concurrent viewers in a sliding window.
Requires analytics.read. See Overview for shared parameters and category scope.
Parameters
| Parameter | Required | Description |
|---|---|---|
contentType | No | vod (default) or live |
contentId | No | Limit to one video or live event |
windowSeconds | No | Sliding window size. Default 20. |
Request
curl -X GET "https://app.ignitevideo.cloud/api/analytics/watching?contentType=live&contentId=LIVE_EVENT_ID" \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"windowSeconds": number,
"viewers": number
}