# 企業の連絡先を探す

Source: https://won.dev/ja/docs/trade/companies-contacts

`GET https://api.won.dev/v1/trade/companies/{id}/contacts`

企業で連絡すべき人を探し、それぞれに企業の自社ドメインで確認済みの仕事用メールアドレスをつけて返します。返った連絡先1人ごとに $0.03。誰も見つからなければ無料です。データ提供元は決まった順に、安いものから試し、連絡先が `limit` 人に達したところで止まります。20秒ほどで返ります。条件を指定しなければ、売り手が連絡したい購買部門と経営層を優先して探します。サプライヤーに連絡したいなら `department=sales` を指定してください。`query.resolution.exhausted` がtrueなら、もう一度問い合わせても新しい結果はありません。連絡先を探すには企業のWebサイトが必要です。わからず確認もできない場合は空のリストを返し、`notice` でそう伝えます。Webサイトがわかっていれば `domain` として渡すか、`GET /trade/companies/{id}?include=channels` で共有メールボックスを取得してください。

- **課金：** `person_email` $0.03：企業の自社ドメインで確認済みの仕事用メールアドレスを持つ連絡先1人。
- **モード：** `waterfall` ([各モードの意味](/ja/docs/trade#modes))

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

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

`id` はパスに含めます。それ以外はクエリ文字列で渡し、リストはカンマ区切りにします。

| パラメーター | 型 | 必須 | 説明（APIの原文） |
| --- | --- | --- | --- |
| `id` | string | はい | Company ID, such as `co_8f3k2m9x4p1q`. Search results carry it; `GET /trade/companies/lookup?q=` finds it by name. |
| `seniority` | (`owner` \| `c_level` \| `executive` \| `manager` \| `senior` \| `staff`)[] | いいえ | Only people of these levels: `owner`, `c_level`, `executive` (VP, director, head), `manager`, `senior` (a senior individual role, such as Senior Buyer), `staff` (any other role). Default: any level. |
| `department` | (`purchasing` \| `sales` \| `management` \| `operations` \| `marketing` \| `finance` \| `engineering` \| `quality` \| `it` \| `hr` \| `legal`)[] | いいえ | Only people in these departments. Default: `purchasing` and `management` first, which is whom a seller approaches. To reach a supplier, ask for `sales`. |
| `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`. |
| `domain` | string | いいえ | The company's website, such as `example.com`, when you know it and we do not. Contacts are only returned with an email on this domain. |
| `limit` | integer | いいえ | How many contacts to return, 1 to 25. You pay for the contacts returned. Default: `5`. |
| `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 best people to approach first. |
| `data[].id` | string | Person ID, such as `per_4m7q2x9k1c8d`. Kept for your account for 90 days after it was last returned, with the email: pass it as `contact_id` to add the person to a campaign. |
| `data[].name` | string \| null | Full name. |
| `data[].title` | string \| null | Job title. |
| `data[].seniority` | `owner` \| `c_level` \| `executive` \| `manager` \| `senior` \| `staff` \| null | Level, read from the title. |
| `data[].department` | `purchasing` \| `sales` \| `management` \| `operations` \| `marketing` \| `finance` \| `engineering` \| `quality` \| `it` \| `hr` \| `legal` \| null | Department, read from the title. |
| `data[].email` | string | Work email on the company'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[].linkedin_url` | string \| null | The person's LinkedIn profile, when known. |
| `data[].other_email` | string \| null | Another email address listed for the person. Often on the company's domain too, but it can be a private address, and it is not verified. |
| `data[].phones` | string[] | Phone numbers listed for the person: a direct line, a mobile or the company's switchboard. Not verified. |
| `query` | object | The request as it was understood, with the website that was searched and how the contacts were found. |
| `query.domain` | string \| null | The website the contacts were looked for on: `domain` when it was given, otherwise the company's own. Null when none is known. |
| `query.resolution` | object | How the result was found. |
| `query.resolution.mode` | `waterfall` |  |
| `query.resolution.steps_tried` | integer | How many sources were tried, in order, cheapest first. |
| `query.resolution.exhausted` | boolean | True when every source was tried: asking again will not find more. False when the search stopped early (enough was found, a source did not answer, or time ran out), so asking again can find more. |
| `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` | `trade_record` \| `trade_company` \| `trade_company_profile` \| `trade_lookup` \| `person_email` \| `company_channels` \| `trade_stats` \| `trade_official_stats` \| `market_search` \| `market_listings` \| `market_estimates` | 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. |

## 例 [#example]

```bash
curl "https://api.won.dev/v1/trade/companies/co_8f3k2m9x4p1q/contacts?department=purchasing&limit=1" \
  -H "Authorization: Bearer $WON_API_KEY"
```

```json
{
  "data": [
    {
      "id": "per_4m7q2x9k1c8d",
      "name": "Jordan Lee",
      "title": "Director of Global Sourcing",
      "seniority": "executive",
      "department": "purchasing",
      "email_status": "verified",
      "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
      "email": "jordan.lee@northfield-home.example"
    }
  ],
  "query": {
    "id": "co_8f3k2m9x4p1q",
    "department": [
      "purchasing"
    ],
    "domain": "northfield-home.example",
    "min_email_status": "verified",
    "limit": 1,
    "resolution": {
      "mode": "waterfall",
      "steps_tried": 3,
      "exhausted": false
    }
  },
  "notice": null,
  "usage": {
    "unit": "person_email",
    "records": 1,
    "already_paid": 0,
    "cost": 0.03,
    "balance": 48.05,
    "replayed": false
  }
}
```