Naar de inhoud
GET /v1/country

One country's four sector debt ratios

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/debttogdp-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Debt-to-GDP in percent. government is general-government debt; households and corporates (non-financial) are the private sub-sectors; private_total is the whole private non-financial sector. From BIS total credit at market value.",
        "period": "2025-Q3",
        "source": "BIS",
        "country": "US",
        "corporates": 72.5,
        "government": 109.7,
        "households": 68,
        "private_total": 140.4
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:37.719Z",
        "request_id": "ca9514d4-3e2d-4569-b0c1-6f060c2cba69"
    },
    "status": "ok",
    "message": "Country retrieved successfully",
    "success": true
}