Bulk-enrich companies or people (async job)
diffbot.companies.bulk_enrichEnrich many companies or people in one asynchronous job instead of one call each
- Price
- $0.0299/resultAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoLast 30 days · 4 calls
- Latency p50
- ——
- Last verified
- 28 jul 2026Verified working
POSThttps://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verifyPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
ASYNCHRONOUS: returns HTTP 202 and a job id. Poll GET /enhance/bulk/{bulkjobId}/status, then read GET /enhance/bulk/{bulkjobId}. The maximum batch size is not published
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
name | cadena | Opcional | a label for the bulk job | treg-batch-1 |
size | entero | Opcional | applies to every query in the job | |
refresh | booleano | Opcional | job-wide; 100 credits per record instead of 25 | |
threshold | número | Opcional | ||
webhookurl | cadena | Opcional | where to POST the results when the job finishes | |
- Parámetros de consulta
namecadenaOpcionala label for the bulk job
Ejemplo:
treg-batch-1sizeenteroOpcionalapplies to every query in the job
refreshbooleanoOpcionaljob-wide; 100 credits per record instead of 25
thresholdnúmeroOpcionalwebhookurlcadenaOpcionalwhere to POST the results when the job finishes
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '[{"url":"diffbot.com","type":"Organization"}]'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("[{\"url\":\"diffbot.com\",\"type\":\"Organization\"}]"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.companies.bulk_enrich?name=treg-verify", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("[{\"url\":\"diffbot.com\",\"type\":\"Organization\"}]")),
});
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/result, incluida la tarifa de servicio.