Compare inflation across countries
Rank the latest inflation rates and keep each release date.
Read the guide →Query official CPI and inflation data by country through REST or MCP. Retrieve the latest accepted value, an exact period or dated history.
curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/cpi?period=2026-07" \
--header "Authorization: Bearer $NARWHAL_API_KEY"/v1/economics/{country}/cpiRetrieve the headline consumer price index for one country and month.
countryrequiredOne supported uppercase country code; see this operation’s coverage list.
periodoptionalOmit it for the latest accepted complete release, or pass one exact period.
version_idoptionalOptional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.
countrystringThe requested uppercase ISO alpha-3 country code.
periodstringThe official observation period returned.
valuepositive decimal stringThe headline index level.
index_basestringBase period and base value of the index, for example 1982-84=100.
released_ondateThe official publication date, not Narwhal's retrieval time.
sourceobjectThe 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.
/v1/economics/{country}/cpi/observationsRetrieve the current accepted consumer price index time series for one country.
countryrequiredOne supported uppercase country code; see this operation’s coverage list.
startoptionalInclusive first observation period. A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
endoptionalInclusive last observation period. A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
limitoptionalMaximum number of periods returned. Defaults to 100. A page may contain fewer periods; follow next_cursor.
cursoroptionalThe next_cursor from the previous page.
versionoptionalAccepts first_reported only: returns the first stored value per period with first_reported_at. Cannot be combined with as_of.
as_ofoptionalReturns the series as published through the end of the specified UTC day. Cannot be combined with version.
countrystringThe requested uppercase ISO alpha-3 country code. Returned once per page, not for each observation.
startstringPresent only when Narwhal moves the requested start to a later period. Earlier periods are not returned.
as_ofRFC 3339 timestampWhen the source last updated the newest observation on this page, in whole seconds, UTC.
sourceobjectProvenance for a statistic received through a distributor; see the latest-value operation.
frequencystringPresent, as annual, only for yearly World Bank history. Periods are then years in YYYY format.
index_basestringBase period and base value of the index, for example 1982-84=100. A page never spans two bases.
observationsarrayOldest-first accepted observations, one per period. Missing source values are omitted, never filled. A page can hold fewer observations than limit; follow next_cursor until it is null.
observations[].periodstringThe official month, quarter or year represented by the observation.
observations[].first_reported_atRFC 3339 timestampPresent only with version=first_reported, this UTC timestamp records when Narwhal first stored the period (the latest time if its measures were stored separately); periods released before capture began show Narwhal's first capture.
observations[].valuedecimal stringThe accepted index level without binary floating-point conversion.
next_cursorstring or nullPass this unchanged as cursor to read the next page; null on the last page.
/v1/economics/{country}/inflationRetrieve year-over-year, month-over-month, and year-to-date inflation for one month.
countryrequiredOne supported uppercase country code; see this operation’s coverage list.
periodoptionalOmit it for the latest accepted complete release, or pass one exact period.
version_idoptionalOptional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.
countrystringThe requested uppercase ISO alpha-3 country code.
periodstringThe official observation period returned.
year_over_yeardecimal stringChange from the same month one year earlier, in percent.
month_over_monthdecimal stringChange from the previous month, in percent. Left out where the publisher releases only the year-over-year figure.
quarter_over_quarterdecimal stringChange from the previous quarter, in percent. Sent instead of month_over_month for New Zealand, whose figures are quarterly.
year_to_datedecimal stringChange from the prior December, in percent. Omitted when the publisher does not release it.
released_ondateThe official publication date, not Narwhal's retrieval time.
sourceobjectThe 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.
stagestringAppears 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 timestampAppears only on a newest figure read from the publisher's release. When the publisher released the figure.
provisionaltruePresent, 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/observationsRetrieve the current accepted inflation time series for one country.
countryrequiredOne supported uppercase country code; see this operation’s coverage list.
startoptionalInclusive first observation period. A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
endoptionalInclusive last observation period. A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
limitoptionalMaximum number of periods returned. Defaults to 100. A page may contain fewer periods; follow next_cursor.
cursoroptionalThe next_cursor from the previous page.
versionoptionalAccepts first_reported only: returns the first stored value per period with first_reported_at. Cannot be combined with as_of.
as_ofoptionalReturns the series as published through the end of the specified UTC day. Cannot be combined with version.
countrystringThe requested uppercase ISO alpha-3 country code. Returned once per page, not for each observation.
startstringPresent only when Narwhal moves the requested start to a later period. Earlier periods are not returned.
as_ofRFC 3339 timestampWhen the source last updated the newest observation on this page, in whole seconds, UTC.
sourceobjectProvenance for a statistic received through a distributor; see the latest-value operation.
frequencystringPresent, as annual, only for yearly World Bank history. Periods are then years in YYYY format.
observationsarrayOldest-first accepted observations, one per period. Missing source values are omitted, never filled. A page can hold fewer observations than limit; follow next_cursor until it is null.
observations[].periodstringThe official month, quarter or year represented by the observation.
observations[].first_reported_atRFC 3339 timestampPresent only with version=first_reported, this UTC timestamp records when Narwhal first stored the period (the latest time if its measures were stored separately); periods released before capture began show Narwhal's first capture.
observations[].year_over_yeardecimal stringChange from the same month one year earlier, in percent.
observations[].month_over_monthdecimal stringChange from the previous month, in percent.
observations[].quarter_over_quarterdecimal stringChange from the previous quarter, in percent. Sent instead of month_over_month for New Zealand, whose figures are quarterly.
observations[].year_to_datedecimal stringChange from the prior December, in percent. Omitted when the publisher does not release it.
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_cursorstring or nullPass this unchanged as cursor to read the next page; null on the last page.
Rank the latest inflation rates and keep each release date.
Read the guide →Use CPI index levels to see what an old price is worth now.
Read the guide →Get the rates from the API or work them out from index levels.
Read the guide →Read the reference month and the scheduled time of the next release.
Read the guide →Take inflation off a nominal yield with the Fisher formula.
Read the guide →Set a reminder with a calendar feed or a daily script.
Read the guide →Official indicators for prices, labour, output, trade, and rates.
Explore the API →Release schedules, status, and publication versions.
Explore the API →How releases are checked and revised.
Read the methodology →Yes. Live coverage includes CPI index levels and inflation rates.
Yes. You can request an exact period, retrieve dated history or query the latest accepted value.
They are official statistics from national publishers, organized by country.
Free $10 credits every month, no card.Free $10 credits a month, no card.