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

One country's quarterly index history

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

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

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

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

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

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

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

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

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

{
    "data": {
        "count": 40,
        "source": "BIS",
        "country": "US",
        "history": [
            {
                "period": "2016-Q1",
                "real_index": 118.8,
                "nominal_index": 129.4
            },
            {
                "period": "2016-Q2",
                "real_index": 118.8,
                "nominal_index": 130.8
            },
            {
                "period": "2016-Q3",
                "real_index": 120,
                "nominal_index": 132.6
            },
            {
                "period": "2016-Q4",
                "real_index": 121.6,
                "nominal_index": 134.7
            },
            {
                "period": "2017-Q1",
                "real_index": 122.3,
                "nominal_index": 136.5
            },
            {
                "period": "2017-Q2",
                "real_index": 123.4,
                "nominal_index": 138.5
            },
            {
                "period": "2017-Q3",
                "real_index": 124.8,
                "nominal_index": 140.6
            },
            {
                "period": "2017-Q4",
                "real_index": 126.3,
                "nominal_index": 142.8
            },
            {
                "period": "2018-Q1",
                "real_index": 127.1,
                "nominal_index": 145
            },
            {
                "period": "2018-Q2",
                "real_index": 127.3,
                "nominal_index": 146.7
            },
            {
                "period": "2018-Q3",
                "real_index": 128.1,
                "nominal_index": 148.2
            },
            {
                "period": "2018-Q4",
                "real_index": 129.3,
                "nominal_index": 149.5
            },
            {
                "period": "2019-Q1",
                "real_index": 129.8,
                "nominal_index": 150.6
            },
            {
                "period": "2019-Q2",
                "real_index": 129.6,
                "nominal_index": 152.1
            },
            {
                "period": "2019-Q3",
                "real_index": 130.8,
                "nominal_index": 153.9
            },
            {
                "period": "2019-Q4",
                "real_index": 132.4,
                "nominal_index": 156.2
            },
            {
                "period": "2020-Q1",
                "real_index": 133.8,
                "nominal_index": 158.5
            },
            {
                "period": "2020-Q2",
                "real_index": 135.7,
                "nominal_index": 159.8
            },
            {
                "period": "2020-Q3",
                "real_index": 138.4,
                "nominal_index": 164.9
            },
            {
                "period": "2020-Q4",
                "real_index": 143.3,
                "nominal_index": 171.1
            },
            {
                "period": "2021-Q1",
     
…