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, and returns the Debt to the Penny figures for the latest record or any date back to 1993. Use the daily total public debt to build a US debt clock or track the national debt over time without parsing Treasury downloads yourself.

Each reading gives the total public debt outstanding, the portion held by the public and the share of the total that represents, with readable strings like $40.53 trillion ready for display. Weekend and holiday dates resolve to the nearest earlier business day, so any calendar date works.

The Free plan returns those headline figures for any date, and changes=true adds the previous record's total and date. Paid plans add intragovernmental holdings, estimated debt per person and per household, and the growth figures: 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.

How it works

The collector calls the Treasury's Debt to the Penny dataset every day at 11am and stores one record per Treasury record date, the business days on which the figures are published. totalDebt is total public debt outstanding, publicDebt is debt held by the public, intragovernmentalDebt is debt held by government accounts, and publicDebtRatio is publicDebt as a percent of totalDebt, rounded to two decimals.

perCapita divides the total by a fixed US population of 335,000,000, which is also what population returns, so it is an estimate that does not track census changes. perHousehold divides the total by that population over 2.5 people per household.

date takes YYYY-MM-DD. When the date has no record, the API searches back up to ten days and returns the nearest earlier one; date echoes what you asked for and recordDate shows the record actually used. Without date you get the newest record.

With changes=true, previousDebt and previousDate are the record before the returned one. change30d and change1y compare with the record 30 and 365 days back, or the nearest before each. averageDailyChange30d divides change30d by the calendar days between the two records, so weekends spread the growth instead of inflating it. Dollar changes are rounded to cents; any comparison whose record is missing is null.

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