本文へスキップ
Won.dev
ドキュメントAPIリファレンス
貿易データAPI

企業を照会する

企業名やWebサイトから企業を探し、IDを取得します。見つかったときだけ課金。

企業名またはWebサイトから企業を探し、IDを返します。企業のエンドポイントはすべてこのIDを使います。何か見つかった照会には、候補の数に関係なく $0.02。何も見つからなければ無料です。名前は船積書類に書かれたとおりに照合するため、1社が国や綴りの違う複数の候補として返ることがあります。country と shipments を見て選んでください。Webサイトで見つかるのは、以前に検索結果に出たことのある企業だけです。見つからないときは企業名で照会してください。

  • 課金: trade_lookup $0.02:企業名やWebサイトによる照会1回。1社以上見つかったものに限ります。
  • モード: waterfall (各モードの意味)

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

GET
/trade/companies/lookup

認証

apiKey
headerAuthorizationBearer <APIキー>

Authorization: Bearer won_live_..., a key from the console.

クエリパラメータ

q*string

A company name, such as Acme Furniture, or its website, such as acme.com.

長さ2 <= length <= 200
country?string

Only companies in this country. An ISO code such as US, or an English name such as United States.

長さlength <= 80
limit?integer

How many candidates to return, 1 to 10.

範囲1 <= value <= 10
デフォルト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.

範囲0 < value
dry_run?boolean

If true, only return the maximum cost of this call. Nothing runs, nothing is charged.

デフォルトfalse

レスポンスボディ

The result. With dry_run, only the maximum cost.

application/json
  1. response
data*array<>

The candidates, best match first.

query*

The request as it was understood: country names as codes, the default dates filled in.

notice*|

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*

What this call was charged, and the balance left.

リクエストの例
curl -X GET 'https://api.won.dev/v1/trade/companies/lookup?q=northfield+home+furnishings&country=US'
レスポンスの例
{  "data": [    {      "id": "co_8f3k2m9x4p1q",      "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",      "country": "US",      "website": "northfield-home.example",      "shipments": 1840,      "last_shipment": "2026-11-11"    }  ],  "query": {    "q": "northfield home furnishings",    "country": "US",    "limit": 5  },  "notice": null,  "usage": {    "unit": "trade_lookup",    "records": 1,    "already_paid": 0,    "cost": 0.02,    "balance": 48.08,    "replayed": false  }}

最終更新日