Zum Inhalt springen
GET /v1/purchasing-power

Purchasing power

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/inflation-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/inflation-api/v1/purchasing-power" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/inflation-api/v1/purchasing-power", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/inflation-api/v1/purchasing-power");
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/purchasing-power",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "After 'years' of inflation, today's amount buys future_purchasing_power = amount/(1+r)^years; amount_to_maintain_power = amount·(1+r)^years keeps the same buying power.",
        "inputs": {
            "rate": 3,
            "years": 10,
            "amount": 100
        },
        "value_lost": 25.5906,
        "erosion_pct": 25.590609,
        "future_purchasing_power": 74.4094,
        "amount_to_maintain_power": 134.3916
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:32.470Z",
        "request_id": "f45b8664-6007-47ef-bf35-19377ae34b79"
    },
    "status": "ok",
    "message": "Purchasing power",
    "success": true
}