Bulk-enrich companies or people (async job)
diffbot.companies.bulk_enrichEnrich many companies or people in one asynchronous job instead of one call each
- 价格
- $0.0299/result按供应商原价
- 成功率
- —暂无成功率数据近 30 天 · 4 次
- 延迟 p50
- ——
- 最后验证
- 2026年7月28日实测可用
POSThttps://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
ASYNCHRONOUS: returns HTTP 202 and a job id. Poll GET /enhance/bulk/{bulkjobId}/status, then read GET /enhance/bulk/{bulkjobId}. The maximum batch size is not published
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
name | 字符串 | 可选 | a label for the bulk job | treg-batch-1 |
size | 整数 | 可选 | applies to every query in the job | |
refresh | 布尔 | 可选 | job-wide; 100 credits per record instead of 25 | |
threshold | 数字 | 可选 | ||
webhookurl | 字符串 | 可选 | where to POST the results when the job finishes | |
- 查询参数
name字符串可选a label for the bulk job
示例:
treg-batch-1size整数可选applies to every query in the job
refresh布尔可选job-wide; 100 credits per record instead of 25
threshold数字可选webhookurl字符串可选where to POST the results when the job finishes
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X POST 'https://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '[{"url":"diffbot.com","type":"Organization"}]'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("[{\"url\":\"diffbot.com\",\"type\":\"Organization\"}]"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("[{\"url\":\"diffbot.com\",\"type\":\"Organization\"}]")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.0299/result 计费,已含服务费。