← Back to Financial Datasets
GET/macro/inflation
Inflation (Historical)
Monthly US Consumer Price Index history for one series, newest first, with month-over-month and year-over-year percent changes. Covers headline and core CPI plus food, energy, shelter, and services since 1947.
Financial Datasets·$0.025 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "financial-datasets",
path: "/macro/inflation",
query: {
"series": "example"
}
});
console.log(output);Query parameters
seriesrequired
string
The series id, e.g. cpi_all_sa. Six concepts (all items, core, food, energy, shelter, services less energy), each seasonally adjusted (_sa) and not (_nsa), for 12 ids total.
start_date
string
The first month to return, inclusive, in YYYY-MM-DD format. Defaults to five years before end_date.
end_date
string
The last month to return, inclusive, in YYYY-MM-DD format. Defaults to today.
cursor
string
Opaque pagination cursor from a previous response next_page_url.