/v1/debt
US national debt to the penny
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/treasury-api/v1/debt" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/treasury-api/v1/debt", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/treasury-api/v1/debt");
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/treasury-api/v1/debt",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"latest": {
"record_date": "2026-05-28",
"total_public_debt": 39176301795549.4,
"debt_held_by_public": 31466045143781.76,
"intragovernmental_holdings": 7710256651767.64
}
},
"meta": {
"timestamp": "2026-05-31T08:24:39.129Z",
"request_id": "d4bb336f-f51c-440d-a279-bf1aff47e45a"
},
"status": "ok",
"message": "Debt retrieved",
"success": true
}