Returns a time series of viewer-count samples for one captured broadcast so peaks can be matched to moments in the stream.
GET
/api/v1/twitch/live/viewer_count/over_timeQuota usage: Each successful request to this endpoint deducts 1 quota units from your plan.
Request Parameters
Required Parameters
| Name | In | Type | Description |
|---|---|---|---|
live_id | query | string | live_id example: 315722295417 |
Response Fields
| Name | Type | Description |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | array<object> | Data |
data[].count | integer | Viewer count |
data[].monitor_time | string | Monitoring time |
Try It
https://openapi.scdata.cc/api/v1/twitch/live/viewer_count/over_time
Select an API key from Dashboard
Add an API key before sending a request.Go to Dashboard
Query Params
live_id*cURL Example
bash
curl -X GET "https://openapi.scdata.cc/api/v1/twitch/live/viewer_count/over_time?live_id=315722295417" \-H "Authorization: YOUR_API_KEY"
Response Example (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": [{"count": 0,"monitor_time": "2019-08-24T14:15:22.123Z"}]}
Use Cases
- Segment impact — Check whether viewers dropped or spiked during a sponsored segment.
- Peak-time planning — Schedule product mentions for the part of the stream with the most viewers.