通関記録を検索する
税関申告と船荷証券を、商品または企業で検索します。返った記録ごとに課金。
税関申告と船荷証券を、1件の貨物につき1件の記録として返します。誰が、いつ、何を、どれだけ、誰に、どの港を通って送ったかがわかります。返った記録1件ごとに $0.005。結果が0件なら無料です。商品(hs_code または product)、企業(importer または exporter)、またはその両方で絞り込めます。記録に金額の申告がなければ value_usd はnullで、米国の船荷証券がこれにあたります。1件の貨物が、輸入国の記録と輸出国の記録で2回現れることがあり、reported_by でどちらの記録かがわかります。重複して保存されている記録は1回だけ返り、企業IDで絞り込むと同名の別企業の記録は除かれるため、1ページの件数が limit より少なくなることがあります。ページを進めるか条件を絞るかは total を見て決めてください。件数や合計を出すには、ページをめくって数えずに POST /trade/stats/query を使ってください。
- 課金:
trade_record$0.005:通関記録1件。 - モード:
proxy(各モードの意味)
テストキー(won_test_...)でこのリクエストを送ると、同じサンプル企業が無料で返ります。
apiKeyAuthorizationBearer <APIキー>Authorization: Bearer won_live_..., a key from the console.
Idempotency-Key?stringAny unique string. A retry with the same key and the same body returns the first response and is not charged again.
length <= 255application/json- body
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 <= 20product?stringProduct 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 <= 100importer?stringOnly shipments this company received: its co_ ID, which matches exactly, or its name.
2 <= length <= 200exporter?stringOnly shipments this company sent: its co_ ID, which matches exactly, or its name.
2 <= length <= 200importer_country?stringCountry the goods are imported into: an ISO code such as US, or an English name such as United States.
length <= 80exporter_country?stringCountry the goods are exported from: an ISO code such as VN, or an English name such as Vietnam.
length <= 80since?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?stringdate_desc returns the latest records first, date_asc the earliest.
"date_desc""date_desc""date_asc"fields?array<>The fields each shipment has, besides id. Default: date, importer, exporter, hs_code, description, quantity, quantity_unit, weight_kg, value_usd, origin_country, loading_port, unloading_port, transport, reported_by. Also available: unit_price_usd, incoterm, brand, bill_of_lading, description_full. default stands for the default set, so default,unit_price_usd adds one field and date,importer returns only those two.
items <= 40limit?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 POST 'https://api.won.dev/v1/trade/shipments/search' \ -H 'Content-Type: application/json' \ -d '{ "hs_code": "940161", "importer_country": "US", "limit": 1}'{ "data": [ { "id": "shp_5k2m8x1q9d3f", "date": "2026-11-11", "importer": { "id": "co_8f3k2m9x4p1q", "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC", "country": "US" }, "exporter": { "id": "co_2c7h5n0w6r8t", "name": "SAMPLE DONG NAI COMFORT FURNITURE CO LTD", "country": "VN" }, "hs_code": "940161", "description": "UPHOLSTERED SOFA WITH WOODEN FRAME, FABRIC COVER", "quantity": 291, "quantity_unit": "CTN", "weight_kg": 8115.4, "value_usd": null, "origin_country": "VN", "loading_port": "Cat Lai", "unloading_port": "Savannah, Georgia", "transport": "sea", "reported_by": { "country": "US", "flow": "import" } } ], "total": 1165783, "has_more": true, "next_cursor": "cur_Qm93c2VyLTEuMXJ6ZzQ", "query": { "hs_code": "940161", "importer_country": "US", "since": "2025-11-01", "until": "2026-11-20", "sort": "date_desc", "data_through": "2026-11-11" }, "notice": null, "usage": { "unit": "trade_record", "records": 1, "already_paid": 0, "cost": 0.005, "balance": 48.08, "replayed": false }}最終更新日