curl "https://api.brightdata.com/dca/trigger?collector=ID_COLLECTOR&queue_next=1" -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY" -d '[{"url":"https://targetwebsite.com/product_id/"}]'
{
 "collection_id": "ID_DATASET",
 "start_eta": "2021-11-07T13:26:22.702Z"
}
API 端点: POST /dca/trigger?collector={ID_COLLECTOR}

POST Body

Authorization
字符串
raw JSON -d '[{"url":"https://targetwebsite.com/product_id/"}]'

查询参数

collector
字符串
抓取工具的唯一标识
version
字符串
设置为 dev 以触发抓取工具的开发版本
name
字符串
human_name - 批量采集的数据名称,须易于识别和理解

选择 trigger_behavior 参数:

queue_next
整数
default:"1"
如果抓取队列中已有任务,则将该作业推送至队列中
queue
字符串
发送另一批请求,这些请求将在上一批请求完成后开始处理
confirm_cancel
整数
default:"1"
取消正在运行的作业,然后提交并运行新的请求
no_downloads
整数
default:"1"
禁止下载媒体文件
deadline
字符串
设置作业截止时间,作业将在指定时间后终止
  • h:小时
  • m:分钟
  • s:秒

标头

Authorization
字符串
授权持有者密钥 -H "Authorization: Bearer API_KEY"
Content-Type
字符串
JSON/CSV/Multipart -H "Content-Type: application/json"
{
 "collection_id": "ID_DATASET",
 "start_eta": "2021-11-07T13:26:22.702Z"
}
curl "https://api.brightdata.com/dca/trigger?collector=ID_COLLECTOR&queue_next=1" -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY" -d '[{"url":"https://targetwebsite.com/product_id/"}]'