Zum Inhalt springen
GET /v1/inflation

IPCA inflation

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "unit": "%",
        "month": "2026-04-01",
        "source": "Banco Central do Brasil",
        "history": [
            {
                "date": "2025-11-01",
                "month_pct": 0.18
            },
            {
                "date": "2025-12-01",
                "month_pct": 0.33
            },
            {
                "date": "2026-01-01",
                "month_pct": 0.33
            },
            {
                "date": "2026-02-01",
                "month_pct": 0.7
            },
            {
                "date": "2026-03-01",
                "month_pct": 0.88
            },
            {
                "date": "2026-04-01",
                "month_pct": 0.67
            }
        ],
        "indicator": "IPCA — Brazil official consumer price index",
        "month_pct": 0.67,
        "accumulated_12m_pct": 4.39,
        "accumulated_12m_date": "2026-04-01"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:31.542Z",
        "request_id": "20bf6d3a-73b3-4e70-8fe8-61bb7e1967f4"
    },
    "status": "ok",
    "message": "Inflation retrieved successfully",
    "success": true
}