跳到正文
Won.dev
数据补全 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 原文)
emailstring否The person's email address, such as jane@example.com.
linkedin_urlstring否The person's LinkedIn profile, such as https://www.linkedin.com/in/jane-doe.
first_namestring否First name, with last_name and domain.
last_namestring否Last name, with first_name and domain.
domainstring否The website of the person's employer, such as example.com, with first_name and last_name.
company_idstring否A company ID from the trade data API, such as co_8f3k2m9x4p1q, instead of domain: the company's website on record is used.
person_idstring否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_costnumber否Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.
dry_runboolean否If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: false.

响应

传入 dry_run: true 时不执行查询,data 中只返回本次调用的最高费用,见预估费用。错误说明见错误码。

字段类型说明(API 原文)
dataobject | nullThe phone number. Null when none was found.
data.numberstringIn E.164 format, such as +14155550123.
data.typemobile | landline | voip | other | unknownWhat the numbering plan says the number is: mobile, landline, voip, other, or unknown. It is not a live check of the line.
data.countrystring | nullISO 3166 code of the country the number belongs to.
data.whatsapp_urlstring | nullA wa.me link that opens a chat with a mobile number. Whether the number uses WhatsApp is not checked. Null for other numbers.
queryobjectThe request as it was understood: country names as codes, the default dates filled in.
noticestring | nullA plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.
usageobjectWhat this call was charged, and the balance left.
usage.unitperson_record | person_profile | person_email | person_phone | email_verification | company_listing | company_record | company_channels | company_technologies | company_funding | company_news | company_lookalikes | job_postingWhat is counted.
usage.recordsintegerHow many were returned and charged.
usage.already_paidintegerHow many more were returned for free, because this organization paid for them in the last 30 days.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue 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_...)发送这个请求,会返回同一家样例公司和同一批样例人员,不收费。

本页内容