API & MCP

Everything a person can do on Inflation Time Machine, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Inflation Time Machine

Convert an amount between years with the consumer price index (2010 = 100) published by the World Bank. Shows the equivalent value, cumulative inflation, average annual inflation and lost purchasing power, with a year-by-year table.

Inputs of Inflation Time Machine
FieldTypeDefaultDescription
amount (required)number100Amount
currencytext"EUR"Currency label. Label only. Use the currency of the chosen country; no conversion is done.
fromYear (required)integer2000From year
toYear (required)integer2024To year
countryselect (US, GB, DE, FR, IT, ES, NL, AT, CH, SE, PL, CA, AU, JP, IN, BR, MX, ZA, TR, CN)"DE"Country

Example request

100 EUR in Germany, 2000 → 2024

curl -X POST https://inflationtimemachine.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"amount":100,"currency":"EUR","fromYear":2000,"toYear":2024,"country":"DE"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "inflation-time-machine": { "type": "http", "url": "https://inflationtimemachine.usefulweb.site/mcp" }
  }
}