NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

National Debt API

GET

Track US national debt and public debt figures down to the penny.

National Debt provides the US national debt (Debt to the Penny), updated daily from the Treasury. It returns the total public debt, debt held by the public, intragovernmental holdings, per-capita debt calculations, the previous record's total, and on paid plans how much the debt grew over a day, 30 days and a year.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/nationaldebt
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "date": "2026-10-26",
    "recordDate": "2026-10-26",
    "totalDebt": 40528358939415.85,
    "totalDebtFormatted": "$40.53 trillion",
    "publicDebt": 32635294814294.48,
    "publicDebtFormatted": "$32.64 trillion",
    "intragovernmentalDebt": 7893064125121.37,
    "intragovernmentalDebtFormatted": "$7.89 trillion",
    "perCapita": 120980,
    "perCapitaFormatted": "$120,980",
    "population": 335000000,
    "publicDebtRatio": 80.52,
    "perHousehold": 302450.44,
    "perHouseholdFormatted": "$302,450",
    "previousDebt": 40463151897249.19,
    "previousDate": "2026-10-23",
    "change1d": 65207042166.66,
    "change30d": 431180819664.95,
    "change1y": 2519332979958.45,
    "changePercent1y": 6.6282,
    "averageDailyChange30d": 13909058698.87
  }
}

About the National Debt API

National Debt sources data directly from the US Treasury Fiscal Data API, which is updated daily. Historical data is available back to 1993, enabling trend analysis and historical comparisons. With changes=true every reading includes the previous record's total, and paid plans add the dollar change over 1 day, 30 days and 1 year, the 1-year percent change and the average daily increase over 30 days. Use the daily total public debt to build a US debt clock or track the national debt over time.

What people use it for

Financial Dashboards
Display real-time national debt figures on financial dashboards and economic monitoring tools
Economic Research
Analyze historical debt trends for economic research and policy analysis
Educational Tools
Build educational applications showing government debt and per-capita calculations
News Applications
Provide up-to-date debt figures for news and media applications

Without writing code

Evlar Markets, a Windows app built on this API, shows it on its markets dashboard beside your watchlist.

US national debt clock on DigestYourFinances shows the debt live.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use National Debt

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the National Debt API.

Read the docs →
How far back does historical debt data go?
Historical debt figures are available back to 1993. You can pass any specific date in YYYY-MM-DD format to retrieve historical figures, or omit the date to pull the latest daily data.
Is it cheap enough to query US debt figures on every dashboard load?
Yes. Each lookup costs 2 credits, which works out to about $0.0003 per call on the Starter plan, or $0.30 per 1,000 calls. Starter includes 200,000 credits, covering up to 100,000 requests each month. The Free plan includes 200 credits, giving you 100 monthly calls for testing.
What does the Free plan include, and what do paid plans add?
The Free plan provides total national debt, debt held by the public, the public debt ratio, and with changes=true the previous record's total and date. Paid plans add per-capita and per-household estimates, intragovernmental holdings, and with changes=true the dollar change over 1 day, 30 days and 1 year, the 1-year percent change, and the average daily increase over the last 30 days.
Where does the national debt data come from?
Data is sourced directly from the US Treasury Fiscal Data API. Updates are published daily to reflect official Debt to the Penny records.
Can I display these debt figures in a commercial financial dashboard?
Yes, provided you are on a paid plan. Commercial use requires Starter or above, while the Free plan is strictly for non-commercial evaluation. You can present the data in your software or reports, but you cannot resell or redistribute the raw dataset.

Ready to build with National Debt? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs