Browse all documentation

Inflation API reference

Retrieve year-over-year, month-over-month, and year-to-date inflation for one month.

Call it through REST or the economics_get_inflation MCP tool. Both return the same data shape and use the same credit.

Endpoint and request

REST endpoint
GET /v1/economics/{country}/inflation
Example request
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/USA/inflation?period=2026-07" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"

MCP uses tool economics_get_inflation with the corresponding arguments below.

Parameters

The accepted period format for this operation is YYYY-MM or YYYY-QN.

NameRequiredTypeMeaning
countryYespath · ISO alpha-3One supported uppercase country code; see this operation’s coverage list.
periodNoquery · YYYY-MM or YYYY-QNOmit it for the latest accepted complete release, or pass one exact period.
version_idNoquery · UUIDOptional immutable publication version. Use `resource_version` from a `dataset.published` or `dataset.revised` event; omit to read the current admitted indicator.

Response

Example response
{
  "country": "USA",
  "period": "2026-07",
  "year_over_year": "3.4",
  "month_over_month": "0.0",
  "year_to_date": "3.0",
  "released_on": "2026-11-10"
}
FieldTypeRequiredMeaning
countrystringYesThe requested uppercase ISO alpha-3 country code.
periodstringYesThe official observation period returned.
year_over_yeardecimal stringYesChange from the same month one year earlier, in percent.
month_over_monthdecimal stringNoChange from the previous month, in percent. Left out where the publisher releases only the year-over-year figure.
quarter_over_quarterdecimal stringNoChange from the previous quarter, in percent. Sent instead of month_over_month for New Zealand, whose figures are quarterly.
year_to_datedecimal stringNoChange from the prior December, in percent. Omitted when the publisher does not release it.
released_ondateYesThe official publication date, not Narwhal's retrieval time.
sourceobjectNoThe 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.
stagestringNoAppears 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 timestampNoAppears only on a newest figure read from the publisher's release. When the publisher released the figure.
provisionaltrueNoPresent, as true, only when the figure read from the release is marked provisional.
calculatedarray of stringsNoPresent 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.

Newest figure read from the release

The newest answer can come from Narwhal's own read of the statistics office's release, before the stored series has it. Such an answer adds source, stage, published_at and provisional (only when true). An answer with none of these fields is the stored value. A stored answer can also carry calculated, which lists the figures Narwhal calculated from the publisher's own numbers.

Inflation also answers the newest figure for a country that has no stored series. It has no history: a period or version_id request for such a country returns 404 series_not_found.

Where a stored series reaches Narwhal through a distributor, the statistics office's own printed figure for the same period replaces it. The answer then names the office as the source and no distributor.

Example request
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/GRC/inflation" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
Example response
{
  "country": "GRC",
  "period": "2026-10",
  "year_over_year": "5.7",
  "released_on": "2026-11-10",
  "source": {
    "publisher": "Hellenic Statistical Authority"
  },
  "stage": "final",
  "published_at": "2026-11-10T10:00:00Z"
}

Errors and credits

  • 400 invalid_query — the country, period, or filter format is invalid.
  • 401 invalid_api_key — the Bearer key is missing or rejected.
  • 404 series_not_found — no approved observation matches the request.
  • 429 rate_limit_exceeded — the network or account short-window limit was reached; retry after Retry-After.
  • 402 insufficient_credits — your balance does not cover the call.
  • 503 economics_unavailable — Narwhal cannot safely serve an accepted publication.

Only a successful data response costs credit. See all errors, headers, and retry rules.

Freshness

Omitting period returns Narwhal's latest stored accepted release. The API call reads Narwhal's database; it does not call the official publisher live.

released_on is the official publication date.

The newest figure can be shown as soon as the publisher releases it, from Narwhal's read of the release. Until the stored series has the same period, the answer carries the read fields described above.

Read how source checks, validation, stored releases, and failed checks work.

Current public-beta coverage

46 Countries

ARG, AUS, AUT, BEL, BRA, CAN, CHE, CHL, CHN, COL, CZE, DEU, DNK, ESP, EST, FIN, FRA, GBR, HRV, IDN, IND, IRL, ISR, ITA, JPN, KOR, LTU, LUX, LVA, MEX, MYS, NLD, NOR, NZL, PAK, PHL, POL, PRT, QAT, SAU, SGP, SVN, SWE, THA, USA, ZAF

National inflation coverage follows the country list below; year-to-date availability follows each source contract. For euro area countries this is the national index, not the Eurostat HICP, so figures can differ from Eurostat's. For Australia this is the monthly CPI, not the quarterly CPI, so a month's rate can differ from the quarter's. 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.

New Zealand's inflation figures are quarterly, from Stats NZ. Periods are quarters in YYYY-QN format, and quarter_over_quarter is sent in place of month_over_month, with no year_to_date.

Monthly IMF figures

27 Countries

AGO, ARM, BGD, BIH, BWA, CIV, CRI, GEO, HTI, JOR, KEN, LAO, LBN, LKA, LSO, MWI, NGA, OMN, PRY, SEN, SLV, UGA, UKR, UZB, VEN, VNM, ZMB

The latest inflation route answers for these countries from the International Monetary Fund's CPI dataset (all items, monthly), which distributes the statistics office's consumer price index. Narwhal checked each country's newest two months against its national office before opening it. year_over_year and month_over_month are the IMF's rates rounded to one decimal, not Narwhal's calculation, and there is no year_to_date. The source object names the IMF as distributor and the original publisher as publisher. The history route for these countries returns the same monthly series.

Annual World Bank history

100 Countries

ABW, AFG, ALB, ATG, AZE, BDI, BEN, BFA, BHR, BHS, BLR, BLZ, BOL, BRB, BRN, BTN, CAF, CMR, COD, COG, COM, CPV, CUW, CYM, DJI, DMA, DOM, ECU, EGY, ETH, FJI, FSM, GAB, GHA, GIN, GMB, GNB, GNQ, GRD, GTM, GUY, HND, IRN, IRQ, JAM, KAZ, KGZ, KHM, KIR, KNA, LBR, LBY, LCA, MAC, MDA, MDG, MDV, MLI, MMR, MNE, MNG, MOZ, MRT, MUS, NAM, NCL, NER, NIC, NPL, PAN, PLW, PNG, PSE, RUS, RWA, SDN, SLB, SLE, SMR, SSD, STP, SUR, SWZ, SXM, SYC, SYR, TCD, TGO, TJK, TLS, TON, TTO, TUN, TZA, URY, VCT, VUT, WSM, YEM, ZWE

These countries have no latest-value route. A request to this route returns 404 series_not_found; read the history route instead.

Daily FX is available through the FX API.

Return to all Economics operations.

Was this page helpful?