Search companies by DQL filter — industry, revenue
diffbot.companies.searchSearch the Diffbot Knowledge Graph for companies by DQL filter (industry, revenue)
- 价格
- $0.0299/result按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/diffbot.companies.search?size=1&query=type%3AOrganization+industries%3A%22Software+Companies%22预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.0299/result 计费,已含服务费。