/v1/latest
Every country's debt-to-GDP by sector
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/debttogdp-api/v1/latest" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/debttogdp-api/v1/latest", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/debttogdp-api/v1/latest");
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/latest",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Debt-to-GDP in percent (BIS total credit at market value, all lenders). government is general-government debt, households and corporates are the private sub-sectors, private_total is the whole private non-financial sector. Sort by government (default), households, corporates, private_total or country.",
"count": 32,
"source": "BIS",
"countries": [
{
"period": "2025-Q3",
"country": "JP",
"corporates": 111.7,
"government": 184.3,
"households": 61.1,
"private_total": 172.8
},
{
"period": "2025-Q3",
"country": "GR",
"corporates": 57.5,
"government": 150.9,
"households": 38.2,
"private_total": 95.7
},
{
"period": "2025-Q3",
"country": "IT",
"corporates": 58.5,
"government": 137.9,
"households": 35.9,
"private_total": 94.4
},
{
"period": "2025-Q3",
"country": "FR",
"corporates": 155.2,
"government": 110,
"households": 59.9,
"private_total": 215.1
},
{
"period": "2025-Q3",
"country": "US",
"corporates": 72.5,
"government": 109.7,
"households": 68,
"private_total": 140.4
},
{
"period": "2025-Q3",
"country": "5R",
"corporates": 90.9,
"government": 101.5,
"households": 68.5,
"private_total": 159.4
},
{
"period": "2025-Q3",
"country": "ES",
"corporates": 77,
"government": 100.7,
"households": 43,
"private_total": 120
},
{
"period": "2025-Q3",
"country": "BE",
"corporates": 117.8,
"government": 99.4,
"households": 56.6,
"private_total": 174.5
},
{
"period": "2025-Q3",
"country": "CA",
"corporates": 118,
"government": 96.2,
"households": 100.2,
"private_total": 218.2
},
{
"period": "2025-Q3",
"country": "PT",
"corporates": 75.8,
"government": 95.9,
"households": 53.4,
"private_total": 129.2
},
{
"period": "2025-Q3",
"country": "5A",
"corporates": 93.5,
…