返回单个监测任务的配置、当前状态以及迄今记录的全部互动快照(按时间排序)。
GET
/api/v1/monitor/video/tasks/detail额度扣减: 本接口每次成功请求会从套餐额度中扣减 1500 单位。
请求参数
必填参数
| 名称 | 位置 | 类型 | 说明 |
|---|---|---|---|
monitor_id | query | string | Monitor ID |
响应字段
| 名称 | 类型 | 说明 |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.monitor_id | string | Monitor ID |
data.platform | string | Platform |
data.video_id | string | Video identifier |
data.video_title | string | Video title |
data.author_id | string | Author identifier |
data.author_name | string | Author name |
data.monitor_status | integer | Monitoring status: 0 = monitoring, 10 = completed, 20 = stopped, -1 = error |
data.monitor_start_date | string | Monitoring start date |
data.monitor_end_date | string | Monitoring end date |
data.last_snapshot_time | string | Last collected at |
data.snapshot_count | integer | Snapshots collected |
data.created_time | string | Created at |
data.snapshots | array<object> | Snapshot list |
在线调试
https://openapi.scdata.cc/api/v1/monitor/video/tasks/detail
请先从 Dashboard 选择一个 API key
发送请求前请先准备一个 API key。前往 Dashboard
查询参数
monitor_id*cURL 示例
bash
curl -X GET "https://openapi.scdata.cc/api/v1/monitor/video/tasks/detail?monitor_id=example" \-H "Authorization: YOUR_API_KEY"
响应示例 (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"monitor_id": "string","platform": "string","video_id": "string","video_title": "string","video_description": "string","video_publish_at": "2019-08-24T14:15:22.123Z","video_url": "string","video_cover": "string","video_type": "string","author_id": "string","author_name": "string","monitor_status": 0,"monitor_start_date": "2019-08-24","monitor_end_date": "2019-08-24","last_snapshot_time": "2019-08-24T14:15:22.123Z","snapshot_count": 0,"created_time": "2019-08-24T14:15:22.123Z","snapshots": [{"id": 0,"snapshot_time": "2019-08-24T14:15:22.123Z","snapshot_type": "string","like_count": 0,"comment_count": 0,"play_count": 0,"share_count": 0,"collect_count": 0}]}}
使用场景
- 互动曲线 — 绘制视频发布后逐小时的播放和点赞增长曲线。
- 投放报告 — 活动结束时把记录的序列数据导出到客户报告中。