企業の取引先
1社のサプライヤーまたは買い手をランキングで返し、それぞれのシェアを示します。返った取引先ごとに課金。
1社の取引先をランキングで返します。role=supplier(デフォルト)でサプライヤー、role=buyer で買い手です。返った取引先1社ごとに $0.01。結果が0件なら無料です。share は、その方向の記録に占める取引先の割合で、0から1の値です。少数の取引先のシェアが大きければ、その企業は少数のサプライヤーや買い手に頼っています。競合のサプライヤーや、自社のサプライヤーのほかの顧客を探すのに使えます。各行には企業のエンドポイントで使えるIDがつきます。取引先は記録上の企業名で探すため、よくある名前の企業では、同名の別企業の取引先がリストに混じることがあります。
- 課金:
trade_company$0.01:買い手、サプライヤー、取引先のリストに含まれる企業1社、またはリード1件の企業。 - モード:
proxy(各モードの意味)
テストキー(won_test_...)でこのリクエストを送ると、同じサンプル企業が無料で返ります。
apiKeyAuthorizationBearer <APIキー>Authorization: Bearer won_live_..., a key from the console.
id*stringCompany ID, such as co_8f3k2m9x4p1q. Search results carry it; GET /trade/companies/lookup?q= finds it by name.
length <= 40role?stringsupplier: the companies it buys from. buyer: the companies it sells to.
"supplier""supplier""buyer"hs_code?stringHS 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 <= 20since?stringFirst day of the date range, YYYY-MM-DD. Default: the first day of the month 12 months before until.
length <= 10until?stringLast day of the date range, YYYY-MM-DD. Default: up to the latest records.
length <= 10sort?stringRank by number of records, or by declared value.
"shipments""shipments""recorded_value"limit?integerHow many results to return, 1 to 100. You pay for the results returned.
1 <= value <= 10010cursor?stringTo get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.
length <= 200max_cost?numberSpending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.
0 < valuedry_run?booleanIf true, only return the maximum cost of this call. Nothing runs, nothing is charged.
falseThe result. With dry_run, only the maximum cost.
application/json- response
data*array<>The results of this page.
total*integerHow many results match in all. Use it to decide between paging on and narrowing the query.
has_more*booleanWhether 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 GET 'https://api.won.dev/v1/trade/companies/co_8f3k2m9x4p1q/partners?role=supplier&limit=2'{ "data": [ { "id": "co_2c7h5n0w6r8t", "name": "SAMPLE DONG NAI COMFORT FURNITURE CO LTD", "role": "supplier", "country": "VN", "shipments": 1325, "recorded_value_usd": 18240118.6, "website": "dongnai-comfort.example", "sample_product": "UPHOLSTERED SOFA WITH WOODEN FRAME, FABRIC COVER", "share": 0.5421 }, { "id": "co_4e6g8j0k2m4n", "name": "SAMPLE SELANGOR UPHOLSTERY SDN BHD", "role": "supplier", "country": "MY", "shipments": 688, "recorded_value_usd": 6120440.9, "website": "selangor-upholstery.example", "sample_product": "RECLINER SOFA SET, LEATHER, 3 SEATER", "share": 0.2815 } ], "total": 3, "has_more": true, "next_cursor": "cur_UGFydG5lcnMuMXJ6ZzQ", "query": { "id": "co_8f3k2m9x4p1q", "role": "supplier", "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 }}最終更新日