Zum Inhalt springen
GET /v1/history

One country's quarterly gap history

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/creditgap-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 40,
        "source": "BIS",
        "country": "US",
        "history": [
            {
                "gap": -12.7,
                "period": "2015-Q4"
            },
            {
                "gap": -11.7,
                "period": "2016-Q1"
            },
            {
                "gap": -10.6,
                "period": "2016-Q2"
            },
            {
                "gap": -9.5,
                "period": "2016-Q3"
            },
            {
                "gap": -9.6,
                "period": "2016-Q4"
            },
            {
                "gap": -9,
                "period": "2017-Q1"
            },
            {
                "gap": -8.1,
                "period": "2017-Q2"
            },
            {
                "gap": -7.8,
                "period": "2017-Q3"
            },
            {
                "gap": -6.8,
                "period": "2017-Q4"
            },
            {
                "gap": -7.5,
                "period": "2018-Q1"
            },
            {
                "gap": -6.6,
                "period": "2018-Q2"
            },
            {
                "gap": -6.8,
                "period": "2018-Q3"
            },
            {
                "gap": -6.5,
                "period": "2018-Q4"
            },
            {
                "gap": -6.3,
                "period": "2019-Q1"
            },
            {
                "gap": -5.9,
                "period": "2019-Q2"
            },
            {
                "gap": -5.5,
                "period": "2019-Q3"
            },
            {
                "gap": -5.8,
                "period": "2019-Q4"
            },
            {
                "gap": -2.6,
                "period": "2020-Q1"
            },
            {
                "gap": 2.9,
                "period": "2020-Q2"
            },
            {
                "gap": 3.6,
                "period": "2020-Q3"
            },
            {
                "gap": 4.6,
                "period": "2020-Q4"
            },
            {
                "gap": 4.5,
                "period": "2021-Q1"
            },
            {
                "gap": 2.3,
                "period": "2021-Q2"
            },
            {
                "gap": 0.4,
                "period": "2021-Q3"
            },
            {
                "gap": -1,
                "period": "2021-Q4"
            },
            {
                "gap": -2.3,
                "period": "2022-Q1"
            },
            {
                "gap": -3.4,
                "period": "2022-Q2"
            },
            {
                "gap": -4.9,
                "period": "2022-Q3"
            },
            {
                "gap": -6.2,
                "period": "2022-Q4"
            },
            {
                "gap": -7.6,
                "period": "2023-Q1"
            },
            {
                "gap": -8.8,
                "period": "2023-Q2"

…