# 人物情報を補う

Source: https://won.dev/ja/docs/enrich/people-find

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

わかっている情報から人物のプロフィールを補います。メールアドレス、LinkedInプロフィール、氏名と勤務先のWebサイト、またはほかの呼び出しが返した `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：見つかった個人プロフィール1件。`person_email` $0.03：雇用主のドメインで見つかった仕事用メールアドレス1件。返す前に確認済みです。`person_phone` $0.10：見つかった電話番号1件。番号計画のチェックを通ったものです。
- **モード：** `merge` ([各モードの意味](/ja/docs/trade#modes))

テストキー（`won_test_...`）でこのリクエストを送ると、同じサンプル企業とサンプル人物が無料で返ります。

## パラメーター [#parameters]

パラメーターはJSONのリクエストボディで渡します。`POST` リクエストでは `Idempotency-Key` ヘッダーも使えます。[冪等性](/ja/docs/idempotency)を参照してください。

| パラメーター | 型 | 必須 | 説明（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. |
| `include` | (`email` \| `phone`)[] | いいえ | Parts to add: `email`, `phone`. Each is billed by its own unit. |
| `min_email_status` | `verified` \| `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_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`. |

## レスポンス [#response]

`dry_run: true` を指定すると何も実行されず、`data` にはその呼び出しの最大費用だけが入ります。[ドライラン](/ja/docs/responses#dry-run)を参照してください。エラーについては[エラーコード](/ja/docs/errors)を参照してください。

| フィールド | 型 | 説明（APIの原文） |
| --- | --- | --- |
| `data` | object | The person, with the parts asked for in `include`. |
| `data.person` | object \| null | The profile. Null when none was found. |
| `data.person.id` | string | Person 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.name` | string \| null | Full name. |
| `data.person.first_name` | string \| null |  |
| `data.person.last_name` | string \| null |  |
| `data.person.title` | string \| null | Current job title. |
| `data.person.seniority` | `owner` \| `c_level` \| `executive` \| `manager` \| `senior` \| `staff` \| null | Level, read from the title. |
| `data.person.department` | `purchasing` \| `sales` \| `management` \| `operations` \| `marketing` \| `finance` \| `engineering` \| `quality` \| `it` \| `hr` \| `legal` \| null | Department, read from the title. |
| `data.person.company` | string \| null | Current employer. |
| `data.person.company_domain` | string \| null | The employer's website, such as `example.com`. |
| `data.person.linkedin_url` | string \| null | The person's LinkedIn profile. |
| `data.person.location` | string \| null | Where the person is, as their profile says. |
| `data.email` | object \| null | With `include: ["email"]`: the work email. Null when none was found. |
| `data.email.email` | string | Work email on the employer's own domain. |
| `data.email.status` | `verified` \| `risky` | `verified`: the mailbox exists. `risky`: the domain accepts every address, so the mailbox cannot be confirmed. |
| `data.phone` | object \| null | With `include: ["phone"]`: the phone number. Null when none was found. |
| `data.phone.number` | string | In E.164 format, such as `+14155550123`. |
| `data.phone.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.phone.country` | string \| null | ISO 3166 code of the country the number belongs to. |
| `data.phone.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.cost` | number | What this call cost, in US dollars. |
| `usage.breakdown` | object[] | Every billing unit that came back, charged or not. Empty when nothing did. |
| `usage.breakdown[].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.breakdown[].records` | integer | How many were returned and charged. |
| `usage.breakdown[].already_paid` | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
| `usage.breakdown[].cost` | number | What they 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. |

## 例 [#example]

```bash
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"
  ]
}'
```

```json
{
  "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
  }
}
```