Api Endpoint

d21 treasury_fiscal_snapshot

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.

Open interactive test console

Offering

Provider
draconic21-x402-api.onrender.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://draconic21-x402-api.onrender.com/v1/treasury_fiscal_snapshot
MIME type
application/json
First seen
2026-10-16T01:50:32.458Z
Last seen
Tags
treasury, government-data, fiscal, debt, exchange-rates

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.005 USDC
Atomic price: 5000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x1520Ef5530AA71350049BE2903Cf078B38c40AE5"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "5000",
    "payTo": "6mc4GhWFyNcMh7gAVDWrKeYjDqFtEKWKQuZ9RTw2VkfM"
  }
]

Observed health

Status
Healthy
Latest latency
103 ms
Average latency
624 ms
HTTP status
204
Last checked
Reachability
100% over 8 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": true
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "debt_to_the_penny": {
          "type": "object",
          "properties": {
            "record_date": {
              "type": "string",
              "format": "date"
            },
            "tot_pub_debt_out_amt": {
              "type": "string"
            },
            "debt_held_public_amt": {
              "type": "string"
            },
            "intragov_hold_amt": {
              "type": "string"
            }
          },
          "required": [
            "record_date",
            "tot_pub_debt_out_amt"
          ]
        },
        "operating_cash_balance_recent": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "record_date": {
                "type": "string",
                "format": "date"
              },
              "account_type": {
                "type": "string"
              },
              "balance": {
                "type": "string"
              }
            }
          }
        },
        "exchange_rates_current_quarter": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "exchange_rate": {
                "type": "string"
              },
              "record_date": {
                "type": "string",
                "format": "date"
              }
            }
          }
        },
        "source": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "served_from_cache": {
              "type": "boolean"
            },
            "cache_age_seconds": {
              "type": "integer"
            }
          }
        },
        "caveats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "debt_to_the_penny",
        "exchange_rates_current_quarter"
      ]
    }
  },
  "required": [
    "type"
  ]
}