数据补全 API
找电话号码
查找某人的电话号码(通常是手机),附带 WhatsApp 链接。找到才计费。
POST https://api.won.dev/v1/enrich/people/phone/find
根据 LinkedIn 主页、邮箱、“姓名 + 雇主网站”,或者其他调用返回的 person_id,查找某人的电话号码,通常是手机。用 LinkedIn 主页查找的命中率最高。找到时收取 $0.10,找不到免费。数据源按固定顺序依次尝试,价格低的优先。每个号码都会按所在国家的号码规则校验,以 E.164 格式返回,并附带 type(mobile、landline、voip,校验无响应时为 unknown)和 country;不可能存在的号码会被丢弃,不收费。手机号附带一个 wa.me 链接,可以直接发起 WhatsApp 聊天,但不检查此人是否在该号码上使用 WhatsApp。我们不会拨打或检测号码本身。请只给有正当理由联系的人打电话,并遵守对方所在地关于电话和消息的法规。
- 计费:
person_phone$0.10:找到的一个电话号码,已通过号码规则校验。 - 数据模式:
waterfall(各模式的含义)
参数
参数放在 JSON 请求体里。POST 请求还支持 Idempotency-Key 请求头,见幂等。
| 参数 | 类型 | 必填 | 说明(API 原文) |
|---|---|---|---|
email | string | 否 | The person's email address, such as jane@example.com. |
linkedin_url | string | 否 | The person's LinkedIn profile, such as https://www.linkedin.com/in/jane-doe. |
first_name | string | 否 | First name, with last_name and domain. |
last_name | string | 否 | Last name, with first_name and domain. |
domain | string | 否 | The website of the person's employer, such as example.com, with first_name and last_name. |
company_id | string | 否 | A company ID from the trade data API, such as co_8f3k2m9x4p1q, instead of domain: the company's website on record is used. |
person_id | string | 否 | A person ID this account was given in the last 90 days, such as per_4m7q2x9k1c8d, instead of naming the person: their name, employer website and LinkedIn profile on file are used. What you pass besides it wins. |
max_cost | number | 否 | Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged. |
dry_run | boolean | 否 | If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: false. |
响应
传入 dry_run: true 时不执行查询,data 中只返回本次调用的最高费用,见预估费用。错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object | null | The phone number. Null when none was found. |
data.number | string | In E.164 format, such as +14155550123. |
data.type | mobile | landline | voip | other | unknown | What the numbering plan says the number is: mobile, landline, voip, other, or unknown. It is not a live check of the line. |
data.country | string | null | ISO 3166 code of the country the number belongs to. |
data.whatsapp_url | string | null | A wa.me link that opens a chat with a mobile number. Whether the number uses WhatsApp is not checked. Null for other numbers. |
query | object | The request as it was understood: country names as codes, the default dates filled in. |
notice | string | null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
usage | object | What this call was charged, and the balance left. |
usage.unit | person_record | person_profile | person_email | person_phone | email_verification | company_listing | company_record | company_channels | company_technologies | company_funding | company_news | company_lookalikes | job_posting | What is counted. |
usage.records | integer | How many were returned and charged. |
usage.already_paid | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
usage.cost | number | What this call cost, in US dollars. |
usage.balance | number | The balance left after this call, in US dollars. |
usage.replayed | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |
示例
curl https://api.won.dev/v1/enrich/people/phone/find \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee"
}'{
"data": {
"number": "+17045550142",
"type": "mobile",
"country": "US",
"whatsapp_url": "https://wa.me/17045550142"
},
"query": {
"linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee"
},
"notice": null,
"usage": {
"unit": "person_phone",
"records": 1,
"already_paid": 0,
"cost": 0.1,
"balance": 48.9,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会返回同一家样例公司和同一批样例人员,不收费。