# d21 Treasury Fiscal Snapshot

> d21 Treasury Fiscal Snapshot is a paid API for AI agents from draconic21-x402-api.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Fetches live U.S. total public debt outstanding, Treasury operating cash balance, and current-quarter Treasury exchange rates in a single call.

## Facts

- Endpoint: POST https://draconic21-x402-api.onrender.com/v1/treasury_fiscal_snapshot?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/d21-treasury-fiscal-snapshot-367981e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0hOpLi3xXZxA2nmBBmRrs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability d21-treasury-fiscal-snapshot-367981e1 -d '<json body>'
```

Example prompt: What's the current U.S. national debt, Treasury cash balance, and this quarter's Treasury exchange rates — can you pull all three live from fiscal data right now?

## When to prefer this

Use this endpoint when you need a quick, combined snapshot of core U.S. fiscal metrics — public debt, cash balance, and exchange rates — without making multiple separate calls to the Treasury FiscalData API. Ideal for macro monitoring, financial reporting pipelines, or any agent that needs live U.S. government financial data aggregated in one round-trip. Prefer this over direct Treasury API calls when operating in an x402 micropayment agent context.

## Known failure modes

- Upstream api.fiscaldata.treasury.gov unavailability causes fetch failure
- Payment not received or insufficient USDC balance results in 402 error
- Rate limiting or network timeout on the Render-hosted service
- Stale or delayed data if Treasury source is lagging updates

## How this service works

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.

## Output

Returns a JSON object with three live data points fetched from api.fiscaldata.treasury.gov: (1) total U.S. public debt outstanding (Debt to the Penny), (2) the most recent Treasury operating cash balance, and (3) current-quarter Treasury Reporting Rates of Exchange. Response includes ok: true, brand, and product identifiers on success.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "debt_to_the_penny",
      "exchange_rates_current_quarter"
     ],
     "properties": {
      "source": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "cache_age_seconds": {
         "type": "integer"
        },
        "served_from_cache": {
         "type": "boolean"
        }
       }
      },
      "caveats": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "debt_to_the_penny": {
       "type": "object",
       "required": [
        "record_date",
        "tot_pub_debt_out_amt"
       ],
       "properties": {
        "record_date": {
         "type": "string",
         "format": "date"
        },
        "intragov_hold_amt": {
         "type": "string"
        },
        "debt_held_public_amt": {
         "type": "string"
        },
        "tot_pub_debt_out_amt": {
         "type": "string"
        }
       }
      },
      "operating_cash_balance_recent": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "balance": {
          "type": "string"
         },
         "record_date": {
          "type": "string",
          "format": "date"
         },
         "account_type": {
          "type": "string"
         }
        }
       }
      },
      "exchange_rates_current_quarter": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "country": {
          "type": "string"
         },
         "currency": {
          "type": "string"
         },
         "record_date": {
          "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "brand": "draconic21",
  "product": "treasury_fiscal_snapshot"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/d21-treasury-fiscal-snapshot-367981e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from draconic21-x402-api.onrender.com](https://www.zero.xyz/host/draconic21-x402-api.onrender.com/llms.txt)
