Enrich a company by domain — 80+ datapoints
thecompaniesapi.companies.enrichEnrich a company from its domain — 80+ datapoints: industry, size, revenue, socials
- 价格
- $0.0019/success按供应商原价
- 成功率
- 100%近 30 天 · 575,863 次
- 延迟 p50
- 275 毫秒p95 625 毫秒
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/thecompaniesapi.companies.enrich预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
a domain with no company behind it returns an empty object and is not charged
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
domain | 字符串 | 必填 | company domain, no protocol or www | apple.com |
| 查询参数 | ||||
refresh | 布尔 | 可选 | forces a live re-crawl instead of the cached record; costs 10 EXTRA credits | |
simplified | 布尔 | 可选 | returns a reduced record for ZERO credits — use it to check a domain exists before paying for the full profile | true |
- 路径参数
domain字符串必填company domain, no protocol or www
示例:
apple.com- 查询参数
refresh布尔可选forces a live re-crawl instead of the cached record; costs 10 EXTRA credits
simplified布尔可选returns a reduced record for ZERO credits — use it to check a domain exists before paying for the full profile
示例:
true
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/thecompaniesapi.companies.enrich' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/thecompaniesapi.companies.enrich",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/thecompaniesapi.companies.enrich", {
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.0019/success 计费,已含服务费。