---
title: "GET /api/macro/inflation"
method: GET
path: "/api/macro/inflation"
tags: ["Macro"]
---

# GET /api/macro/inflation

`GET /api/macro/inflation`

## Request

- Base URL: `https://api.unirateapi.com`
- URL: `https://api.unirateapi.com/api/macro/inflation`
- Auth: none declared
- TypeScript: <https://skmtc.dev/unirateapi/apis/unirate-api/docs/api/macro/inflation/get.ts> (a function with typed inputs; its response is checked against the schema)

Latest consumer price inflation (CPI, year-on-year % change) by country (free tier — counts against the normal daily request quota). Covers ~65 economies from the BIS consumer prices dataset, monthly. Without `country` returns every live series; with `country` accepts ISO country codes (US, DE, JP) or currency codes (USD, JPY), comma-separated. EUR returns euro-area inflation; a euro-area member with its own series (e.g. DE) returns its national CPI. `period` is the month the figure refers to (national statistics are published with a 1-3 month lag; a few quarterly series such as AU and NZ are repeated monthly by the BIS). Source: Bank for International Settlements (BIS), https://data.bis.org — UniRate is not affiliated with or endorsed by the BIS. Provided for information only; not investment advice.

## Query parameters

- `api_key` string, required
- `country` string
- `format` 'json' | 'xml' | 'csv' | 'tsv'
- `callback` string

## Response `200`

Latest CPI inflation.

## Other responses

- `400`: Too many countries requested
- `401`: Missing or invalid API key
- `404`: None of the requested countries/currencies has inflation data
- `429`: Daily request quota exceeded (shared with the currency endpoints: free 200/day, Pro 25,000/day)
- `503`: Inflation data not loaded yet

---

[API](https://skmtc.dev/unirateapi/apis/unirate-api.md) - [All operations](https://skmtc.dev/unirateapi/apis/unirate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unirateapi/apis/unirate-api/revisions/e5fd92902326?raw)
