Search companies by DQL filter — industry, revenue
diffbot.companies.searchSearch the Diffbot Knowledge Graph for companies by DQL filter (industry, revenue)
- Price
- $0.0299/resultプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/07/28Verified 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
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
from | 整数 | 任意 | offset for paging; from + size must stay under 10,000 on facet queries | 0 |
size | 整数 | 任意 | 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 | 文字列 | 任意 | 'query' (default) returns entities; 'refresh' re-crawls the matches before returning | |
query | 文字列 | 必須 | 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 | 文字列 | 任意 | JsonPath expression selecting which parts of each record to return | |
format | 文字列 | 任意 | json (default) | jsonl | csv | xls | xlsx | |
jsonmode | 文字列 | 任意 | 'extended' adds provenance, 'id' returns bare DiffbotIds | |
nonCanonicalFacts | 真偽値 | 任意 | ||
- クエリパラメータ
from整数任意offset for paging; from + size must stay under 10,000 on facet queries
例:
0size整数任意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
例:
1type文字列任意'query' (default) returns entities; 'refresh' re-crawls the matches before returning
query文字列必須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文字列任意JsonPath expression selecting which parts of each record to return
format文字列任意json (default) | jsonl | csv | xls | xlsx
jsonmode文字列任意'extended' adds provenance, 'id' returns bare DiffbotIds
nonCanonicalFacts真偽値任意
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.0299/result です。サービス料を含みます。