/v1/cpi/series
Historical CPI index + YoY series
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/malaysia-stats-api/v1/cpi/series" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/malaysia-stats-api/v1/cpi/series", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/malaysia-stats-api/v1/cpi/series");
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/malaysia-stats-api/v1/cpi/series",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"base": "2010 = 100",
"count": 24,
"series": [
{
"index": 132.8,
"period": "2024-05-01",
"change_yoy_pct": 2
},
{
"index": 133,
"period": "2024-06-01",
"change_yoy_pct": 1.99
},
{
"index": 133.1,
"period": "2024-07-01",
"change_yoy_pct": 1.99
},
{
"index": 133.2,
"period": "2024-08-01",
"change_yoy_pct": 1.91
},
{
"index": 133.2,
"period": "2024-09-01",
"change_yoy_pct": 1.83
},
{
"index": 133.4,
"period": "2024-10-01",
"change_yoy_pct": 1.91
},
{
"index": 133.3,
"period": "2024-11-01",
"change_yoy_pct": 1.83
},
{
"index": 133.4,
"period": "2024-12-01",
"change_yoy_pct": 1.68
},
{
"index": 133.6,
"period": "2025-01-01",
"change_yoy_pct": 1.67
},
{
"index": 134.1,
"period": "2025-02-01",
"change_yoy_pct": 1.51
},
{
"index": 134.1,
"period": "2025-03-01",
"change_yoy_pct": 1.44
},
{
"index": 134.3,
"period": "2025-04-01",
"change_yoy_pct": 1.44
},
{
"index": 134.4,
"period": "2025-05-01",
"change_yoy_pct": 1.2
},
{
"index": 134.5,
"period": "2025-06-01",
"change_yoy_pct": 1.13
},
{
"index": 134.7,
"period": "2025-07-01",
"change_yoy_pct": 1.2
},
{
"index": 134.9,
"period": "2025-08-01",
"change_yoy_pct": 1.28
},
{
"index": 135.2,
"period": "2025-09-01",
"change_yoy_pct": 1.5
},
{
"index": 135.1,
"period": "2025-10-01",
"change_yoy_pct": 1.27
},
{
"index": 135.1,
"period": "2025-11-01",
"change_yoy_pct": 1.35
},
{
"index": 135.5,
"period": "2025-12-01",
"change_yoy_pct": 1.57
},
{
"index": 135.7,
"period": "2026-01-01",
"change_yoy_pct": 1
…