// api 控制台
示例API 参考中的示例响应
- [0].name
- US
- [0].total
- 44
// 01 · 请求
Location只需一个 HTTPS 请求
使用您的密钥和密钥密码发送参数。每个 SDK、CLI 和 MCP 服务器都发出相同的调用。
GET
/locationdomain必填- Company domain
curl -G https://api.tomba.io/v1/location \
--data-urlencode "domain=piedpiper.com" \
-H "X-Tomba-Key: $TOMBA_API_KEY" \
-H "X-Tomba-Secret: $TOMBA_SECRET_KEY"const params = new URLSearchParams({
domain: "piedpiper.com"
});
const res = await fetch(`https://api.tomba.io/v1/location?${params}`, {
headers: {
"X-Tomba-Key": process.env.TOMBA_API_KEY,
"X-Tomba-Secret": process.env.TOMBA_SECRET_KEY
}
});
const { data } = await res.json();import os, requests
res = requests.get(
"https://api.tomba.io/v1/location",
params={
"domain": "piedpiper.com",
},
headers={
"X-Tomba-Key": os.environ["TOMBA_API_KEY"],
"X-Tomba-Secret": os.environ["TOMBA_SECRET_KEY"],
},
)
data = res.json()["data"]// 02 · 响应
返回的内容
JSON,在任何语言中都相同。Tomba 不知道的字段为 null,绝不猜测。
GET
/locationdata[].namestring- Country code
data[].totalinteger- Addresses in that country
GET /location
200 OK· 1 email count credit
{
"data": [
{
"name": "US",
"total": 44
},
{
"name": "GB",
"total": 4
}
]
}// 03 · 费用和限制
调用的费用
仅在满足以下条件时才对调用收费。速率限制取决于您的套餐。
// 费用
1email count credit
收费条件: Every successful call, including an empty result.
错误、429 和 451 响应,以及在用量窗口内重复的相同请求均不收费。
积分如何运作// 速率限制
每秒 / 每分钟 / 每天请求数| Free | Basic | Growth | Pro | |
|---|---|---|---|---|
| Search, finder, similar, technology | 1 / 2 / 5 | 3 / 50 / 500 | 5 / 80 / 1,000 | 8 / 150 / 4,000 |
| Email verifier | 1 / 2 / 10 | 2 / 40 / 500 | 3 / 60 / 1,000 | 5 / 100 / 4,000 |
横向滚动可查看所有列
Pro Plus, Scale and credit packs of 50,000 or more: no limit on these endpoints. Enterprise: no per-second or per-minute limit, 100,000 requests a day. Daily limits reset at 00:00 UTC. 速率限制
一个包含国家代码的数组,以及给定域名在每个国家找到的员工总数。
ISO 3166-1 alpha-2 代码(如 US、FR、DE、GB)。
每次地理位置请求消耗 1 个积分。
位置信息来源于我们的爬虫持续索引的公开个人资料数据、公司页面和商业目录。
可以。确定公司在哪些地区拥有最多员工,以优先在存在较强的区域进行外展。
13 个官方 SDK:C#、Dart、Deno、Elixir、Go、Lua、Node.js、Perl、PHP、Python、R、Ruby 和 Rust。