UnifyAPI
← Back to catalog

bls-macro.cpi

mock data$0.001 / call

Consumer Price Index (Inflation)

Get U.S. Consumer Price Index (CPI-U) data by item category and year range. Returns monthly values, year-over-year percentage change, and a full data series. Categories: "all" = All Items (headline inflation), "food", "energy", "shelter", "core" = All Items Less Food and Energy. Covers data from 1913 (All Items) through the most recently released month. Ideal for inflation analysis, cost-of-living calculations, real-return adjustments, and economic research. Data source: BLS Consumer Expenditure Survey, CPI-U series (urban consumers).

Referenceprovider: Bls Macro#bls-macro#reference

Input schema

item

CPI category: "all" = All Items CPI-U (default), "food" = Food, "energy" = Energy, "shelter" = Shelter, "core" = All Items Less Food and Energy.

string
end_year

Last year of CPI data (default: current year).

integer
start_year

First year of CPI data (default: current year - 4).

integer

Call via REST

curl -X POST https://unifyapi.pro/api/call/bls-macro.cpi \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"item":"<item>","end_year":0,"start_year":0}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.