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

HSコードを調べる

商品の説明からHSコードを探すか、プレフィックスの下にあるコードを一覧にします。無料。

英語の商品説明(office chair)から商品のHSコードを探すか、プレフィックス(9401)の下にあるコードを一覧にします。無料です。商品名しかわからないときは、まずこれを呼んでください。ほかの貿易エンドポイントは、product のキーワードより hs_code を使ったほうが正確に答えます。6桁のコードは世界共通なので、そのまま hs_code として検索エンドポイントに渡せます。

GET
/trade/hs-codes

認証

apiKey
headerAuthorizationBearer <APIキー>

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

クエリパラメータ

q*string

A product in plain English, such as office chair or led lamp, or the first digits of a code, such as 9401.

長さ1 <= length <= 100
limit?integer

How many codes to return, 1 to 50.

範囲1 <= value <= 50
デフォルト10
fields?array<>

Pass us_duty to add the general US duty rate of every tariff line under each code.

要素items <= 5
デフォルト[]

レスポンスボディ

The result.

application/json
  1. response
data*array<>

The best matches 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*

Nothing is charged here. The balance, for reference.

リクエストの例
curl -X GET 'https://api.won.dev/v1/trade/hs-codes?q=sofa&limit=2'
レスポンスの例
{  "data": [    {      "code": "940161",      "description": "Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof > Other seats, with wooden frames > Upholstered",      "parent": "9401"    },    {      "code": "940171",      "description": "Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof > Other seats, with metal frames > Upholstered",      "parent": "9401"    }  ],  "query": {    "q": "sofa",    "limit": 2  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最終更新日