{"uid":"cap_K2YGuLaa_TgKOo6DanzAk","slug":"2s-io-inflation-calculator-dc457a28","name":"2s.io Inflation Calculator","description":"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).","url":"https://2s.io/api/inflation/calculator","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["amount","from"],"properties":{"to":{"type":"string","description":"End date (YYYY-MM-DD or YYYY). Defaults to latest CPI."},"from":{"type":"string","description":"Start date (YYYY-MM-DD or YYYY)."},"amount":{"type":"number","description":"Dollar amount to adjust."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"to":"2024","from":"1995","amount":75000}}},"response":{"data":{"ok":true,"items":[{"to":"2024-01-01","from":"1995-01-01","cpiTo":308.417,"amount":75000,"cpiFrom":150.3,"seriesId":"CPIAUCNS","cpiToDate":"2024-01-01","cpiFromDate":"1995-01-01","annualizedPct":2.51,"adjustedAmount":153900.7,"cumulativeInflationPct":105.2}],"total":1,"source":{"url":"https://fred.stlouisfed.org/","license":"FRED® data; many series are public domain (US govt). Attribution to FRED required for redistribution.","provider":"Federal Reserve Bank of St. Louis — FRED"}},"meta":{"cost":{"usd":0.0012,"tier":0},"caller":"x402","version":null,"endpoint":"inflation.calculator","settlement":{"txHash":"0x74c789378f2b4c639658f2e13c424ab75ff8a003890f328ccb72050a7145e838","network":"eip155:8453","success":true}}}},"exampleRequest":{"to":"2024","from":"1995","amount":75000},"tags":["x402"],"displayCostAmount":"0.0012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zI-lxfM3467H5Spia170B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Adjusts a US dollar amount for inflation between two dates using CPI-U data from BLS via FRED, returning the adjusted amount, cumulative inflation %, annualized rate, and CPI index values.","exampleAgentPrompt":"What is $75,000 from 1995 worth in today's dollars? Use CPI-U to give me the inflation-adjusted amount, cumulative inflation percentage, and annualized rate.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: the inflation-adjusted dollar amount, cumulative inflation percentage over the period, annualized inflation rate, the CPI-U index value on the start date, and the CPI-U index value on the end date.","failureModes":["Date before 1913 — CPI data not available, returns error","Invalid date format — must be YYYY-MM-DD or YYYY","Amount missing or non-numeric — required field validation error","End date before start date — may return error or unexpected result","Date in the future beyond latest available CPI month — defaults to or errors on latest available data"],"whenToPreferThis":"Use this endpoint when you need a reliable, BLS-official CPI-U inflation adjustment for US dollar amounts between any two dates from 1913 to present. Prefer this over generic finance APIs when you need the exact same methodology as the official BLS inflation calculator, including annualized rates and raw CPI index values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:55:31.903Z","isFirstParty":false}