US national debt, Treasury data: total public debt outstanding today and its change
US national debt from the Treasury's Debt to the Penny dataset: total public debt outstanding, debt held by the public and intragovernmental holdings (USD) at the latest record date, the change over 1 day, 30 days and 1 year, and a daily history (1-365 days). US federal data, public domain; the snapshot's record date is in the answer. Use when an agent needs the current US federal debt figure, its trend, or a daily series for a chart or brief.
Inputs
| Name | Type | Description |
|---|---|---|
days | integer | Days of daily history to return, 1-365 (default 30) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/econ/national-debt?days=30"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/econ/national-debt?days=30&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"date": "2026-11-05",
"fiscalYear": 2027,
"totalPublicDebtUsd": 40556120784983.65,
"debtHeldByPublicUsd": 32766722473715.61,
"intragovernmentalHoldingsUsd": 7789398311268.04,
"change": {
"d1": {
"since": "2026-11-04",
"amountUsd": 5890737374.5,
"percent": 0.01
},
"d30": {
"since": "2026-10-06",
"amountUsd": 181204583011.2,
"percent": 0.45
},
"d365": {
"since": "2025-11-05",
"amountUsd": 2301450102311.9,
"percent": 6.02
}
},
"history": [
{
"date": "2026-11-05",
"totalPublicDebtUsd": 40556120784983.65,
"debtHeldByPublicUsd": 32766722473715.61,
"intragovernmentalHoldingsUsd": 7789398311268.04
}
],
"snapshotAt": "2026-11-07T08:30:00.000Z",
"dataset": "Debt to the Penny",
"datasetUrl": "https://fiscaldata.treasury.gov/datasets/debt-to-the-penny/",
"source": "U.S. Department of the Treasury, Fiscal Data (public domain)"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is econ_national_debt, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp