Preview the top 25 company search results (free, Scale plan)
companyenrich.companies.search.previewReturns the top 25 results for free, perfect for previewing search results before running a full search
- 价格
- free按目录价
- 成功率
- 100%近 30 天 · 30,729 次
- 延迟 p50
- 568 毫秒p95 1.2 秒
- 最后验证
- —尚未验证
POSThttps://toolswitch.dev/v1/tools/companyenrich.companies.search.previewBeta- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
PLAN-GATED. Only accounts on the vendor's top tier can call this; every other plan gets HTTP 403 with detail 'Your plan does not include access to preview functionality.' Check `capabilities.previews` on GET /me before calling. When available it is strictly better than paying for a first page.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
countries | array[string] | 可选 | ISO alpha-2 codes | ["US"] |
technologies | array[string] | 可选 | same filter object as companyenrich.companies.search | ["stripe"] |
- 请求体(JSON)
countriesarray[string]可选ISO alpha-2 codes
示例:
["US"]technologiesarray[string]可选same filter object as companyenrich.companies.search
示例:
["stripe"]
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/companyenrich.companies.search.preview' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"countries":["US"],"technologies":["stripe"]}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/companyenrich.companies.search.preview",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"countries\":[\"US\"],\"technologies\":[\"stripe\"]}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/companyenrich.companies.search.preview", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"countries\":[\"US\"],\"technologies\":[\"stripe\"]}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。