Open data · no key required
The Debt Clock API
Small, stable JSON endpoints for the latest confirmed debt, derived figures, recent Treasury publications and annual history. Responses are static, fast and CORS-enabled.
GET/api/current.json
Latest confirmed debt, projection rate, per-person figures, GDP ratio, source and build timestamp.
fetch('https://thedebtclock.com/api/current.json')
.then(response => response.json())
.then(data => console.log(data.nationalDebt.confirmed));GET/api/history.json
The last 30 Treasury publications, one year-end observation per year since 1993, and transparent administration boundary records.
curl https://thedebtclock.com/api/history.jsonFreshness and provenance
The current endpoint was built from the Treasury record dated 11 September 2026. The buildTimestamp tells clients when the static response was produced. Consumers should compare the record date with their own current date rather than treating a ticking projection as official.
Primary source: U.S. Treasury, Debt to the Penny.
Usage
- No authentication or API key.
- CORS enabled for browser requests.
- Amounts are numeric U.S. dollars, not formatted strings.
- Dates use ISO
YYYY-MM-DD. - Please cite “The Debt Clock, sourced from U.S. Treasury Debt to the Penny.”