Ir al contenido
GET /v1/country

One country's household, corporate & total DSR

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/debtservice-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/debtservice-api/v1/country" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/debtservice-api/v1/country", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/debtservice-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/debtservice-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": "Debt service ratios in percent of income. household_dsr (H) is the most-watched read on consumer debt stress; corporate_dsr (N) covers non-financial firms; private_total_dsr (P) is the whole private non-financial sector.",
        "period": "2025-Q3",
        "source": "BIS",
        "country": "US",
        "corporate_dsr": 37.8,
        "household_dsr": 7.9,
        "private_total_dsr": 14.1
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:40.612Z",
        "request_id": "e50a0902-a6ad-48a0-adb5-e5777399ed61"
    },
    "status": "ok",
    "message": "Country retrieved successfully",
    "success": true
}