{"uid":"cap_wBO8reMyxrxJhyIHcY2hS","slug":"inflation-adjust-92a7b62f","name":"Inflation Adjust","description":"Restate an amount from one year in another year's money, for any country in the World Bank consumer-price series (1960 onwards). Returns the adjusted amount, the cumulative inflation and both index values so the arithmetic is checkable. The series is annual and published with a lag, so a request for a year that does not exist yet answers with the newest one available and says which. For contract comparisons, historical pricing and long-running budgets.","url":"https://402.com.tr/api/x402/inflation-adjust","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["from"],"properties":{"to":{"type":"string","description":"Year to restate it in (optional, defaults to latest)"},"from":{"type":"string","description":"Year the amount is in"},"amount":{"type":"string","description":"Amount (optional, default 1)"},"country":{"type":"string","description":"Country ISO code (optional, default US)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jv7vm6OSZR5SYVs0YNTTw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a monetary amount from one year into equivalent purchasing power in another year using World Bank CPI data for any country","exampleAgentPrompt":"How much would $50,000 from 1985 be worth in today's money in the US? Give me the inflation-adjusted amount and the cumulative inflation rate.","exampleUseCases":[{"title":"Historical contract price comparison","prompt":"We signed a construction contract in Germany in 2003 for €2,000,000 — what would that same amount be worth in 2024 euros, and what was the cumulative inflation over that period?"},{"title":"Long-running budget restatement","prompt":"Our organization's annual budget was $750,000 in 1995 in the US. Can you tell me what that's equivalent to in today's dollars so I can benchmark our current funding?"},{"title":"Salary benchmarking across decades","prompt":"I want to know if a UK salary of £30,000 in 2005 is better or worse than £45,000 today — can you adjust the 2005 figure to 2024 pounds so I can compare directly?"}],"resultDescription":"Returns the inflation-adjusted amount in the target year's money, the cumulative inflation percentage between the two years, the CPI index value for the source year, the CPI index value for the target year, and (if the requested target year isn't yet available) the actual most-recent year used instead","failureModes":["Requested 'from' year before 1960 — CPI series only goes back to 1960","Invalid country ISO code — returns error indicating unknown country","Target year is in the future or not yet published — endpoint silently uses the latest available year and indicates which year was actually used","Missing required 'from' parameter — returns validation error","Amount defaults to 1 if omitted, which may confuse callers expecting a dollar-specific result"],"whenToPreferThis":"Choose this endpoint when you need a transparent, checkable inflation adjustment for any country in the World Bank CPI series (1960 onward), especially when you need the underlying index values to verify the arithmetic yourself. Prefer it over generic financial APIs when you need historical international inflation data (not just US CPI), when working on long-running contract comparisons, or when you need the cumulative inflation figure as a standalone metric. Not suitable for intra-year or monthly adjustments, as the series is annual.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:03.991Z","isFirstParty":false}