---
title: "Adjust an amount for inflation between two years (CPI ratio)"
method: GET
path: "/v1/inflation"
---

# Adjust an amount for inflation between two years (CPI ratio)

`GET /v1/inflation`

## Request

- Base URL: `https://statcite.com`
- URL: `https://statcite.com/v1/inflation`
- Auth: none declared

## Query parameters

- `amount` number, required
- `from_year` integer, required
- `to_year` integer, required
- `country` string

## Response `200`

Adjusted amount with method and citation

- object
  - `original_amount` number, required
  - `from_year` integer
  - `to_year` integer
  - `adjusted_amount` number, required
  - `factor` number
  - `country` string
  - `index_used` string
  - `method` string
  - `citation` Citation, required: Every numeric payload carries one of these. Reproduce citation_text when presenting the number.
    - `source` string
    - `dataset` string
    - `series_id` string
    - `series_name` string
    - `source_url` string
    - `api_url` string
    - `license` string
    - `attribution` string
    - `retrieved_at` string
    - `citation_text` string
    - `notices` string[]
    - `export_formats` object: Ready-to-paste citation strings derived from this citation's own fields, so they can never disagree with citation_text.
      - `bibtex` string
      - `apa` string
  - `notes` string[]

## Other responses

- `400`: Malformed, missing, unknown or repeated query parameter. The message names the parameter and lists what the route accepts.
- `405`: Method not supported on this endpoint. The Allow header lists what is.
- `422`: The request was well formed but cannot be answered, e.g. the source does not publish this series for this economy.
- `502`: An upstream statistical source could not be read. error.code is upstream_unavailable and the failure is usually transient, so retry.

---

[API](https://skmtc.dev/statcite/apis/statcite-api.md) · [All operations](https://skmtc.dev/statcite/apis/statcite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/statcite/apis/statcite-api/revisions/8993772a4e80?raw)
