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/callAt provider cost
- Success rate
- 99.6%Last 30 days · 1,032 calls
- Latency p50
- 337 msp95 1.3 s
- Last verified
- Jul 28, 2026Verified 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
Parameters
`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
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
id | string | Optional | a DiffbotId, when you already have one | |
ip | string | Optional | resolve the company from a visitor IP address | |
url | string | Optional | the company's homepage — the strongest identifier | https://www.diffbot.com |
name | string | Optional | company name; ambiguous alone, pair with location or url | |
size | integer | Optional | candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record | 1 |
type | string | Required | must be Organization for company enrichment | Organization |
email | string | Optional | resolves the company from an employee's email domain | |
phone | string | Optional | ||
filter | string | Optional | JsonPath expression selecting which parts of the record to return | |
search | boolean | Optional | widen to a search when no exact entity matches; default false | |
refresh | boolean | Optional | force a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false | |
customId | string | Optional | your own correlation id, echoed back in the response | |
jsonmode | string | Optional | 'extended' adds provenance for every fact | |
location | string | Optional | disambiguates a common company name | |
threshold | number | Optional | match-confidence floor below which no candidate is returned | |
description | string | Optional | free-text description, as an extra disambiguator | |
nonCanonicalFacts | boolean | Optional | include facts Diffbot has not canonicalised | |
- Query parameters
idstringOptionala DiffbotId, when you already have one
ipstringOptionalresolve the company from a visitor IP address
urlstringOptionalthe company's homepage — the strongest identifier
Example:
https://www.diffbot.comnamestringOptionalcompany name; ambiguous alone, pair with location or url
sizeintegerOptionalcandidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record
Example:
1typestringRequiredmust be Organization for company enrichment
Example:
OrganizationemailstringOptionalresolves the company from an employee's email domain
phonestringOptionalfilterstringOptionalJsonPath expression selecting which parts of the record to return
searchbooleanOptionalwiden to a search when no exact entity matches; default false
refreshbooleanOptionalforce a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false
customIdstringOptionalyour own correlation id, echoed back in the response
jsonmodestringOptional'extended' adds provenance for every fact
locationstringOptionaldisambiguates a common company name
thresholdnumberOptionalmatch-confidence floor below which no candidate is returned
descriptionstringOptionalfree-text description, as an extra disambiguator
nonCanonicalFactsbooleanOptionalinclude facts Diffbot has not canonicalised
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.0299/call, including the service fee.