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/callZum Anbieterpreis
- Success rate
- 99,6 %Last 30 days · 1.032 calls
- Latency p50
- 337 msp95 1.3 s
- Last verified
- 28.07.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
Parameter
`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 | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
id | Zeichenkette | Optional | a DiffbotId, when you already have one | |
ip | Zeichenkette | Optional | resolve the company from a visitor IP address | |
url | Zeichenkette | Optional | the company's homepage — the strongest identifier | https://www.diffbot.com |
name | Zeichenkette | Optional | company name; ambiguous alone, pair with location or url | |
size | Ganzzahl | Optional | candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record | 1 |
type | Zeichenkette | Erforderlich | must be Organization for company enrichment | Organization |
email | Zeichenkette | Optional | resolves the company from an employee's email domain | |
phone | Zeichenkette | Optional | ||
filter | Zeichenkette | 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 | Zeichenkette | Optional | your own correlation id, echoed back in the response | |
jsonmode | Zeichenkette | Optional | 'extended' adds provenance for every fact | |
location | Zeichenkette | Optional | disambiguates a common company name | |
threshold | Zahl | Optional | match-confidence floor below which no candidate is returned | |
description | Zeichenkette | Optional | free-text description, as an extra disambiguator | |
nonCanonicalFacts | Boolean | Optional | include facts Diffbot has not canonicalised | |
- Abfrageparameter
idZeichenketteOptionala DiffbotId, when you already have one
ipZeichenketteOptionalresolve the company from a visitor IP address
urlZeichenketteOptionalthe company's homepage — the strongest identifier
Beispiel:
https://www.diffbot.comnameZeichenketteOptionalcompany name; ambiguous alone, pair with location or url
sizeGanzzahlOptionalcandidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record
Beispiel:
1typeZeichenketteErforderlichmust be Organization for company enrichment
Beispiel:
OrganizationemailZeichenketteOptionalresolves the company from an employee's email domain
phoneZeichenketteOptionalfilterZeichenketteOptionalJsonPath 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
customIdZeichenketteOptionalyour own correlation id, echoed back in the response
jsonmodeZeichenketteOptional'extended' adds provenance for every fact
locationZeichenketteOptionaldisambiguates a common company name
thresholdZahlOptionalmatch-confidence floor below which no candidate is returned
descriptionZeichenketteOptionalfree-text description, as an extra disambiguator
nonCanonicalFactsBooleanOptionalinclude facts Diffbot has not canonicalised
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.0299/call einschließlich Servicegebühr abgerechnet.