Twitchライブ視聴者数の推移を取得

13 件のエンドポイント • ベース: https://openapi.scdata.cc

記録された1配信について視聴者数サンプルの時系列を返し、ピークを配信内の出来事と対応付けられます。

GET/api/v1/twitch/live/viewer_count/over_time

クォータ消費: このエンドポイントへの成功したリクエスト 1 件あたり、プランのクォータが 1 単位消費されます。

リクエストパラメータ

必須パラメータ

名前位置型説明
live_idquerystringlive_id
example: 315722295417

レスポンスフィールド

名前型説明
successbooleanSuccess
codeintegerCode
messagestringMessage
dataarray<object>Data
data[].countintegerViewer count
data[].monitor_timestringMonitoring 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"
}
]
}

ユースケース

  • セグメント効果 — スポンサー枠の間に視聴者が減ったか急増したかを確認します。
  • ピーク時間の計画 — 視聴者が最も多い時間帯に商品紹介を予定します。

関連エンドポイント