API reference/Finance & Markets/Historical Debt Outstanding

Historical Debt Outstanding

freeLive data

Year-end total public debt back decades, with cumulative change and growth multiple.

GET/api/v1/finance/debt-history

Data source

Query parameters

ParameterDescriptionTry value
years
number
1–100 (default 20)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.