Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/inflation-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}