Search companies by DQL filter — industry, revenue
diffbot.companies.searchSearch the Diffbot Knowledge Graph for companies by DQL filter (industry, revenue)
- Price
- $0.0299/resultAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 28 jul 2026Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.companies.search?size=1&query=type%3AOrganization+industries%3A%22Software+Companies%22Preview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
THE QUOTA TRAP ON THIS PROVIDER: `size` defaults to 50, not 1, and -1 returns everything — always pass an explicit small size before you trust a new query. A POST variant of /dql accepts the same fields
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
from | entero | Opcional | offset for paging; from + size must stay under 10,000 on facet queries | 0 |
size | entero | Opcional | entities to return, DEFAULT 50, and -1 means ALL — at 25 credits each, an unset size is a 1,250-credit call. Always set this explicitly | 1 |
type | cadena | Opcional | 'query' (default) returns entities; 'refresh' re-crawls the matches before returning | |
query | cadena | Obligatorio | a DQL query string; the type facet picks the entity, e.g. type:Organization industries:"Software Companies" nbEmployees>50 | type:Organization industries:"Software Companies" |
filter | cadena | Opcional | JsonPath expression selecting which parts of each record to return | |
format | cadena | Opcional | json (default) | jsonl | csv | xls | xlsx | |
jsonmode | cadena | Opcional | 'extended' adds provenance, 'id' returns bare DiffbotIds | |
nonCanonicalFacts | booleano | Opcional | ||
- Parámetros de consulta
fromenteroOpcionaloffset for paging; from + size must stay under 10,000 on facet queries
Ejemplo:
0sizeenteroOpcionalentities to return, DEFAULT 50, and -1 means ALL — at 25 credits each, an unset size is a 1,250-credit call. Always set this explicitly
Ejemplo:
1typecadenaOpcional'query' (default) returns entities; 'refresh' re-crawls the matches before returning
querycadenaObligatorioa DQL query string; the type facet picks the entity, e.g. type:Organization industries:"Software Companies" nbEmployees>50
Ejemplo:
type:Organization industries:"Software Companies"filtercadenaOpcionalJsonPath expression selecting which parts of each record to return
formatcadenaOpcionaljson (default) | jsonl | csv | xls | xlsx
jsonmodecadenaOpcional'extended' adds provenance, 'id' returns bare DiffbotIds
nonCanonicalFactsbooleanoOpcional
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.search?size=1&query=type%3AOrganization+industries%3A%22Software+Companies%22' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.companies.search?size=1&query=type%3AOrganization+industries%3A%22Software+Companies%22",
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.search?size=1&query=type%3AOrganization+industries%3A%22Software+Companies%22", {
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/result, incluida la tarifa de servicio.