---
title: "商品貿易API | Narwhal API"
description: "公式の輸出入額と正確な貿易収支を国別に提供する財貿易API。サービスは含みません。1期間分または履歴をRESTまたはMCPで取得できます。"
url: "https://narwhalapi.com/ja/api/economics/trade"
---

すべてのAPI

# 貿易統計API（財貿易）

公式の財輸出額、財輸入額、財貿易収支。

[無料のAPIキーを取得](https://narwhalapi.com/ja/signup)
[ドキュメントを読む →](https://narwhalapi.com/ja/docs/api/economics.md)

## 最初のリクエスト

### 最新の値を取得する

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/USA/trade?period=2026-06" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

### 履歴を取得する

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/USA/trade/observations?start=2026-06&limit=100" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

## エンドポイント

GET 財貿易`/v1/economics/{country}/trade`

1期間の輸出額、輸入額、正確な財貿易収支を取得します。サービスは含みません。

#### パラメータ

- `country` 必須 対応している国コードを大文字で1つ指定します。この操作のカバレッジ一覧を確認してください。
- `period` 任意 受け入れ済みの完全な公表データのうち最新のものを取得するには省略します。特定の期間を1つ指定することもできます。
- `version_id` 任意 任意の不変な公開バージョン。dataset.published または dataset.revised イベントの resource_version を使います。省略すると現在承認されている指標を読み取ります。

#### レスポンスフィールド

- `country` 文字列 指定された大文字 ISO alpha-3 国コード。
- `period` 文字列 返される公式観測期間。
- `exports` 非負の小数文字列 財輸出合計。
- `imports` 非負の小数文字列 財輸入合計。
- `balance` 小数文字列 輸出から輸入を差し引いた正確な値で、負になる場合があります。
- `currency` ISO 4217 文字列 3つすべての金額の通貨。
- `seasonal_adjustment` 文字列または null Whether the figure is seasonally adjusted, as the publisher states it: seasonally_adjusted, not_seasonally_adjusted, calendar_adjusted or trend. null means the publisher does not say. Never read null as adjusted.
- `scope` 文字列 What the totals cover. goods is trade in goods only, so services are not included. A headline figure that adds services is a different series and is not served here.
- `not_seasonally_adjusted` 真 数値が季節調整されていない原系列である場合にのみ、true として含まれます。含まれない場合は、数値が季節調整済みであるか、季節調整のない世界銀行の年次データです。
- `released_on` 日付 Narwhal の取得時刻ではなく、公式の公表日。
- `source` オブジェクト Who published the figure: the statistics office or central bank, for example {"publisher": "Office for National Statistics"}. Where the data reaches us through another body, distributor names that body too. If we cannot tell who published a figure, source is left out.

---

[リファレンス全文 →](https://narwhalapi.com/ja/docs/api/economics/trade.md)

GET 財貿易の履歴`/v1/economics/{country}/trade/observations`

1つの国について、現在受け入れられている財貿易の時系列を取得します。

#### パラメータ

- `country` 必須 対応している国コードを大文字で1つ指定します。この操作のカバレッジ一覧を確認してください。
- `start` 任意 最初の観測期間（その期間を含む）。A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
- `end` 任意 最後の観測期間（その期間を含む）。A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
- `limit` 任意 返す期間数の上限。デフォルトは 100 です。1ページの期間数がこれより少ない場合もあるため、next_cursor をたどってください。
- `cursor` 任意 前のページの next_cursor。
- `version` 任意 first_reported のみ受け付けます。各期間について最初に保存された値を first_reported_at とともに返します。as_of とは併用できません。
- `as_of` 任意 指定した UTC 日の終わりまでに公表されていたとおりの系列を返します。version とは併用できません。

#### レスポンスフィールド

- `country` 文字列 リクエストした大文字の ISO alpha-3 国コード。観測値ごとではなく、ページごとに1回返します。
- `start` 文字列 Narwhal がリクエストした start を後の期間に移動した場合にのみ含まれます。それより前の期間は返しません。
- `as_of` RFC 3339 タイムスタンプ このページの最新の観測値をソースが最後に更新した時刻。UTC、秒単位です。
- `source` オブジェクト Who published the figure: the statistics office or central bank, for example {"publisher": "Office for National Statistics"}. Where the data reaches us through another body, distributor names that body too. If we cannot tell who published a figure, source is left out.
- `frequency` 文字列 Present, as annual, only for yearly World Bank history. Periods are then years in YYYY format.
- `seasonal_adjustment` 文字列または null Whether the figure is seasonally adjusted, as the publisher states it: seasonally_adjusted, not_seasonally_adjusted, calendar_adjusted or trend. null means the publisher does not say. Never read null as adjusted.
- `scope` 文字列 What the totals cover. goods is trade in goods only, so services are not included. A headline figure that adds services is a different series and is not served here.
- `currency` ISO 4217 文字列 ページ内のすべての値に共通する通貨。
- `not_seasonally_adjusted` 真 数値が季節調整されていない原系列である場合にのみ、true として含まれます。含まれない場合は、数値が季節調整済みであるか、季節調整のない世界銀行の年次データです。
- `observations` 配列 採用済みの観測値を古い順に、各期間につき1件返します。ソースにない値は省略し、補完しません。1ページの観測値の件数が limit より少ない場合もあるため、next_cursor が null になるまでたどってください。
- `observations[].period` 文字列 観測値が表す公式の月、四半期、または年。
- `observations[].first_reported_at` RFC 3339 タイムスタンプ version=first_reported のときだけ現れます。この UTC タイムスタンプは、Narwhal がその期間を最初に保存した時刻です（指標が別々に保存された場合は最も遅い時刻）。取得開始前に公表された期間には、Narwhal の最初の取得時刻が入ります。
- `observations[].exports` 小数文字列 対象期間の財輸出額。その期間の値がない場合は省略します。
- `observations[].imports` 小数文字列 対象期間の財輸入額。その期間の値がない場合は省略します。
- `next_cursor` 文字列または null 次のページを読むには、この値を変更せず cursor に渡してください。最終ページでは null です。

---

[リファレンス全文 →](https://narwhalapi.com/ja/docs/api/economics/trade-history.md)

## ユースケース

### 経済カレンダーを作成する

選んだ国と日付のリリース時刻を UTC で一覧します。

[ガイドを読む →](https://narwhalapi.com/ja/how-to/build-an-economic-calendar.md)

### 発表前にアラートを受け取る

カレンダーフィードや毎日のスクリプトでリマインダーを設定します。

[ガイドを読む →](https://narwhalapi.com/ja/how-to/get-an-alert-before-an-economic-release.md)

### 履歴のバックフィル

系列全体をページ単位でダウンロードし、止まったら再開します。

[ガイドを読む →](https://narwhalapi.com/ja/how-to/backfill-historical-data.md)

## カバレッジ

- オーストラリア
- オーストリア
- ベルギー
- ブラジル
- カナダ
- チリ
- 中国
- コロンビア
- チェコ
- ドイツ
- デンマーク
- スペイン

すべての国を表示

- エストニア
- フィンランド
- フランス
- 英国
- クロアチア
- インドネシア
- アイルランド
- イタリア
- 日本
- 韓国
- リトアニア
- ルクセンブルク
- ラトビア
- メキシコ
- マレーシア
- オランダ
- ノルウェー
- ニュージーランド
- パキスタン
- フィリピン
- ポーランド
- ポルトガル
- サウジアラビア
- シンガポール
- スロベニア
- スウェーデン
- 米国

## ソース

- オーストラリア オーストラリア統計局（ABS）
- オーストリア Statistics Austria、Eurostat
- ベルギー Statbel、ベルギー国立銀行、Eurostat
- ブラジル Brazilian Institute of Geography and Statistics (IBGE), Secretariat of Foreign Trade (SECEX)
- カナダ カナダ統計局
- チリ チリ中央銀行（BCCh）、チリ国立統計研究所（INE）
- 中国 National Bureau of Statistics of China, General Administration of Customs of China
- コロンビア 国家統計行政局（DANE）
- チェコ チェコ統計局（ČSÚ）
- ドイツ ドイツ連邦統計局（Destatis）
- デンマーク Statistics Denmark、Eurostat
- スペイン スペイン国立統計研究所（INE）、スペイン税務庁（AEAT）

すべてのソースを表示

- エストニア Statistics Estonia
- フィンランド Statistics Finland、フィンランド税関（Tulli）
- フランス 国立統計経済研究所（INSEE）、フランス税関
- 英国 英国国家統計局（ONS）
- クロアチア クロアチア統計局（CBS）
- インドネシア インドネシア統計局(BPS)
- アイルランド Central Statistics Office (CSO)
- イタリア イタリア国立統計研究所（Istat）、Eurostat
- 日本 総務省統計局、日本の内閣府、日本税関
- 韓国 Bank of Korea, Statistics Korea
- リトアニア リトアニア国家データ庁
- ルクセンブルク STATEC、Eurostat
- ラトビア ラトビア中央統計局（CSB）
- メキシコ 国立統計地理情報院（INEGI）
- マレーシア マレーシア統計局（DOSM）
- オランダ オランダ統計局（CBS）
- ノルウェー Statistics Norway（SSB）
- ニュージーランド Stats NZ
- パキスタン パキスタン統計局（PBS）
- フィリピン フィリピン統計局（PSA）
- ポーランド Statistics Poland、Eurostat
- ポルトガル Statistics Portugal（INE）
- サウジアラビア 統計総局（GASTAT）
- シンガポール シンガポール統計局（SingStat）、シンガポール政府のオープンデータ公開資料
- スロベニア スロベニア共和国統計局（SURS）
- スウェーデン Statistics Sweden（SCB）
- 米国 労働統計局（BLS）、経済分析局（BEA）、米国国勢調査局

## 関連 API

### 経済指標カレンダーAPI

発表スケジュール、ステータス、公開データのバージョン。

[APIを見る →](https://narwhalapi.com/ja/api/economic-calendar.md)

### 経済データAPI

価格、労働、産出、貿易、金利の公式指標。

[APIを見る →](https://narwhalapi.com/ja/api/economics.md)

### 方法論

リリースを確認し改訂する方法。

[方法論を読む →](https://narwhalapi.com/ja/methodology/economics.md)

## よくある質問

レスポンスには何が含まれますか？

1期間の輸出額、輸入額、正確な財貿易収支を取得します。サービスは含みません。

どの期間を指定できますか？

YYYY または YYYY-MM

どの範囲のデータを取得できますか？

Merchandise totals follow the country list below. Services trade is not included. For Bulgaria, Cyprus, Greece, Hungary, Malta, Romania and Slovakia the totals are Eurostat's, and for Costa Rica, Iceland, South Africa, Switzerland and Turkey the OECD's. For Iceland, South Africa and Turkey `source.publisher` names the national office and `source.distributor` names the OECD. They follow that publisher's method, so they can differ from the national office's headline. These twelve answer the newest month; their history is yearly.

## 無料キーで始めましょう

毎月10ドル分の無料クレジット。カードは不要です。

[無料のAPIキーを取得](https://narwhalapi.com/ja/signup)
