Finance & Conversion
Inflation Calculator API
See what a dollar amount from any year since 1913 is worth in another year, using official US CPI data.
Request Headers
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | inflation.p.rapidapi.com |
Endpoints
GET
/v1/finance/inflation Adjust a US dollar amount for inflation between two years using CPI-U
Parameters
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
amount | number | optional | — | <= 1000000000000 |
from | integer | optional | — | — |
to | integer | optional | — | — |
Code Examples
curl --request GET \
--url 'https://inflation.p.rapidapi.com/v1/finance/inflation?amount=0&from=0' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: inflation.p.rapidapi.com' const url = "https://inflation.p.rapidapi.com/v1/finance/inflation?amount=0&from=0";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "inflation.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://inflation.p.rapidapi.com/v1/finance/inflation"
querystring = {"amount": 0, "from": 0}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "inflation.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) Interactive Example
$ GET /v1/finance/inflation?amount=100&from=1990&to=2024
{"amount":100.0,"from":1990,"to":2024,"country":"US","adjusted_amount":240.01,"cumulative_inflation_percent":140.01,"avg_annual_inflation_percent":2.61} Subscribe & License
Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.
Developer Support
Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.
System Performance
Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.
All Systems Operational