/v1/country
One country's gap, ratio, trend & risk
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/creditgap-api/v1/country" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/creditgap-api/v1/country", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/creditgap-api/v1/country");
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/country",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "credit_to_gdp_gap = ratio minus trend (percentage points), the Basel early-warning indicator. Above ~10 has historically preceded banking crises; below 0 means deleveraging.",
"risk": "deep deleveraging",
"trend": 152.5,
"period": "2025-Q3",
"source": "BIS",
"country": "US",
"credit_to_gdp_gap": -12.1,
"credit_to_gdp_ratio": 140.4
},
"meta": {
"timestamp": "2026-06-12T10:35:41.252Z",
"request_id": "9d19c023-1d30-4737-8986-130674bc50e7"
},
"status": "ok",
"message": "Country retrieved successfully",
"success": true
}