Aller au contenu
GET /v1/country

One country's gap, ratio, trend & risk

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/creditgap-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}