Enrich a company by website, name or ticker
diffbot.companies.enrichEnrich a company from website, name or ticker — industry, revenue, headcount, rivals
- 价格
- $0.0299/call按供应商原价
- 成功率
- 99.6%近 30 天 · 1,032 次
- 延迟 p50
- 337 毫秒p95 1.3 秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/diffbot.companies.enrich?url=https%3A%2F%2Fwww.diffbot.com&size=1&type=Organization预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
`type` plus at least one identifier; url gives by far the highest match rate. `useCache` appears in older material but is not in the current v3 docs
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
id | 字符串 | 可选 | a DiffbotId, when you already have one | |
ip | 字符串 | 可选 | resolve the company from a visitor IP address | |
url | 字符串 | 可选 | the company's homepage — the strongest identifier | https://www.diffbot.com |
name | 字符串 | 可选 | company name; ambiguous alone, pair with location or url | |
size | 整数 | 可选 | candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record | 1 |
type | 字符串 | 必填 | must be Organization for company enrichment | Organization |
email | 字符串 | 可选 | resolves the company from an employee's email domain | |
phone | 字符串 | 可选 | ||
filter | 字符串 | 可选 | JsonPath expression selecting which parts of the record to return | |
search | 布尔 | 可选 | widen to a search when no exact entity matches; default false | |
refresh | 布尔 | 可选 | force a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false | |
customId | 字符串 | 可选 | your own correlation id, echoed back in the response | |
jsonmode | 字符串 | 可选 | 'extended' adds provenance for every fact | |
location | 字符串 | 可选 | disambiguates a common company name | |
threshold | 数字 | 可选 | match-confidence floor below which no candidate is returned | |
description | 字符串 | 可选 | free-text description, as an extra disambiguator | |
nonCanonicalFacts | 布尔 | 可选 | include facts Diffbot has not canonicalised | |
- 查询参数
id字符串可选a DiffbotId, when you already have one
ip字符串可选resolve the company from a visitor IP address
url字符串可选the company's homepage — the strongest identifier
示例:
https://www.diffbot.comname字符串可选company name; ambiguous alone, pair with location or url
size整数可选candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record
示例:
1type字符串必填must be Organization for company enrichment
示例:
Organizationemail字符串可选resolves the company from an employee's email domain
phone字符串可选filter字符串可选JsonPath expression selecting which parts of the record to return
search布尔可选widen to a search when no exact entity matches; default false
refresh布尔可选force a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false
customId字符串可选your own correlation id, echoed back in the response
jsonmode字符串可选'extended' adds provenance for every fact
location字符串可选disambiguates a common company name
threshold数字可选match-confidence floor below which no candidate is returned
description字符串可选free-text description, as an extra disambiguator
nonCanonicalFacts布尔可选include facts Diffbot has not canonicalised
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.companies.enrich?url=https%3A%2F%2Fwww.diffbot.com&size=1&type=Organization' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.companies.enrich?url=https%3A%2F%2Fwww.diffbot.com&size=1&type=Organization",
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.companies.enrich?url=https%3A%2F%2Fwww.diffbot.com&size=1&type=Organization", {
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.0299/call 计费,已含服务费。