82trust / 100
Treasury Debt
by US total public debt outstanding in News & content
x402 APIPassing, checked 7 min ago
Most recent total US public debt outstanding (the headline national-debt number, daily) from the Treasury "Debt to the Penny" feed. Public domain, no key. No params.
GET https://agent402.tools/api/treasury-debt
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 186 ms typical, 189 ms slowest 5%
- Last check
- 7 min ago
- Next check
- in 26 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/treasury-debt"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Ftreasury-debt
const res = await pay("https://agent402.tools/api/treasury-debt");
console.log(await res.json());Example input
{}Example output
{
"recordDate": "2026-06-12",
"source": "Treasury Fiscal Data API",
"totalPublicDebtOutstanding": 35642101888471.22
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 7 min ago | Passed | 402 | 186 ms | $0.002 |
| 3 h ago | Passed | 402 | 189 ms | $0.002 |
| 6 h ago | Passed | 402 | 183 ms | $0.002 |
| 11 h ago | Passed | 402 | 196 ms | $0.002 |