Enrich a company by domain or URL: headcount, industry
village.companies.enrichGet detailed information about a company.
- Precio
- $0.02/successA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoÚltimos 30 días · 0 llamadas
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
POSThttps://toolswitch.dev/v1/tools/village.companies.enrichBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos 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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Cuerpo (JSON) | ||||
url | cadena | Opcional | Generic URL (auto-detected). | |
mode | cadena | 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 | cadena | Opcional | Company domain (normalized, without www prefix). Send one of domain, linkedin_url or url. | acme.com |
linkedin_url | cadena | Opcional | LinkedIn company page URL. | https://linkedin.com/company/acme-corp |
- Cuerpo (JSON)
urlcadenaOpcionalGeneric URL (auto-detected).
modecadenaOpcionalcached_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.
Ejemplo:
cached_firstdomaincadenaOpcionalCompany domain (normalized, without www prefix). Send one of domain, linkedin_url or url.
Ejemplo:
acme.comlinkedin_urlcadenaOpcionalLinkedIn company page URL.
Ejemplo:
https://linkedin.com/company/acme-corp
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.02/success, incluida la tarifa de servicio.