Enrich a company by website, name or ticker
diffbot.companies.enrichEnrich a company from website, name or ticker — industry, revenue, headcount, rivals
- Price
- $0.0299/callプロバイダー原価
- Success rate
- 99.6%Last 30 days · 1,032 calls
- Latency p50
- 337 msp95 1.3 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.companies.enrich?url=https%3A%2F%2Fwww.diffbot.com&size=1&type=OrganizationPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
`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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.0299/call です。サービス料を含みます。