Finance
Inflation adjustment (CPI real value) API
Adjust a dollar amount between two years using the BLS CPI-U index (keyless public API), returning the real (inflation-adjusted) amount, the two index values used, the cumulative inflation %, and the annualized rate. The value-add is picking the right index periods and deriving the metrics, not a raw index dump. Answers 'what is $100 in 1990 worth today', 'inflation between 2000 and 2020', 'adjust this amount for inflation', 'cumulative inflation since 1980'.
Price$0.01per request
MethodPOST
Route/v1/finance/inflation-adjust
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
financeinflationcpireal-valueblspurchasing-powerdeflatoreconomics
API URL
Integration docshttps://x402.hexl.dev/v1/finance/inflation-adjustExample request
{
"amount": 100,
"fromYear": 1990,
"toYear": 2024
}Example response
{
"amount": 100,
"fromYear": 1990,
"toYear": 2024,
"fromCpi": 133.8,
"toCpi": 315.605,
"adjustedAmount": 235.88,
"cumulativeInflationPercent": 135.88,
"annualizedRatePercent": 2.556,
"series": "CUUR0000SA0"
}Input schema
{
"type": "object",
"required": [
"amount",
"fromYear"
],
"properties": {
"amount": {
"type": "number",
"examples": [
100
]
},
"fromYear": {
"type": "number",
"examples": [
1990
]
},
"toYear": {
"type": "number",
"examples": [
2024
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}