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/callPelo preço do provedor
- Success rate
- 99,6%Last 30 days · 1.032 calls
- Latency p50
- 337 msp95 1.3 s
- Last verified
- 28 de jul. de 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
id | string | Opcional | a DiffbotId, when you already have one | |
ip | string | Opcional | resolve the company from a visitor IP address | |
url | string | Opcional | the company's homepage — the strongest identifier | https://www.diffbot.com |
name | string | Opcional | company name; ambiguous alone, pair with location or url | |
size | inteiro | Opcional | candidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record | 1 |
type | string | Obrigatório | must be Organization for company enrichment | Organization |
email | string | Opcional | resolves the company from an employee's email domain | |
phone | string | Opcional | ||
filter | string | 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 | string | Opcional | your own correlation id, echoed back in the response | |
jsonmode | string | Opcional | 'extended' adds provenance for every fact | |
location | string | Opcional | disambiguates a common company name | |
threshold | número | Opcional | match-confidence floor below which no candidate is returned | |
description | string | Opcional | free-text description, as an extra disambiguator | |
nonCanonicalFacts | booleano | Opcional | include facts Diffbot has not canonicalised | |
- Parâmetros de consulta
idstringOpcionala DiffbotId, when you already have one
ipstringOpcionalresolve the company from a visitor IP address
urlstringOpcionalthe company's homepage — the strongest identifier
Exemplo:
https://www.diffbot.comnamestringOpcionalcompany name; ambiguous alone, pair with location or url
sizeinteiroOpcionalcandidate entities to return, default 1 — raise it only when the identifier is ambiguous, since you pay 25 credits per record
Exemplo:
1typestringObrigatóriomust be Organization for company enrichment
Exemplo:
OrganizationemailstringOpcionalresolves the company from an employee's email domain
phonestringOpcionalfilterstringOpcionalJsonPath 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
customIdstringOpcionalyour own correlation id, echoed back in the response
jsonmodestringOpcional'extended' adds provenance for every fact
locationstringOpcionaldisambiguates a common company name
thresholdnúmeroOpcionalmatch-confidence floor below which no candidate is returned
descriptionstringOpcionalfree-text description, as an extra disambiguator
nonCanonicalFactsbooleanoOpcionalinclude facts Diffbot has not canonicalised
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.0299/call, incluindo a taxa de serviço.