Search companies by DQL filter — industry, revenue
diffbot.companies.searchSearch the Diffbot Knowledge Graph for companies by DQL filter (industry, revenue)
- Price
- $0.0299/resultAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 28 juil. 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
Paramètres
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
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
from | entier | Facultatif | offset for paging; from + size must stay under 10,000 on facet queries | 0 |
size | entier | Facultatif | 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 | chaîne | Facultatif | 'query' (default) returns entities; 'refresh' re-crawls the matches before returning | |
query | chaîne | Obligatoire | 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 | chaîne | Facultatif | JsonPath expression selecting which parts of each record to return | |
format | chaîne | Facultatif | json (default) | jsonl | csv | xls | xlsx | |
jsonmode | chaîne | Facultatif | 'extended' adds provenance, 'id' returns bare DiffbotIds | |
nonCanonicalFacts | booléen | Facultatif | ||
- Paramètres de requête
fromentierFacultatifoffset for paging; from + size must stay under 10,000 on facet queries
Exemple :
0sizeentierFacultatifentities 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
Exemple :
1typechaîneFacultatif'query' (default) returns entities; 'refresh' re-crawls the matches before returning
querychaîneObligatoirea DQL query string; the type facet picks the entity, e.g. type:Organization industries:"Software Companies" nbEmployees>50
Exemple :
type:Organization industries:"Software Companies"filterchaîneFacultatifJsonPath expression selecting which parts of each record to return
formatchaîneFacultatifjson (default) | jsonl | csv | xls | xlsx
jsonmodechaîneFacultatif'extended' adds provenance, 'id' returns bare DiffbotIds
nonCanonicalFactsbooléenFacultatif
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.0299/result, frais de service inclus.