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/callAu prix du fournisseur
- Success rate
- 99,6 %Last 30 days · 1 032 calls
- Latency p50
- 337 msp95 1.3 s
- Last verified
- 28 juil. 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
Paramètres
`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
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
id | chaîne | Facultatif | a DiffbotId, when you already have one | |
ip | chaîne | Facultatif | resolve the company from a visitor IP address | |
url | chaîne | Facultatif | the company's homepage — the strongest identifier | https://www.diffbot.com |
name | chaîne | Facultatif | company name; ambiguous alone, pair with location or url | |
size | entier | Facultatif | candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record | 1 |
type | chaîne | Obligatoire | must be Organization for company enrichment | Organization |
email | chaîne | Facultatif | resolves the company from an employee's email domain | |
phone | chaîne | Facultatif | ||
filter | chaîne | Facultatif | JsonPath expression selecting which parts of the record to return | |
search | booléen | Facultatif | widen to a search when no exact entity matches; default false | |
refresh | booléen | Facultatif | force a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false | |
customId | chaîne | Facultatif | your own correlation id, echoed back in the response | |
jsonmode | chaîne | Facultatif | 'extended' adds provenance for every fact | |
location | chaîne | Facultatif | disambiguates a common company name | |
threshold | nombre | Facultatif | match-confidence floor below which no candidate is returned | |
description | chaîne | Facultatif | free-text description, as an extra disambiguator | |
nonCanonicalFacts | booléen | Facultatif | include facts Diffbot has not canonicalised | |
- Paramètres de requête
idchaîneFacultatifa DiffbotId, when you already have one
ipchaîneFacultatifresolve the company from a visitor IP address
urlchaîneFacultatifthe company's homepage — the strongest identifier
Exemple :
https://www.diffbot.comnamechaîneFacultatifcompany name; ambiguous alone, pair with location or url
sizeentierFacultatifcandidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record
Exemple :
1typechaîneObligatoiremust be Organization for company enrichment
Exemple :
OrganizationemailchaîneFacultatifresolves the company from an employee's email domain
phonechaîneFacultatiffilterchaîneFacultatifJsonPath expression selecting which parts of the record to return
searchbooléenFacultatifwiden to a search when no exact entity matches; default false
refreshbooléenFacultatifforce a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false
customIdchaîneFacultatifyour own correlation id, echoed back in the response
jsonmodechaîneFacultatif'extended' adds provenance for every fact
locationchaîneFacultatifdisambiguates a common company name
thresholdnombreFacultatifmatch-confidence floor below which no candidate is returned
descriptionchaîneFacultatiffree-text description, as an extra disambiguator
nonCanonicalFactsbooléenFacultatifinclude facts Diffbot has not canonicalised
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.0299/call, frais de service inclus.