/v1/cpi/series
Historical CPIH index + YoY series
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/uk-stats-api/v1/cpi/series" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/uk-stats-api/v1/cpi/series", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/uk-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/uk-stats-api/v1/cpi/series",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"base": "Index: 2015=100",
"count": 24,
"series": [
{
"index": 130.8,
"period": "Feb-24",
"period_iso": "2024-02",
"change_yoy_pct": 3.81
},
{
"index": 131.6,
"period": "Mar-24",
"period_iso": "2024-03",
"change_yoy_pct": 3.79
},
{
"index": 132.2,
"period": "Apr-24",
"period_iso": "2024-04",
"change_yoy_pct": 3.04
},
{
"index": 132.7,
"period": "May-24",
"period_iso": "2024-05",
"change_yoy_pct": 2.79
},
{
"index": 133,
"period": "Jun-24",
"period_iso": "2024-06",
"change_yoy_pct": 2.78
},
{
"index": 132.9,
"period": "Jul-24",
"period_iso": "2024-07",
"change_yoy_pct": 3.02
},
{
"index": 133.4,
"period": "Aug-24",
"period_iso": "2024-08",
"change_yoy_pct": 3.09
},
{
"index": 133.5,
"period": "Sep-24",
"period_iso": "2024-09",
"change_yoy_pct": 2.61
},
{
"index": 134.3,
"period": "Oct-24",
"period_iso": "2024-10",
"change_yoy_pct": 3.15
},
{
"index": 134.6,
"period": "Nov-24",
"period_iso": "2024-11",
"change_yoy_pct": 3.54
},
{
"index": 135.1,
"period": "Dec-24",
"period_iso": "2024-12",
"change_yoy_pct": 3.52
},
{
"index": 135.1,
"period": "Jan-25",
"period_iso": "2025-01",
"change_yoy_pct": 3.92
},
{
"index": 135.6,
"period": "Feb-25",
"period_iso": "2025-02",
"change_yoy_pct": 3.67
},
{
"index": 136.1,
"period": "Mar-25",
"period_iso": "2025-03",
"change_yoy_pct": 3.42
},
{
"index": 137.7,
"period": "Apr-25",
"period_iso": "2025-04",
"change_yoy_pct": 4.16
},
{
"index": 138,
"period": "May-25",
"period_iso": "2025-05",
"change_yoy_pct": 3.99
},
{
"index": 138.4,
"period": "Jun-25"
…