Enrich companies in bulk (async, webhook)
oceanio.companies.enrich_bulkMatch companies with our database and enrich it with additional information
- 价格
- $0.0081/result按目录价
- 成功率
- —暂无成功率数据近 30 天 · 0 次
- 延迟 p50
- ——
- 最后验证
- 2026年8月20日实测可用
POSThttps://toolswitch.dev/v1/tools/oceanio.companies.enrich_bulkBeta- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
ASYNC. The HTTP response is only {"status": "in progress"}; the data arrives at your webhook. For fewer than a thousand domains prefer /v2/lookup/companies, which is synchronous AND cheaper per company
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
fields | array[string] | 可选 | which Company fields the webhook payload should carry | ["domain","name","employeeCountOcean"] |
webhookUrl | 字符串 | 必填 | a PUBLIC https URL that receives the enriched companies when the job finishes. There is no status route to poll — without a reachable webhook you never see the results | https://example.com/treg-webhook |
companyDataMapping | 对象 | 必填 | a dict of YOUR id -> a single-company enrich body, i.e. {"c1": {"company": {"domain": "anthropic.com"}}}. 1 to 10,000 entries. Your ids come back in the webhook payload so you can join the results | {"c1":{"company":{"domain":"anthropic.com"}}} |
- 请求体(JSON)
fieldsarray[string]可选which Company fields the webhook payload should carry
示例:
["domain","name","employeeCountOcean"]webhookUrl字符串必填a PUBLIC https URL that receives the enriched companies when the job finishes. There is no status route to poll — without a reachable webhook you never see the results
示例:
https://example.com/treg-webhookcompanyDataMapping对象必填a dict of YOUR id -> a single-company enrich body, i.e. {"c1": {"company": {"domain": "anthropic.com"}}}. 1 to 10,000 entries. Your ids come back in the webhook payload so you can join the results
示例:
{"c1":{"company":{"domain":"anthropic.com"}}}
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X POST 'https://toolswitch.dev/v1/tools/oceanio.companies.enrich_bulk' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"fields":["domain","name","employeeCountOcean"],"webhookUrl":"https://example.com/treg-webhook","companyDataMapping":{"c1":{"company":{"domain":"anthropic.com"}}}}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/oceanio.companies.enrich_bulk",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"fields\":[\"domain\",\"name\",\"employeeCountOcean\"],\"webhookUrl\":\"https://example.com/treg-webhook\",\"companyDataMapping\":{\"c1\":{\"company\":{\"domain\":\"anthropic.com\"}}}}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/oceanio.companies.enrich_bulk", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"fields\":[\"domain\",\"name\",\"employeeCountOcean\"],\"webhookUrl\":\"https://example.com/treg-webhook\",\"companyDataMapping\":{\"c1\":{\"company\":{\"domain\":\"anthropic.com\"}}}}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 $0.0081/result 计费,已含服务费。