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/callAl precio del proveedor
- Success rate
- 99,6 %Last 30 days · 1032 calls
- Latency p50
- 337 msp95 1.3 s
- Last verified
- 28 jul 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
Parámetros
`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
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
id | cadena | Opcional | a DiffbotId, when you already have one | |
ip | cadena | Opcional | resolve the company from a visitor IP address | |
url | cadena | Opcional | the company's homepage — the strongest identifier | https://www.diffbot.com |
name | cadena | Opcional | company name; ambiguous alone, pair with location or url | |
size | entero | Opcional | candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record | 1 |
type | cadena | Obligatorio | must be Organization for company enrichment | Organization |
email | cadena | Opcional | resolves the company from an employee's email domain | |
phone | cadena | Opcional | ||
filter | cadena | Opcional | JsonPath expression selecting which parts of the record to return | |
search | booleano | Opcional | widen to a search when no exact entity matches; default false | |
refresh | booleano | Opcional | force a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false | |
customId | cadena | Opcional | your own correlation id, echoed back in the response | |
jsonmode | cadena | Opcional | 'extended' adds provenance for every fact | |
location | cadena | Opcional | disambiguates a common company name | |
threshold | número | Opcional | match-confidence floor below which no candidate is returned | |
description | cadena | Opcional | free-text description, as an extra disambiguator | |
nonCanonicalFacts | booleano | Opcional | include facts Diffbot has not canonicalised | |
- Parámetros de consulta
idcadenaOpcionala DiffbotId, when you already have one
ipcadenaOpcionalresolve the company from a visitor IP address
urlcadenaOpcionalthe company's homepage — the strongest identifier
Ejemplo:
https://www.diffbot.comnamecadenaOpcionalcompany name; ambiguous alone, pair with location or url
sizeenteroOpcionalcandidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record
Ejemplo:
1typecadenaObligatoriomust be Organization for company enrichment
Ejemplo:
OrganizationemailcadenaOpcionalresolves the company from an employee's email domain
phonecadenaOpcionalfiltercadenaOpcionalJsonPath expression selecting which parts of the record to return
searchbooleanoOpcionalwiden to a search when no exact entity matches; default false
refreshbooleanoOpcionalforce a live re-crawl instead of the cached KG record — QUADRUPLES the price to 100 credits per record; default false
customIdcadenaOpcionalyour own correlation id, echoed back in the response
jsonmodecadenaOpcional'extended' adds provenance for every fact
locationcadenaOpcionaldisambiguates a common company name
thresholdnúmeroOpcionalmatch-confidence floor below which no candidate is returned
descriptioncadenaOpcionalfree-text description, as an extra disambiguator
nonCanonicalFactsbooleanoOpcionalinclude facts Diffbot has not canonicalised
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.0299/call, incluida la tarifa de servicio.