/v1/adjust
Inflation adjust
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/inflation-api/v1/adjust" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/inflation-api/v1/adjust", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/inflation-api/v1/adjust");
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/adjust",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Annual-rate method: adjusted = amount · (1+r)^years. The rate may be a percent (3) or a fraction (0.03).",
"inputs": {
"rate": 3,
"years": 10,
"amount": 100
},
"method": "annual-rate",
"adjusted_amount": 134.3916,
"inflation_factor": 1.34391638,
"total_inflation_pct": 34.391638
},
"meta": {
"timestamp": "2026-06-05T11:30:32.383Z",
"request_id": "d49ccc26-e12f-4518-9813-04ce2957c52c"
},
"status": "ok",
"message": "Inflation adjust",
"success": true
}