Skip to content

U.S. Treasury API: Get national debt

Returns US national debt (Debt to the Penny) for a given date, or the latest published day. Dates without a record use the previous published day.

home.treasury.gov (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by U.S. Treasury.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Date optionaldate

Day to look up in YYYY-MM-DD; leave blank to use the latest published day. Dates from 1993-04-01 up to today. Example: 2024-07-04.

Not set

Exactly 10 characters.

Output

From a run on Oct 23, 2026.
{  "date": "2026-10-21",  "currency": "USD",  "page_url": "https://fiscaldata.treasury.gov/datasets/debt-to-the-penny/",  "debt_held_by_the_public": 32566346587338.02,  "intragovernmental_holdings": 7847292424967.95,  "total_public_debt_outstanding": 40413639012305.97}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
home.treasury.gov/get_national_debt
Returns
date, total public debt outstanding, debt held by the public, intragovernmental holdings

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method home.treasury.gov/get_national_debt with the inputs above.

Ask your agent

  • What was the total US national debt on July 4, 2024?
  • Give me the latest published figure for the national debt outstanding.
  • How much of the US debt was held by the public at the end of 2010-12-31?
  • Show the intragovernmental holdings portion of the federal debt for 2019-06-30.
  • On treasury.gov, what is today's debt to the penny broken down into public and intragovernmental amounts?
  • Gets official daily Treasury par yield curve rates for a date, or the latest published date on or before it.

    home.treasury.gov/get_treasury_yields
  • Gets the U.S. Treasury quarterly reporting exchange rate for a country or currency on a given date. If that quarter has no published record, it uses the latest preceding quarter.

    treasury.gov/get_reporting_exchange_rates
  • Gets a federal agency's fiscal-year budgetary resources, obligations, share of federal obligations, new award count, top recipients and spending classes from USAspending.

    usaspending.gov/get_agency_spending
  • Gets the official ECB euro reference exchange rates for a day, or the latest published day. Weekends, holidays and dates before publication return the previous published day.

    ecb.europa.eu/get_euro_exchange_rates
  • Gets decades of yearly commodity or stock-index price history from Macrotrends: yearly average, open, high, low, close, annual change and inflation-adjusted value for gold, silver, crude oil, natural gas, copper, Dow Jones, S&P 500 and Nasdaq. The current year may be incomplete.

    macrotrends.net/get_long_term_price_history
  • Gets current government bond yields from Investing.com's world government bonds table, optionally filtered by country and maturity term.

    investing.com/get_bond_yields
  • Returns Freddie Mac's U.S. 30-year and 15-year fixed mortgage rates for the latest survey or a chosen date, with weekly and year-ago changes, and optionally a weekly history for a date range.

    freddiemac.com/get_mortgage_rates
  • Converts an amount between currencies using ECB euro reference rates, including euro and cross-currency conversions. Uses the latest preceding published rate when the date has none.

    ecb.europa.eu/convert_currency