既存タスクに対してスケジュール外のスナップショットを強制取得し、タスクの時系列に追加します。手動更新は定期収集と同様にクォータを消費します。
POST
/api/v1/monitor/video/tasks/refreshクォータ消費: このエンドポイントへの成功したリクエスト 1 件あたり、プランのクォータが 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
ダッシュボードのAPIキーを選択
リクエストを送信する前にAPIキーを入力してください。ダッシュボードを開く
クエリパラメータ
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}}
ユースケース
- マイルストーンの記録 — プロモーションの開始・終了直後に正確な値を取得します。
- アドホック報告 — レポート作成前に更新し、最新の数値を含めます。