bls-macro.cpi
mock data$0.001 / callConsumer 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).
Input schema
CPI category: "all" = All Items CPI-U (default), "food" = Food, "energy" = Energy, "shelter" = Shelter, "core" = All Items Less Food and Energy.
Last year of CPI data (default: current year).
First year of CPI data (default: current year - 4).
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}'