記録された1配信について視聴者数サンプルの時系列を返し、ピークを配信内の出来事と対応付けられます。
GET
/api/v1/twitch/live/viewer_count/over_timeクォータ消費: このエンドポイントへの成功したリクエスト 1 件あたり、プランのクォータが 1 単位消費されます。
リクエストパラメータ
必須パラメータ
| 名前 | 位置 | 型 | 説明 |
|---|---|---|---|
live_id | query | string | live_id example: 315722295417 |
レスポンスフィールド
| 名前 | 型 | 説明 |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | array<object> | Data |
data[].count | integer | Viewer count |
data[].monitor_time | string | Monitoring time |
お試し実行
https://openapi.scdata.cc/api/v1/twitch/live/viewer_count/over_time
ダッシュボードのAPIキーを選択
リクエストを送信する前にAPIキーを入力してください。ダッシュボードを開く
クエリパラメータ
live_id*cURL の例
bash
curl -X GET "https://openapi.scdata.cc/api/v1/twitch/live/viewer_count/over_time?live_id=315722295417" \-H "Authorization: YOUR_API_KEY"
レスポンス例 (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": [{"count": 0,"monitor_time": "2019-08-24T14:15:22.123Z"}]}
ユースケース
- セグメント効果 — スポンサー枠の間に視聴者が減ったか急増したかを確認します。
- ピーク時間の計画 — 視聴者が最も多い時間帯に商品紹介を予定します。