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

# GET /api/macro/inflation/history

`GET /api/macro/inflation/history`

## Request

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

Monthly CPI inflation history (year-on-year % change) for ONE country (free tier — counts against the normal daily request quota). Many series go back to the 1950s or earlier (US from 1914). `country` accepts an ISO country code or a currency code. Dates accept YYYY-MM or YYYY-MM-DD (the month is used). 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, required
- `start_date` string
- `end_date` string
- `format` 'json' | 'xml' | 'csv' | 'tsv'
- `callback` string

## Response `200`

Monthly inflation in the requested window.

## Other responses

- `400`: Missing/multiple country, or invalid dates
- `401`: Missing or invalid API key
- `404`: No inflation data for that country/currency
- `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)
