建立經濟行事曆
按 UTC 列出你所選國家和日期的發布時間。
閱讀指南 →官方貨物出口額、進口額及貿易差額。
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"/v1/economics/{country}/trade取得一個期間的出口額、進口額和精確的商品貿易差額。不包含服務。
country必填一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。
period選填省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。
version_id選填選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。
country字串所請求的大寫 ISO 三字母國家代碼。
period字串回傳的官方觀測期間。
exports表示非負數的十進位字串貨物出口總額。
imports表示非負數的十進位字串貨物進口總額。
balance十進位數值字串精確的出口額減進口額;結果可能為負。
currencyISO 4217 字串三個貨幣值所使用的貨幣。
seasonal_adjustment字串或 nullWhether 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.
/v1/economics/{country}/trade/observations取得指定國家目前已接受的貨物貿易時間序列。
country必填一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。
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。頁面可能包含較少的期間;請繼續使用 next_cursor。
cursor選填上一頁回傳的 next_cursor。
version選填只接受 first_reported:回傳每個期間首次儲存的值,並附帶 first_reported_at。不能與 as_of 同時使用。
as_of選填回傳截至指定 UTC 日終時已發布的序列。不能與 version 同時使用。
country字串請求的大寫 ISO alpha-3 國家代碼。每頁傳回一次,不在每筆觀測資料中重複。
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字串或 nullWhether 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陣列按時間由早到晚排列的已採用觀測資料,每個期間一筆。來源缺少的值會省略,絕不補值。每頁觀測資料筆數可能少於 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。
取得一個期間的出口額、進口額和精確的商品貿易差額。不包含服務。
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 美元免費額度,無需綁卡。每月 10 美元免費額度,無需綁卡。