# 企業を検索

Source: https://won.dev/ja/docs/enrich/companies-search

`POST https://api.won.dev/v1/enrich/companies/search`

業種、本社の所在地、従業員数、Webサイトで使っているソフトウェアといった条件に合う企業を返します。各企業の名前とWebサイトを、在籍者を最も多く把握している企業から順に返し、市場の規模を `total` で示します。返った企業1社ごとに $0.002。0件なら無料です。どのWebサイトも企業の自社サイトかどうかを確認し、ECモール、SNS、メールサービスは除外するため、1ページの件数が `limit` より少なくなることがあります。ある商品の輸入企業や輸出企業を探すには、通関記録を読む `POST /trade/companies/search` を使ってください。次のステップ：企業プロフィールは `POST /enrich/companies/find`、在籍者は `POST /enrich/people/search`、Webサイトに載っている連絡先は `POST /enrich/companies/website/read` で取得します。

- **課金：** `company_listing` $0.002：企業検索の結果に含まれる企業1社。名前とWebサイト。
- **モード：** `proxy` ([各モードの意味](/ja/docs/trade#modes))

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

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

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

| パラメーター | 型 | 必須 | 説明（APIの原文） |
| --- | --- | --- | --- |
| `industry` | string[] | いいえ | Industries, in your words or by name: `furniture` stands for every industry with that word (its makers, wholesalers and retailers), a full name such as `Furniture and Home Furnishings Manufacturing` for that one alone. Names are LinkedIn's. Up to 5; `query.industry` says which names were searched. |
| `country` | string[] | いいえ | Where the headquarters are: ISO codes such as `DE`, or English names. Up to 10. |
| `size` | (`1-10` \| `11-50` \| `51-200` \| `201-500` \| `501-1000` \| `1001-5000` \| `5001-10000` \| `10001+`)[] | いいえ | How many people work there, as the company states it: any of `1-10`, `11-50`, `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`. |
| `technology` | string[] | いいえ | Software the company's website runs, such as `Shopify`, `WooCommerce` or `HubSpot`: companies with any of them. Up to 10. Give it with an `industry` or a `size`. |
| `exclude_domains` | string[] | いいえ | Websites to leave out, such as the companies already in your CRM. Up to 100. |
| `limit` | integer | いいえ | How many results to return, 1 to 100. You pay for the results returned. Default: `25`. |
| `cursor` | string | いいえ | To get the next page, pass `next_cursor` of the previous response back unchanged, with the same parameters. |
| `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 companies of this page. |
| `data[].name` | string | Company name. |
| `data[].domain` | string | Its website, such as `example.com`. Pass it as `domain` to the company and people endpoints. |
| `total` | integer | How many companies match in all. Use it to size a market, or to decide between paging on and narrowing the search. |
| `has_more` | boolean | Whether more companies follow this page. |
| `next_cursor` | string \| null | Pass it as `cursor` to get the next page. Null on the last page. |
| `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. |

## 例 [#example]

```bash
curl https://api.won.dev/v1/enrich/companies/search \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "industry": [
    "furniture"
  ],
  "country": [
    "US"
  ],
  "size": [
    "51-200",
    "201-500"
  ],
  "limit": 3
}'
```

```json
{
  "data": [
    {
      "name": "SAMPLE Northfield Home Furnishings",
      "domain": "northfield-home.example"
    },
    {
      "name": "SAMPLE Harborside Seating Co",
      "domain": "harborside-seating.example"
    },
    {
      "name": "SAMPLE Pine & Loom Interiors",
      "domain": "pineandloom.example"
    }
  ],
  "total": 1874,
  "has_more": true,
  "next_cursor": "cur_Qm4tR2x9LpZ0aWl1Lm1xNHo",
  "query": {
    "industry": [
      "Furniture",
      "Furniture and Home Furnishings Manufacturing",
      "Household and Institutional Furniture Manufacturing",
      "Office Furniture and Fixtures Manufacturing",
      "Retail Furniture and Home Furnishings",
      "Reupholstery and Furniture Repair",
      "Wholesale Furniture and Home Furnishings"
    ],
    "country": [
      "US"
    ],
    "size": [
      "51-200",
      "201-500"
    ],
    "limit": 3
  },
  "notice": null,
  "usage": {
    "unit": "company_listing",
    "records": 3,
    "already_paid": 0,
    "cost": 0.006,
    "balance": 48.994,
    "replayed": false
  }
}
```