Twitchライブ配信を検索

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

フィルタに一致するライブ配信を視聴者数順で返し、タイトル、ゲーム、配信者情報を含みます。

POST/api/v1/twitch/search/live

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

リクエストパラメータ

必須パラメータ

このエンドポイントに必須パラメータはありません。

任意パラメータ

名前位置型説明
user_idbodyobjectUser ID
example: string
user_loginbodyobjectUser login name
example: string
game_idbodyobjectGame (category) ID
example: string
typebodyobjectStream type filter for the live list. Possible values: all, live; default all
example: string
languagebodyobjectLanguage
example: string
firstbodyintegerPage size, maximum 100, default 20
example: 0
beforebodyobjectPrevious page cursor
example: string
afterbodyobjectNext page cursor
example: string

レスポンスフィールド

名前型説明
successbooleanSuccess
codeintegerCode
messagestringMessage
dataobject-
data.morebooleanHas more
data.offsetstringoffset
data.dataarray<object>data

お試し実行

https://openapi.scdata.cc/api/v1/twitch/search/live
ダッシュボードのAPIキーを選択
リクエストを送信する前にAPIキーを入力してください。ダッシュボードを開く

JSONボディ

cURL の例

bash
curl -X POST "https://openapi.scdata.cc/api/v1/twitch/search/live" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id":"string","user_login":"string","game_id":"string","type":"string","language":"string","first":0,"before":"string","after":"string"}'

レスポンス例 (200 application/json)

json
{
"success": true,
"code": 200,
"message": "Request successful",
"data": {
"more": true,
"offset": "string",
"data": [
{
"id": "string",
"user_id": "string",
"user_login": "string",
"user_name": "string",
"game_id": "string",
"game_name": "string",
"type": "string",
"title": "string",
"viewer_count": 0,
"started_at": "2019-08-24T14:15:22.123Z",
"language": "string",
"thumbnail_url": "string",
"tags": [
"string"
],
"is_mature": true
}
]
}
}

ユースケース

  • リアルタイムの機会発見 — 新作ゲームを今配信している人を確認し、関心が高いうちに連絡します。
  • ライブダッシュボード — 社内モニター画面にカテゴリ内の上位ライブチャンネルを表示します。

関連エンドポイント