Naar de inhoud
GET /v1/country

One economy's full inflation breakdown

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "code": "USA",
        "core": 2.85,
        "food": 2.74,
        "name": "United States",
        "note": "One economy's consumer-price inflation, broken down: the headline all-items rate, the core rate (excluding food and energy), and the food, energy and services rates — each year-on-year. The headline-vs-core read tells you whether the inflation is a food/energy shock or a stickier underlying problem. A component is null when that series is not currently reported for this economy. Percent year-on-year, monthly, cached a few hours.",
        "energy": 23.54,
        "period": "2026-05",
        "source": "OECD price statistics (SDMX), national CPI",
        "headline": 4.25,
        "services": null,
        "is_aggregate": false,
        "headline_vs_core": "Headline (4.25%) is running above core (2.85%) by 1.4 pts — volatile food/energy are pushing the print up; underlying inflation is cooler than the headline suggests."
    },
    "meta": {
        "timestamp": "2026-06-12T19:36:28.249Z",
        "request_id": "9f534f66-cbeb-44d7-94cc-8182d149d4c8"
    },
    "status": "ok",
    "message": "Country CPI inflation retrieved successfully",
    "success": true
}