Browse all documentation

Inflation API

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

economics_get_inflation is available through REST and the economics_get_inflation MCP tool. Both return the same data shape and consume the same monthly quota.

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.

NameRequiredTypeMeaning
countryYespath · ISO alpha-3One supported uppercase country code: AUS, CAN, DEU, FRA, GBR, JPN, MYS, SGP, and USA.
periodNoquery · YYYY-MMOmit it for the latest accepted complete release, or pass one exact period.

Response

Example response
{
  "country": "USA",
  "period": "2026-07",
  "year_over_year": "3.651",
  "month_over_month": "0.153",
  "year_to_date": "0.755",
  "unit": "percent",
  "released_on": "2026-08-12"
}
FieldTypeRequiredMeaning
countrystringYesThe requested uppercase ISO alpha-3 country code.
periodstringYesThe official observation period returned.
year_over_yeardecimal stringYesPercentage change from the same month one year earlier.
month_over_monthdecimal stringYesPercentage change from the previous month.
year_to_datedecimal stringYesPercentage change from the prior December.
unit"percent"YesThe unit for all three rates.
released_ondateYesThe official publication date, not Narwhal's retrieval time.

Errors and quota

  • 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 complete approved publication matches the request.
  • 429 quota_exhausted — the account has reached its monthly allowance.
  • 503 economics_unavailable — Narwhal cannot safely serve an accepted publication.

Only a successful data response consumes quota. 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. Read how source checks, validation, stored releases, and failed checks work.

Current public-beta coverage

All three national inflation measures are published together for AUS, CAN, DEU, FRA, GBR, JPN, MYS, SGP, and USA.

Indonesia, regional routes, Commodities, and FX are not part of the public beta.

Return to all Economics operations.