所有 API

經濟數據 API

透過單一來源,取得官方統計機構發布的 CPI、通膨、勞動力、GDP 和貿易資料。

在線99.99% uptime, last 30天364 ms 一般回應

首次請求

取得最新 CPI

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

端點

GET消費者物價指數/v1/economics/{country}/cpi

取得某個國家在指定月份的整體消費者物價指數。

參數

  • country必填

    一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。

  • period選填

    省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。

  • version_id選填

    選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。

回應欄位

  • country字串

    所請求的大寫 ISO 三字母國家代碼。

  • period字串

    回傳的官方觀測期間。

  • value表示正數的十進位數值字串

    整體指數值。

  • index_base字串

    指數的基期和基值,例如 1982-84=100。

  • released_on日期

    官方發布日期,而不是 Narwhal 的檢索時間。

  • source對象

    選填的 source 物件僅在統計資料經由分發方取得時出現,包含 publisher(分發方所註明的原始發布方)和 distributor(分發機構)。存在 source 時,released_on 是分發方的發布日期,而不是原始發布方的發布日期。由發布方直接提供的序列沒有 source。


完整參考文件 →
GET通膨/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 strings

    Present 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.


完整參考文件 →
GET失業率/v1/economics/{country}/unemployment

取得一個觀測期間的官方失業率。

參數

  • country必填

    一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。

  • period選填

    省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。

  • version_id選填

    選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。

回應欄位

  • country字串

    所請求的大寫 ISO 三字母國家代碼。

  • period字串

    回傳的官方觀測期間。

  • rate十進位數值字串

    已發布的比率,單位為百分比,範圍為 0 至 100,包含兩端。

  • released_on日期

    官方發布日期,而不是 Narwhal 的檢索時間。

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

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

    Present only when Narwhal calculated a figure from the publisher's own numbers because the publisher does not print it. Lists the calculated figures: ["rate"]. A printed figure always wins over a calculated one. A stored answer can carry it too, not only an answer read from the release.


完整參考文件 →
GET勞動力參與率/v1/economics/{country}/labour-force-participation

取得一個觀測期間的官方勞動力參與率。

參數

  • country必填

    一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。

  • period選填

    省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。

  • version_id選填

    選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。

回應欄位

  • country字串

    所請求的大寫 ISO 三字母國家代碼。

  • period字串

    回傳的官方觀測期間。

  • rate十進位數值字串

    已發布的比率,單位為百分比,範圍為 0 至 100,包含兩端。

  • released_on日期

    官方發布日期,而不是 Narwhal 的檢索時間。

  • source對象

    選填的 source 物件僅在統計資料經由分發方取得時出現,包含 publisher(分發方所註明的原始發布方)和 distributor(分發機構)。存在 source 時,released_on 是分發方的發布日期,而不是原始發布方的發布日期。由發布方直接提供的序列沒有 source。


完整參考文件 →
GET國內生產毛額/v1/economics/{country}/gdp

取得一季的全國 GDP,一律按現價計算。

參數

  • country必填

    一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。

  • period選填

    省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。

  • version_id選填

    選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。

回應欄位

  • country字串

    所請求的大寫 ISO 三字母國家代碼。

  • period字串

    回傳的官方觀測期間。

  • value表示正數的十進位數值字串

    按當期價格計算的 GDP 數值。

  • currencyISO 4217 字串

    GDP數值所使用的本國貨幣。

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

  • price_basis字串或 null

    current for nominal GDP at current prices, or constant for real GDP at a reference year's prices. null means the publisher does not say.

  • not_seasonally_adjusted是

    僅在官方序列未經季節調整時出現,值為 true。

  • annualized是

    僅在官方總量已換算為年率時出現,值為 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.


完整參考文件 →
GETGDP 成長率/v1/economics/{country}/gdp-growth

取得一季的官方實質 GDP 成長率,按固定價格計算,以百分比表示。

參數

  • country必填

    一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。

  • period選填

    省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。

  • version_id選填

    選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。

回應欄位

  • country字串

    所請求的大寫 ISO 三字母國家代碼。

  • period字串

    回傳的官方觀測期間。

  • year_over_year十進位數值字串

    與去年同季相比的實質 GDP 變動率,單位為百分比。

  • quarter_over_quarter十進位數值字串

    與上一季相比的實質 GDP 變動率,單位為百分比,未換算為年率。發布機構只發布年增率時,以及年度期間,此欄位會省略。

  • year_to_date十進位數值字串

    來源發布時提供的官方年初至今成長率,單位為百分比;否則省略。

  • 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. mixed means the two growth figures are on different bases. Japan is one example: its year on year growth is not adjusted, and its quarter on quarter growth is.

  • year_over_year_seasonal_adjustment字串或 null

    The basis of each growth figure on its own, using the same values. They are filled only when seasonal_adjustment is mixed. Otherwise, or where the release does not state that figure's basis, they are null.

  • quarter_over_quarter_seasonal_adjustment字串或 null

    The basis of each growth figure on its own, using the same values. They are filled only when seasonal_adjustment is mixed. Otherwise, or where the release does not state that figure's basis, they are null.

  • annualization字串或 null

    Whether quarter on quarter growth is annualized: annualized or not_annualized. It is null when the answer has no quarter on quarter figure. Year on year growth is never annualized.

  • not_seasonally_adjusted是

    僅在成長率未經季節調整時出現,值為 true。

  • annualized是

    僅在已發布的成長率換算為年率時出現,值為 true。

  • year_over_year_not_seasonally_adjusted是

    僅當某國混用不同基準且其年增率數值未經季節調整時出現,值為 true。此時頂層旗標不會出現。

  • quarter_over_quarter_not_seasonally_adjusted是

    僅當某國混用不同基準且其季增率數值未經季節調整時出現,值為 true。此時頂層旗標不會出現。

  • seasonally_adjusted是

    僅當兩個數值均記錄為經季節調整時出現,值為 true。

  • year_over_year_seasonally_adjusted是

    僅當某國混用不同基準且其年增率數值經季節調整時出現,值為 true。此時頂層旗標不會出現。

  • quarter_over_quarter_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. 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 strings

    Present 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"], ["quarter_over_quarter"] 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.


完整參考文件 →
GET商品貿易/v1/economics/{country}/trade

取得一個期間的出口額、進口額和精確的商品貿易差額。不包含服務。

參數

  • country必填

    一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。

  • period選填

    省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。

  • version_id選填

    選填的不可變發布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略則讀取目前已收錄的指標。

回應欄位

  • country字串

    所請求的大寫 ISO 三字母國家代碼。

  • period字串

    回傳的官方觀測期間。

  • exports表示非負數的十進位字串

    貨物出口總額。

  • imports表示非負數的十進位字串

    貨物進口總額。

  • balance十進位數值字串

    精確的出口額減進口額;結果可能為負。

  • currencyISO 4217 字串

    三個貨幣值所使用的貨幣。

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


完整參考文件 →

使用情境

比較各國通膨

把最新的通膨率排序,並保留每次發布的日期。

閱讀指南 →

由 GDP 水準計算成長率

計算季度成長率並換算成年率。

閱讀指南 →

檢查殖利率曲線是否倒掛

比較兩個殖利率,用基點讀出利差。

閱讀指南 →

計算實質利率

用費雪公式從名目殖利率中扣除通膨。

閱讀指南 →

建立經濟行事曆

按 UTC 列出你所選國家和日期的發布時間。

閱讀指南 →

回補歷史資料

分頁下載整個序列,中斷後可繼續。

閱讀指南 →

涵蓋範圍

指標

顯示全部 14 項指標

國家

顯示全部 42 個國家

來源

  • 澳大利亞澳大利亞統計局(ABS)
  • 奧地利奧地利統計局、歐盟統計局(Eurostat)
  • 比利時比利時統計局(Statbel)、比利時國家銀行、歐盟統計局(Eurostat)
  • 巴西Brazilian Institute of Geography and Statistics (IBGE), Secretariat of Foreign Trade (SECEX)
  • 加拿大加拿大統計局
  • 瑞士瑞士聯邦統計局(FSO)、Eurostat
  • 智利智利中央銀行(BCCh)、智利國家統計局(INE)
  • 中國National Bureau of Statistics of China, General Administration of Customs of China
  • 哥倫比亞國家統計行政部(DANE)
  • 捷克捷克統計局(ČSÚ)
  • 德國德國聯邦統計局(Destatis)
  • 丹麥丹麥統計局、歐盟統計局(Eurostat)
顯示全部 42 個來源
  • 西班牙西班牙國家統計局(INE)、西班牙稅務局(AEAT)
  • 愛沙尼亞愛沙尼亞統計局
  • 芬蘭芬蘭統計局、芬蘭海關(Tulli)
  • 法國法國國家統計與經濟研究院(INSEE)、法國海關
  • 英國英國國家統計局(ONS)
  • 克羅埃西亞克羅埃西亞統計局(CBS)
  • 印度尼西亞印尼統計局(BPS)
  • 愛爾蘭中央統計局(CSO)
  • 義大利義大利國家統計局(Istat)、歐盟統計局(Eurostat)
  • 日本日本統計局、日本內閣府、日本 Customs
  • 南韓Bank of Korea, Statistics Korea
  • 立陶宛立陶宛國家資料局
  • 盧森堡STATEC、歐盟統計局(Eurostat)
  • 拉脫維亞拉脫維亞中央統計局(CSB)
  • 墨西哥國家統計、地理與資訊研究所(INEGI)
  • 馬來西亞馬來西亞統計局(DOSM)
  • 荷蘭荷蘭統計局(CBS)
  • 挪威挪威統計局(SSB)
  • 紐西蘭Stats NZ
  • 巴基斯坦巴基斯坦統計局(PBS)
  • 菲律賓菲律賓統計局(PSA)
  • 波蘭波蘭統計局、歐盟統計局(Eurostat)
  • 葡萄牙葡萄牙統計局(INE)
  • 卡達National Planning Council (NPC),透過 Qatar Open Data 入口網站
  • 沙烏地阿拉伯統計總局(GASTAT)
  • 新加坡新加坡統計局(SingStat)、新加坡政府發布的開放資料
  • 斯洛維尼亞斯洛維尼亞共和國統計局(SURS)
  • 瑞典瑞典統計局(SCB)
  • 泰國貿易政策與策略辦公室
  • 美國勞工統計局(BLS)、經濟分析局(BEA)、美國人口普查局

相關 API

政府公債殖利率曲線 API

透過 REST 和 MCP 取得9個國家與地區的公債殖利率曲線。讀取單一來源日期的資料或分頁歷史資料,數值以十進位百分比字串表示。

探索 API →

常見問題

支援哪些國家?

查閱涵蓋範圍表,確認已發布資料涵蓋哪些國家。可用指標與歷史期間依國家而異。

API 是否包含歷史經濟數據?

有。七個最新發布操作各有對應的 observations 路由,可取得目前採用的歷史序列。

經濟數據來自哪裡?

每個已上線的資料串流都來自涵蓋範圍矩陣中列出的政府統計機構或其他各國官方發布機構。

新發布的資料多久後可取得?

Narwhal 會在發布資料通過驗證後予以發布。公開測試版不保證從來源發布到 Narwhal 發布之間有固定的時間差。