81trust / 100
Treasury Fiscal Snapshot
by d21 treasury_fiscal_snapshot in Other
x402 APIPassing, checked 51 min ago
Treasury Fiscal Snapshot ($0.005): total U.S. public debt outstanding (Debt to the Penny), recent Treasury operating cash balance, and current-quarter Treasury Reporting Rates of Exchange, in one call. Fetched live from api.fiscaldata.treasury.gov, not a snapshot. Body {} (no fields required). Check free /v1/treasury_fiscal_snapshot/availability first.
POST https://draconic21-x402-api.onrender.com/v1/treasury_fiscal_snapshot
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 182 ms typical, 182 ms slowest 5%
- Last check
- 51 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://draconic21-x402-api.onrender.com/v1/treasury_fiscal_snapshot" \
-H "content-type: application/json" \
-d '{}'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%2Fdraconic21-x402-api.onrender.com%2Fv1%2Ftreasury_fiscal_snapshot
const res = await pay("https://draconic21-x402-api.onrender.com/v1/treasury_fiscal_snapshot", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}),
});
console.log(await res.json());Example input
{}Example output
{
"brand": "draconic21",
"caveats": [
"Debt/cash figures are the Treasury's own reported values as of their record_date, not real…"
],
"debt_to_the_penny": {
"debt_held_public_amt": "28900000000000.00",
"intragov_hold_amt": "7223456789012.34",
"record_date": "2026-09-26",
"tot_pub_debt_out_amt": "36123456789012.34"
},
"exchange_rates_current_quarter": [
{
"country": "United Kingdom",
"currency": "Pound Sterling",
"exchange_rate": "0.789",
"record_date": "2026-09-30"
}
],
"operating_cash_balance_recent": [
{
"account_type": "Treasury General Account (TGA) Closing Balance",
"balance": "812345.00",
"record_date": "2026-09-26"
}
],
"product": "Treasury Fiscal Snapshot",
"schema": "draconic21.treasury_fiscal_snapshot_response.v1",
"source": {
"cache_age_seconds": 1840,
"name": "U.S. Department of the Treasury Fiscal Data API (api.fiscaldata.treasury.gov)",
"served_from_cache": true
}
}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 |
|---|---|---|---|---|
| 51 min ago | Passed | 402 | 633 ms | $0.005 |
| 6 h ago | Passed | 402 | 182 ms | $0.005 |