/v1/country
One country's gap, ratio, trend & risk
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}