登记主播进入直播监控。任务生效期间,每场直播都会连同周期性的观众数采样一起记录,可通过监控直播列表和观众趋势接口读取。
POST
/api/v1/twitch/monitor/user额度扣减: 本接口每次成功请求会从套餐额度中扣减 1 单位。
请求参数
必填参数
| 名称 | 位置 | 类型 | 说明 |
|---|---|---|---|
monitor_url | body | string | Monitored URL example: string |
monitor_start_time | body | string | Monitoring start time example: string |
monitor_end_time | body | string | Monitoring end time example: string |
响应字段
| 名称 | 类型 | 说明 |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | string | Data |
在线调试
https://openapi.scdata.cc/api/v1/twitch/monitor/user
请先从 Dashboard 选择一个 API key
发送请求前请先准备一个 API key。前往 Dashboard
JSON 请求体
cURL 示例
bash
curl -X POST "https://openapi.scdata.cc/api/v1/twitch/monitor/user" \-H "Authorization: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"monitor_url":"string","monitor_start_time":"string","monitor_end_time":"string"}'
响应示例 (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": "string"}
使用场景
- 赞助跟踪 — 在活动期间监控合作主播,核验交付情况。
- 人才挖掘 — 在签约前观察新兴主播数周内的观众变化。