すべてのAPI

貿易統計API(財貿易)

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

稼働中99.93% uptime, last 30日294 ms 標準応答

最初のリクエスト

最新の値を取得する

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小数文字列

    輸出から輸入を差し引いた正確な値で、負になる場合があります。

  • currencyISO 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.


リファレンス全文 →
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_ofRFC 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.

  • currencyISO 4217 文字列

    ページ内のすべての値に共通する通貨。

  • not_seasonally_adjusted真

    数値が季節調整されていない原系列である場合にのみ、true として含まれます。含まれない場合は、数値が季節調整済みであるか、季節調整のない世界銀行の年次データです。

  • observations配列

    採用済みの観測値を古い順に、各期間につき1件返します。ソースにない値は省略し、補完しません。1ページの観測値の件数が limit より少ない場合もあるため、next_cursor が null になるまでたどってください。

  • observations[].period文字列

    観測値が表す公式の月、四半期、または年。

  • observations[].first_reported_atRFC 3339 タイムスタンプ

    version=first_reported のときだけ現れます。この UTC タイムスタンプは、Narwhal がその期間を最初に保存した時刻です(指標が別々に保存された場合は最も遅い時刻)。取得開始前に公表された期間には、Narwhal の最初の取得時刻が入ります。

  • observations[].exports小数文字列

    対象期間の財輸出額。その期間の値がない場合は省略します。

  • observations[].imports小数文字列

    対象期間の財輸入額。その期間の値がない場合は省略します。

  • next_cursor文字列または null

    次のページを読むには、この値を変更せず cursor に渡してください。最終ページでは null です。


リファレンス全文 →

ユースケース

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

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

ガイドを読む →

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

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

ガイドを読む →

履歴のバックフィル

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

ガイドを読む →

カバレッジ

  • オーストラリア
  • オーストリア
  • ベルギー
  • ブラジル
  • カナダ
  • チリ
  • 中国
  • コロンビア
  • チェコ
  • ドイツ
  • デンマーク
  • スペイン
すべての国を表示
  • エストニア
  • フィンランド
  • フランス
  • 英国
  • クロアチア
  • インドネシア
  • アイルランド
  • イタリア
  • 日本
  • 韓国
  • リトアニア
  • ルクセンブルク
  • ラトビア
  • メキシコ
  • マレーシア
  • オランダ
  • ノルウェー
  • ニュージーランド
  • パキスタン
  • フィリピン
  • ポーランド
  • ポルトガル
  • サウジアラビア
  • シンガポール
  • スロベニア
  • スウェーデン
  • 米国

ソース

  • オーストラリアオーストラリア統計局(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を見る →

経済データAPI

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

APIを見る →

よくある質問

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

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.