/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/inflation-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/inflation-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/inflation-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/inflation-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"notes": "Rates may be a percent (3) or a fraction (0.03). Amounts are in any currency. CPI values are index numbers.",
"service": "inflation-api",
"formulae": {
"fisher": "1 + real = (1 + nominal)/(1 + inflation)",
"adjust_cpi": "V = amount · CPI_end / CPI_start",
"adjust_rate": "V = amount · (1+r)^years",
"purchasing_power": "P = amount / (1+r)^years"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/adjust": "Adjust an amount for inflation by an annual rate over n years, or by CPI start/end.",
"GET /v1/real-rate": "Real (inflation-adjusted) interest rate from nominal rate and inflation (Fisher).",
"GET /v1/purchasing-power": "Future purchasing power and the amount needed to keep buying power."
},
"description": "Inflation calculator: adjust a value across years by an annual rate or a CPI ratio, the Fisher real interest rate, and the erosion of purchasing power over time."
},
"meta": {
"timestamp": "2026-06-05T11:30:32.688Z",
"request_id": "580ccbfb-0565-4df0-8a51-12e8cf899d62"
},
"status": "ok",
"message": "Meta",
"success": true
}