为已有任务强制执行一次计划外快照并追加到该任务的序列中。手动刷新与计划采集一样消耗配额。
POST
/api/v1/monitor/video/tasks/refresh额度扣减: 本接口每次成功请求会从套餐额度中扣减 1500 单位。
请求参数
必填参数
| 名称 | 位置 | 类型 | 说明 |
|---|---|---|---|
monitor_id | query | string | Monitor ID |
响应字段
| 名称 | 类型 | 说明 |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.id | integer | Snapshot ID |
data.snapshot_time | string | Snapshot time |
data.snapshot_type | string | Collection type: auto / manual |
data.like_count | integer | Like count |
data.comment_count | integer | Comment count |
data.play_count | integer | Plays / views |
data.share_count | integer | Share count |
data.collect_count | integer | Save count |
在线调试
https://openapi.scdata.cc/api/v1/monitor/video/tasks/refresh
请先从 Dashboard 选择一个 API key
发送请求前请先准备一个 API key。前往 Dashboard
查询参数
monitor_id*JSON 请求体
cURL 示例
bash
curl -X POST "https://openapi.scdata.cc/api/v1/monitor/video/tasks/refresh?monitor_id=example" \-H "Authorization: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{}'
响应示例 (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"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}}
使用场景
- 关键节点采集 — 在推广上线或结束的瞬间获取精确读数。
- 临时报告 — 生成报告前先刷新,确保包含最新数据。