Inflation Calculator API
Adjust a US dollar amount for inflation between two dates ('what is $100 in 1990 worth today?'). Pass amount, from (YYYY-MM-DD or YYYY), and optional to (defaults to the latest CPI month). Uses CPI-U (CPIAUCNS — the same not-seasonally-adjusted all-items index as the official BLS inflation calculator), data back to 1913. Returns the inflation-adjusted amount, cumulative inflation %, annualized rate, and the CPI index values used on each date. Source: BLS CPI via FRED (St. Louis Fed).
Offering
- Provider
- 2s.io
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- Financial Analysis
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://2s.io/api/inflation/calculator- MIME type
- application/json
- First seen
- 2026-10-16T02:00:03.055Z
- Last seen
- Tags
- public-records, identifiers, AI-agents, us-gov-data, X402, upto-billing, ai-gateway, agent-infrastructure
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact - Payment option 2
- 0.003 USDC
Atomic price: 3000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"payTo": "0x2b6D4988Db4723E6908Db86Ab2b8dFBc51FC32C5"
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "3000",
"payTo": "TW6ntaGzvj63ZgPjszd4FCGmVTGfzv1MAYZbjYcyWhn"
}
]Observed health
- Status
- Healthy
- Latest latency
- 94 ms
- Average latency
- 732 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 13 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"type": "object",
"properties": {
"type": {
"const": "http"
},
"method": {
"const": "GET"
},
"queryParams": {
"properties": {
"amount": {
"type": "number",
"description": "Dollar amount to adjust."
},
"from": {
"type": "string",
"description": "Start date (YYYY-MM-DD or YYYY)."
},
"to": {
"type": "string",
"description": "End date (YYYY-MM-DD or YYYY). Defaults to latest CPI."
}
},
"required": [
"amount",
"from"
]
}
},
"required": [
"type",
"method",
"queryParams"
]
}Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"input": {
"type": "object",
"properties": {
"type": {
"const": "http"
},
"method": {
"const": "GET"
},
"queryParams": {
"properties": {
"amount": {
"type": "number",
"description": "Dollar amount to adjust."
},
"from": {
"type": "string",
"description": "Start date (YYYY-MM-DD or YYYY)."
},
"to": {
"type": "string",
"description": "End date (YYYY-MM-DD or YYYY). Defaults to latest CPI."
}
},
"required": [
"amount",
"from"
]
}
},
"required": [
"type",
"method",
"queryParams"
]
}
},
"required": [
"input"
]
}