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

データのカバー範囲を確認する

どの国に通関記録と公式統計があり、いつの分があるかを確認します。無料。

お金を使う前に、ある国にどんなデータがあるかを確認します。輸入と輸出それぞれについて、その国で申告された通関記録があるか、記録に金額が入っているか、どの期間をカバーしているか、公式統計を照会できるかがわかります。無料です。自国の記録がない国(records: false)も検索結果には出てきますが、取引相手国の申告を通してだけなので、件数は不完全です。country を指定しなければ、自国の記録か公式統計がある国を一覧にし、それ以外の国の数は notice で示します。

GET
/trade/coverage

認証

apiKey
headerAuthorizationBearer <APIキー>

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

クエリパラメータ

country?string

The country to check. Leave it out to list all. An ISO code such as US, or an English name such as United States.

長さlength <= 80

レスポンスボディ

The result.

application/json
  1. response
data*array<>

One entry for each country.

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/coverage?country=United+States'
レスポンスの例
{  "data": [    {      "country": "US",      "imports": {        "records": true,        "values": false,        "earliest": "2021-01-01",        "latest": "2026-11-13",        "note": null      },      "exports": {        "records": true,        "values": false,        "earliest": "2021-01-02",        "latest": "2026-09-30",        "note": null      },      "official": {        "available": true,        "latest_month": "2026-09"      }    }  ],  "query": {    "country": "US"  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最終更新日