Enrich a company by domain or URL: headcount, industry
village.companies.enrichGet detailed information about a company.
- Preço
- $0.02/successPelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoÚltimos 30 dias · 0 chamadas
- Latência p50
- ——
- Última verificação
- —Ainda não verificado
POSThttps://toolswitch.dev/v1/tools/village.companies.enrichBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
One of domain, linkedin_url or url is required. Returns company name, website, LinkedIn URL, logo, employee count, industry, founded year and description.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Corpo (JSON) | ||||
url | string | Opcional | Generic URL (auto-detected). | |
mode | string | Opcional | cached_first returns the company Village holds when it is recent and otherwise fetches it live. realtime_only always fetches live. cached_only never fetches and is free; village.companies.enrich.stored is that tier. | cached_first |
domain | string | Opcional | Company domain (normalized, without www prefix). Send one of domain, linkedin_url or url. | acme.com |
linkedin_url | string | Opcional | LinkedIn company page URL. | https://linkedin.com/company/acme-corp |
- Corpo (JSON)
urlstringOpcionalGeneric URL (auto-detected).
modestringOpcionalcached_first returns the company Village holds when it is recent and otherwise fetches it live. realtime_only always fetches live. cached_only never fetches and is free; village.companies.enrich.stored is that tier.
Exemplo:
cached_firstdomainstringOpcionalCompany domain (normalized, without www prefix). Send one of domain, linkedin_url or url.
Exemplo:
acme.comlinkedin_urlstringOpcionalLinkedIn company page URL.
Exemplo:
https://linkedin.com/company/acme-corp
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X POST 'https://toolswitch.dev/v1/tools/village.companies.enrich' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"domain":"stripe.com"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/village.companies.enrich",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"domain\":\"stripe.com\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/village.companies.enrich", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"domain\":\"stripe.com\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em Beta; 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.02/success, incluindo a taxa de serviço.