跳到正文
Won.dev
数据补全 API

补全个人

根据邮箱、LinkedIn 主页或“公司 + 姓名”补全个人档案,可按需附带工作邮箱和电话。

POST https://api.won.dev/v1/enrich/people/find

根据你已知的信息补全一个人的档案:邮箱、LinkedIn 主页、“姓名 + 雇主网站”,或者其他调用返回的 person_id。档案包括全名、当前职位和雇主、所在地和 LinkedIn 主页,因此只凭一个邮箱或一个名字就能查到 LinkedIn 链接。找到档案时收取 $0.02,找不到免费。include 可以在同一次调用中追加以下内容,找到才收费:email,雇主域名下经过验证的工作邮箱($0.03);phone,电话号码,通常是手机($0.10)。按姓名查询时,不会返回其他公司的同名人员。如果只需要邮箱或电话,POST /enrich/people/email/find 和 POST /enrich/people/phone/find 不查档案。

  • 计费: person_profile $0.02:找到的一份个人档案。person_email $0.03:在雇主域名下找到的一个工作邮箱,返回前已验证。person_phone $0.10:找到的一个电话号码,已通过号码规则校验。
  • 数据模式: merge (各模式的含义)

参数

参数放在 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.
include(email | phone)[]否Parts to add: email, phone. Each is billed by its own unit.
min_email_statusverified | risky否verified (default) returns only mailboxes that were confirmed to exist. risky also returns addresses on domains that accept every address, which cannot be confirmed. Same price. Default: verified.
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 原文)
dataobjectThe person, with the parts asked for in include.
data.personobject | nullThe profile. Null when none was found.
data.person.idstringPerson ID, such as per_4m7q2x9k1c8d. It is kept for your account for 90 days after it was last returned: pass it as person_id to find the person's email or phone, or as contact_id to add them to a campaign. The same person can come back under another ID from another endpoint; each one works. To match people across calls, compare linkedin_url.
data.person.namestring | nullFull name.
data.person.first_namestring | null
data.person.last_namestring | null
data.person.titlestring | nullCurrent job title.
data.person.seniorityowner | c_level | executive | manager | senior | staff | nullLevel, read from the title.
data.person.departmentpurchasing | sales | management | operations | marketing | finance | engineering | quality | it | hr | legal | nullDepartment, read from the title.
data.person.companystring | nullCurrent employer.
data.person.company_domainstring | nullThe employer's website, such as example.com.
data.person.linkedin_urlstring | nullThe person's LinkedIn profile.
data.person.locationstring | nullWhere the person is, as their profile says.
data.emailobject | nullWith include: ["email"]: the work email. Null when none was found.
data.email.emailstringWork email on the employer's own domain.
data.email.statusverified | riskyverified: the mailbox exists. risky: the domain accepts every address, so the mailbox cannot be confirmed.
data.phoneobject | nullWith include: ["phone"]: the phone number. Null when none was found.
data.phone.numberstringIn E.164 format, such as +14155550123.
data.phone.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.phone.countrystring | nullISO 3166 code of the country the number belongs to.
data.phone.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.costnumberWhat this call cost, in US dollars.
usage.breakdownobject[]Every billing unit that came back, charged or not. Empty when nothing did.
usage.breakdown[].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.breakdown[].recordsintegerHow many were returned and charged.
usage.breakdown[].already_paidintegerHow many more were returned for free, because this organization paid for them in the last 30 days.
usage.breakdown[].costnumberWhat they 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/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
  "include": [
    "email",
    "phone"
  ]
}'
{
  "data": {
    "person": {
      "id": "per_4m7q2x9k1c8d",
      "name": "Jordan Lee",
      "first_name": "Jordan",
      "last_name": "Lee",
      "title": "Director of Global Sourcing",
      "seniority": "executive",
      "department": "purchasing",
      "company": "SAMPLE Northfield Home Furnishings",
      "company_domain": "northfield-home.example",
      "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
      "location": "Charlotte, North Carolina, United States"
    },
    "email": {
      "email": "jordan.lee@northfield-home.example",
      "status": "verified"
    },
    "phone": {
      "number": "+17045550142",
      "type": "mobile",
      "country": "US",
      "whatsapp_url": "https://wa.me/17045550142"
    }
  },
  "query": {
    "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
    "include": [
      "email",
      "phone"
    ],
    "min_email_status": "verified"
  },
  "notice": null,
  "usage": {
    "cost": 0.15,
    "breakdown": [
      {
        "unit": "person_profile",
        "records": 1,
        "already_paid": 0,
        "cost": 0.02
      },
      {
        "unit": "person_email",
        "records": 1,
        "already_paid": 0,
        "cost": 0.03
      },
      {
        "unit": "person_phone",
        "records": 1,
        "already_paid": 0,
        "cost": 0.1
      }
    ],
    "balance": 48.85,
    "replayed": false
  }
}

用测试 key(won_test_...)发送这个请求,会返回同一家样例公司和同一批样例人员,不收费。

本页内容