Search companies by DQL filter — industry, revenue
diffbot.companies.searchSearch the Diffbot Knowledge Graph for companies by DQL filter (industry, revenue)
- Price
- $0.0299/resultAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- Jul 28, 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
Parameters
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
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
from | integer | Optional | offset for paging; from + size must stay under 10,000 on facet queries | 0 |
size | integer | Optional | 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 | string | Optional | 'query' (default) returns entities; 'refresh' re-crawls the matches before returning | |
query | string | Required | 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 | string | Optional | JsonPath expression selecting which parts of each record to return | |
format | string | Optional | json (default) | jsonl | csv | xls | xlsx | |
jsonmode | string | Optional | 'extended' adds provenance, 'id' returns bare DiffbotIds | |
nonCanonicalFacts | boolean | Optional | ||
- Query parameters
fromintegerOptionaloffset for paging; from + size must stay under 10,000 on facet queries
Example:
0sizeintegerOptionalentities 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
Example:
1typestringOptional'query' (default) returns entities; 'refresh' re-crawls the matches before returning
querystringRequireda DQL query string; the type facet picks the entity, e.g. type:Organization industries:"Software Companies" nbEmployees>50
Example:
type:Organization industries:"Software Companies"filterstringOptionalJsonPath expression selecting which parts of each record to return
formatstringOptionaljson (default) | jsonl | csv | xls | xlsx
jsonmodestringOptional'extended' adds provenance, 'id' returns bare DiffbotIds
nonCanonicalFactsbooleanOptional
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.0299/result, including the service fee.