比较各国通胀
把最新的通胀率排序,并保留每次发布的日期。
阅读指南 →一个来源,提供官方统计机构发布的 CPI、通胀、劳动力、GDP 和贸易数据。
curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/cpi?period=2026-07" \
--header "Authorization: Bearer $NARWHAL_API_KEY"/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。
/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}/unemployment获取一个观测期的官方失业率。
country必填一个受支持的大写国家代码;请参阅此操作的覆盖列表。
period可选省略此参数可获取已采纳的最新完整发布数据,也可传入一个具体期间。
version_id可选可选的不可变发布版本。使用 dataset.published 或 dataset.revised 事件中的 resource_version;省略则读取当前已收录的指标。
country字符串所请求的大写 ISO 三字母国家代码。
period字符串返回的官方观测期间。
rate十进制字符串已发布的比率,单位为百分比,范围为 0 至 100,包含两端。
released_on日期官方发布日期,而不是 Narwhal 的检索时间。
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.
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 stringsPresent 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.
/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。
/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字符串或 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.
price_basis字符串或 nullcurrent 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.
/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字符串或 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. 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字符串或 nullThe 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字符串或 nullThe 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字符串或 nullWhether 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 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"], ["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.
/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.
请查看覆盖范围表,了解已发布数据所涵盖的国家。可用指标和历史数据涵盖的期间因国家而异。
是的。七个最新发布操作各有对应的 observations 路由,用于获取当前采纳的历史序列。
每条已上线数据流都来自覆盖范围矩阵中列出的政府统计机构或其他国家级官方发布机构。
Narwhal 会在数据通过验证后发布。公开测试版不承诺从来源机构发布到 Narwhal 公布之间的固定延迟。
每月赠送 10 美元免费额度,无需绑卡。每月 10 美元免费额度,无需绑卡。