Macroeconomics

Inflation (Historical)

Changed on

Monthly US inflation history for one series (consumer price index or PCE price index), newest first, with the month-over-month and year-over-year percent changes. Dates are reference months (first day of the month). Values are index levels (1982-84 = 100 for CPI, 2017 = 100 for PCE), sourced from authoritative government sources. A change is null when the comparison month was not published.

get/macro/inflation

Request

  • Base URL
    https://api.financialdatasets.ai
  • Auth
    API key in header X-API-KEY

Query parameters

seriesstring required

The series id, e.g. cpi_all_sa or pce_core_sa. CPI: six concepts (all items, core, food, energy, shelter, services less energy), each seasonally adjusted (_sa) and not (_nsa). PCE: pce_all_sa and pce_core_sa. Use the /macro/inflation/series endpoint to get the list.

start_datestring

The first month to return, inclusive, in YYYY-MM-DD format; any day inside a month selects that month. Defaults to five years before end_date when both dates are omitted; omit it with an end_date to get all available history through that month.

end_datestring

The last month to return, inclusive, in YYYY-MM-DD format. Defaults to today.

cursorstring

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

Response

Inflation response

next_page_urlstring

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 10 records.

Changes