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

買い手やサプライヤーを探す

ある商品を輸入または輸出している企業をランキングで返します。返った企業ごとに課金。

ある商品を輸入または輸出している企業をランキングで返します。role: importer で買い手、role: exporter でサプライヤーです。返った企業1社ごとに $0.01。結果が0件なら無料です。shipments は通関記録の件数、recorded_value_usd は金額が申告された記録だけの合計なので、どちらも市場シェアではありません。市場規模には POST /trade/stats/query を使ってください。country は貨物が申告された国で、企業の登記国とは限りません。同じ企業の行はまとめられるため、1ページの件数が limit より少なくなることがあります。website があるのは3社に1社ほどで、残りは POST /trade/leads/find と連絡先のエンドポイントが調べます。次のステップ:1社のプロフィールは GET /trade/companies/{id}、このリストを連絡先つきで一度に取得するなら POST /trade/leads/find です。

  • 課金: trade_company $0.01:買い手、サプライヤー、取引先のリストに含まれる企業1社、またはリード1件の企業。
  • モード: proxy (各モードの意味)

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

POST
/trade/companies/search

認証

apiKey
headerAuthorizationBearer <APIキー>

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

ヘッダーパラメータ

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

長さlength <= 255

リクエストボディ

application/json
  1. body
role*string

importer returns the companies that buy the product: buyers. exporter returns the companies that sell it: suppliers.

取りうる値"importer""exporter"
hs_code?string

HS code, digits only, 6 to 10 digits. Six digits are the same in every country; a longer code is one country's own tariff line, matched by prefix. Find the code of a product with GET /trade/hs-codes.

長さlength <= 20
product?string

Product keywords in English, such as office chair. A fuzzy match on the goods description. Use it when you do not know the HS code; an hs_code is more precise.

長さ2 <= length <= 100
importer_country?string

Country the goods are imported into: an ISO code such as US, or an English name such as United States.

長さlength <= 80
exporter_country?string

Country the goods are exported from: an ISO code such as VN, or an English name such as Vietnam.

長さlength <= 80
trading_with?string

Only companies that trade with this one: its co_ ID, or its name. With role: importer these are the buyers of that exporter, with role: exporter the suppliers of that importer. Either way it is matched by its name as it stands in the records, so companies that share the name count together.

長さ2 <= length <= 200
exclude_forwarders?boolean

Leave out freight forwarders and logistics companies, which stand on bills of lading in place of the real buyer or seller.

デフォルトtrue
sort?string

shipments ranks by number of records. recorded_value ranks by declared value; only records that carry a value count, so it favors routes whose exporting country publishes values.

デフォルト"shipments"
取りうる値"shipments""recorded_value"
since?string

First day of the date range, YYYY-MM-DD. Default: the first day of the month 12 months before until.

長さlength <= 10
until?string

Last day of the date range, YYYY-MM-DD. Default: up to the latest records.

長さlength <= 10
limit?integer

How many results to return, 1 to 100. You pay for the results returned.

範囲1 <= value <= 100
デフォルト10
cursor?string

To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

長さlength <= 200
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 results of this page.

total*integer

How many results match in all. Use it to decide between paging on and narrowing the query.

has_more*boolean

Whether more results follow this page.

next_cursor*|

Pass it as cursor to get the next page. Null on the last page.

query*

The request as it was understood: country names as codes, the default dates filled in. data_through says how recent the records behind the answer are.

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 POST 'https://api.won.dev/v1/trade/companies/search' \  -H 'Content-Type: application/json' \  -d '{  "role": "importer",  "hs_code": "940161",  "importer_country": "US",  "limit": 2}'
レスポンスの例
{  "data": [    {      "id": "co_8f3k2m9x4p1q",      "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",      "role": "importer",      "country": "US",      "shipments": 1840,      "recorded_value_usd": 21480350.4,      "website": "northfield-home.example",      "sample_product": "UPHOLSTERED SOFA WITH WOODEN FRAME, FABRIC COVER"    },    {      "id": "co_3d9t6w1b7n5z",      "name": "SAMPLE HARBORSIDE SEATING CO",      "role": "importer",      "country": "US",      "shipments": 962,      "recorded_value_usd": 9310772.15,      "website": "harborside-seating.example",      "sample_product": "RECLINER SOFA SET, LEATHER, 3 SEATER"    }  ],  "total": 4087,  "has_more": true,  "next_cursor": "cur_Zx81kQp4b2JtMW0uMXJ6ZzQ",  "query": {    "role": "importer",    "hs_code": "940161",    "importer_country": "US",    "exclude_forwarders": true,    "sort": "shipments",    "since": "2025-11-01",    "until": "2026-11-20",    "data_through": "2026-11-11"  },  "notice": null,  "usage": {    "unit": "trade_company",    "records": 2,    "already_paid": 0,    "cost": 0.02,    "balance": 48.08,    "replayed": false  }}

最終更新日