US total public debt outstanding

$0.002 per call · USDC via x402 · GET /api/treasury-debt

Most recent total US public debt outstanding (the headline national-debt number, daily) from the Treasury "Debt to the Penny" feed. Send GET /api/treasury-debt with no input and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with recordDate, totalPublicDebtOutstanding and source.

Public domain, no key. No params.

Category: Live public data · Tags: national-debt treasury fiscal public-debt macro deficit government

TRY IN PLAYGROUND →

Parameters

US total public debt outstanding takes no parameters.

Example request

curl -i "https://agent402.tools/api/treasury-debt"

Without payment this returns HTTP 402 Payment Required with the exact price for treasury-debt; any x402 v2 or MPP client pays it and retries.

Example response

{
  "recordDate": "2026-06-12",
  "totalPublicDebtOutstanding": 35642101888471.22,
  "source": "Treasury Fiscal Data API"
}
FieldTypeAlways presentIn the example
recordDatestringyes2026-06-12
totalPublicDebtOutstandingnumberyes35642101888471.22
sourcestringyesTreasury Fiscal Data API

From an MCP client

catalog.call {
  "slug": "treasury-debt",
  "params": {}
}

The hosted connector at https://agent402.tools/mcp needs a payment for treasury-debt; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/treasury-debt");

Part of these workflows

US total public debt outstanding is one step in this skill pack, each sold as a single call:

Related tools

Average interest rates on Treasury securities

$0.005 · GET /api/treasury-avg-rates

Latest average interest rates the US Treasury is paying by security type (Bills, Notes, Bonds, TIPS, FRNs, marketable vs…

US Treasury daily yield curve

$0.005 · GET /api/treasury-yield-curve

Latest US Treasury daily constant-maturity yield curve in one object: recordDate plus mo1, mo3, mo6, yr1, yr2, yr3, yr5,…

US Treasury yield history

$0.005 · GET /api/treasury-yield-history

Last N business days of US Treasury constant-maturity yields, oldest→newest. Source: FRED DGS* series (St. Louis Fed), p…

Treasury yield-curve spreads + inversion

$0.005 · GET /api/yield-curve-spread

Derived 2s10s and 3m10y Treasury yield-curve spreads (in basis points) plus a boolean recession-signal flag when the cur…

US college lookup (Scorecard)

$0.004 · GET /api/college-lookup

Look up US colleges by name via the Dept. of Education College Scorecard: state, out-of-state tuition, overall admission…

US CPI year-over-year inflation

$0.005 · GET /api/cpi-yoy

Latest US Consumer Price Index year-over-year inflation rate (headline CPI-U) plus the trailing 12 months of YoY reading…