Manage a crawl job
diffbot.x.crawl-manageOne endpoint for status, pause/resume, restart and delete of one or more crawl jobs
- 价格
- 价格待定按供应商原价
- 成功率
- —暂无成功率数据近 30 天 · 0 次
- 延迟 p50
- ——
- 最后验证
- 2026年7月31日实测可用
GEThttps://toolswitch.dev/v1/tools/diffbot.x.crawl-manage预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
different HOST than base_url — api.diffbot.com. Omitting every param lists the account's jobs and mutates nothing, which is what makes this one safely callable; each of pause/restart/delete/roundStart is a WRITE on a real job
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
name | 字符串 | 可选 | specific job name; omit to list all jobs | |
pause | 整数 | 可选 | 1 to pause, 0 to resume | |
delete | 整数 | 可选 | 1 to permanently remove the job | |
restart | 整数 | 可选 | 1 to restart — erases prior data | |
roundStart | 整数 | 可选 | 1 to manually trigger a new crawl cycle | |
- 查询参数
name字符串可选specific job name; omit to list all jobs
pause整数可选1 to pause, 0 to resume
delete整数可选1 to permanently remove the job
restart整数可选1 to restart — erases prior data
roundStart整数可选1 to manually trigger a new crawl cycle
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.x.crawl-manage' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.x.crawl-manage",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.x.crawl-manage", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。