/v1/cpi
US CPI-U (latest month): index, MoM and YoY
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/bls-api/v1/cpi" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bls-api/v1/cpi", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bls-api/v1/cpi");
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/bls-api/v1/cpi",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"base": "1982-84 = 100",
"index": 335.123,
"period": "2026 May",
"source": "US Bureau of Labor Statistics (series CUUR0000SA0)",
"country": "United States",
"indicator": "Consumer Price Index for All Urban Consumers (CPI-U, all items)",
"period_iso": "2026-05",
"change_mom_pct": 0.63,
"change_yoy_pct": 4.25
},
"meta": {
"timestamp": "2026-06-15T20:40:38.984Z",
"request_id": "e28020c2-664a-415d-854f-96061a1596f5"
},
"status": "ok",
"message": "US CPI retrieved",
"success": true
}