Μετάβαση στο περιεχόμενο
GET /v1/cpi/annual

Annual-average HICP + inflation since 2002

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/kosovo-stats-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "base": "2015 = 100",
        "count": 25,
        "years": [
            {
                "year": "2002",
                "months": 8,
                "average_index": 78.12
            },
            {
                "year": "2003",
                "months": 12,
                "average_index": 79.05,
                "annual_avg_change_pct": 1.19
            },
            {
                "year": "2004",
                "months": 12,
                "average_index": 78.21,
                "annual_avg_change_pct": -1.06
            },
            {
                "year": "2005",
                "months": 12,
                "average_index": 77.13,
                "annual_avg_change_pct": -1.38
            },
            {
                "year": "2006",
                "months": 12,
                "average_index": 77.62,
                "annual_avg_change_pct": 0.64
            },
            {
                "year": "2007",
                "months": 12,
                "average_index": 80.98,
                "annual_avg_change_pct": 4.33
            },
            {
                "year": "2008",
                "months": 12,
                "average_index": 88.55,
                "annual_avg_change_pct": 9.35
            },
            {
                "year": "2009",
                "months": 12,
                "average_index": 86.41,
                "annual_avg_change_pct": -2.42
            },
            {
                "year": "2010",
                "months": 12,
                "average_index": 89.43,
                "annual_avg_change_pct": 3.49
            },
            {
                "year": "2011",
                "months": 12,
                "average_index": 95.98,
                "annual_avg_change_pct": 7.32
            },
            {
                "year": "2012",
                "months": 12,
                "average_index": 98.37,
                "annual_avg_change_pct": 2.49
            },
            {
                "year": "2013",
                "months": 12,
                "average_index": 100.11,
                "annual_avg_change_pct": 1.77
            },
            {
                "year": "2014",
                "months": 12,
                "average_index": 100.53,
                "annual_avg_change_pct": 0.42
            },
            {
                "year": "2015",
                "months": 12,
                "average_index": 99.99,
                "annual_avg_change_pct": -0.54
            },
            {
                "year": "2016",
                "months": 12,
                "average_index": 100.29,
                "annual_avg_change_pct": 0.3
            },
            {
                "year": "2017",
                "months": 12,
                "average_index": 101.78,
                "annual_avg_change_pct": 1.49
            },
            {
                "year": "2018",
                "months": 12,
                "average_index": 102.85,
      
…