比較各國通膨
把最新的通膨率排序,並保留每次發布的日期。
閱讀指南 →各國官方機構發布的月度通膨率。
curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/inflation?period=2026-07" \
--header "Authorization: Bearer $NARWHAL_API_KEY"curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/inflation/observations?start=2026-07&limit=100" \
--header "Authorization: Bearer $NARWHAL_API_KEY"/v1/economics/{country}/inflation取得指定月份的通膨年增率、月增率及年初至今通膨率。
country必填一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。
period選填省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。
version_id選填選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。
country字串所請求的大寫 ISO 三字母國家代碼。
period字串回傳的官方觀測期間。
year_over_year十進位數值字串與去年同月相比的變動率,單位為百分比。
month_over_month十進位數值字串與上個月相比的變動率,單位為百分比。Left out where the publisher releases only the year-over-year figure.
quarter_over_quarter十進位數值字串Change from the previous quarter, in percent. Sent instead of month_over_month for New Zealand, whose figures are quarterly.
year_to_date十進位數值字串與去年十二月相比的變動率,單位為百分比。發布機構未發布時省略。
released_on日期官方發布日期,而不是 Narwhal 的檢索時間。
source對象The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source. On a newest figure read from the publisher's own release, source is {"publisher": "..."} with no distributor, and released_on is the publisher's local release day.
stage字串Appears only on a newest figure read from the publisher's release. Which reading of the figure this is: flash, advance, first, second, third, preliminary or final.
published_atRFC 3339 時間戳記Appears only on a newest figure read from the publisher's release. When the publisher released the figure.
provisional是Present, as true, only when the figure read from the release is marked provisional.
calculatedarray of stringsPresent only when Narwhal calculated a figure from the publisher's own numbers because the publisher does not print it. Lists the calculated figures: ["year_over_year"], ["month_over_month"] or both. A printed figure always wins over a calculated one. A stored answer can carry it too, not only an answer read from the release.
/v1/economics/{country}/inflation/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對象透過資料分發機構取得的統計資料來源資訊;請參閱最新值操作。
frequency字串Present, as annual, only for yearly World Bank history. Periods are then years in YYYY format.
observations陣列按時間由早到晚排列的已採用觀測資料,每個期間一筆。來源缺少的值會省略,絕不補值。每頁觀測資料筆數可能少於 limit;請繼續使用 next_cursor,直到其值為 null。
observations[].period字串觀測值所代表的官方月份、季度或年份。
observations[].first_reported_atRFC 3339 時間戳記僅在 version=first_reported 時出現。這個 UTC 時間戳記錄 Narwhal 首次儲存該期間的時間(如果各項指標是分開儲存的,則取最晚的時間)。在開始擷取之前發布的期間,顯示的是 Narwhal 的首次擷取時間。
observations[].year_over_year十進位數值字串與去年同月相比的變動率,單位為百分比。
observations[].month_over_month十進位數值字串與上個月相比的變動率,單位為百分比。
observations[].quarter_over_quarter十進位數值字串Change from the previous quarter, in percent. Sent instead of month_over_month for New Zealand, whose figures are quarterly.
observations[].year_to_date十進位數值字串與去年十二月相比的變動率,單位為百分比。發布機構未發布時省略。
observations[].calculatedarray of stringsPresent only when Narwhal calculated a figure in this row from the publisher's own numbers because the publisher does not print it. Lists the calculated figures: "year_over_year", "month_over_month" and "year_to_date". A printed figure always wins over a calculated one.
next_cursor字串或 null將此值原樣作為 cursor 傳入,以讀取下一頁;最後一頁為 null。
取得指定月份的通膨年增率、月增率及年初至今通膨率。
YYYY-MM 或 YYYY-QN
國家通膨資料涵蓋下列國家;是否提供年初至今資料,取決於各來源的資料規格。歐元區國家使用的是本國指數,而非歐盟統計局的 HICP,因此數值可能與歐盟統計局的數值不同。澳洲使用的是月度 CPI,而非季度 CPI,因此月度數值可能與季度數值不同。A country with no stored series can still answer the newest figure from the publisher's release: it has no history, so a period or version_id request for it returns 404 series_not_found.
每月 10 美元免費額度,無需綁卡。每月 10 美元免費額度,無需綁卡。