Api Endpoint

US national debt, Treasury data

US national debt, Treasury data. US national debt from the Treasury's Debt to the Penny dataset: total public debt outstanding, debt held by the public and intragovernmental holdings (USD) at the latest record date, the change over 1 day, 30 days and 1 year, and a daily history (1-365 days). US federal data, public domain; the snapshot's record date is in the answer. Use when an agent needs the current US federal debt figure, its trend, or a daily series for a chart or brief.

Open interactive test console

Offering

Provider
agent-data-tools.revmesh2074.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent-data-tools.revmesh2074.workers.dev/econ/national-debt
MIME type
application/json
First seen
2026-11-08T18:39:52.471Z
Last seen
Tags
national-debt, us-national-debt, treasury, public-debt, fiscal-data

Payment pricing

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

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.01 USDC
Atomic price: 10000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.01 USDC
Atomic price: 10000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 4
0.01 USDC
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "payTo": "82wfSCZhCmZA7zwqqt6Q3FG8nqYBwUvbThP6M97fa9Q6"
  }
]

Observed health

Status
Healthy
Latest latency
315 ms
Average latency
243 ms
HTTP status
402
Last checked
Reachability
100% over 7 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": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "days": {
          "type": "integer",
          "description": "Days of daily history to return, 1-365 (default 30)",
          "examples": [
            30
          ]
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "fiscalYear": {
          "type": "number"
        },
        "totalPublicDebtUsd": {
          "type": "number"
        },
        "debtHeldByPublicUsd": {
          "type": "number"
        },
        "intragovernmentalHoldingsUsd": {
          "type": "number"
        },
        "change": {
          "type": "object",
          "properties": {
            "d1": {
              "type": "object",
              "properties": {
                "since": {
                  "type": "string"
                },
                "amountUsd": {
                  "type": "number"
                },
                "percent": {
                  "type": "number"
                }
              }
            },
            "d30": {
              "type": "object",
              "properties": {
                "since": {
                  "type": "string"
                },
                "amountUsd": {
                  "type": "number"
                },
                "percent": {
                  "type": "number"
                }
              }
            },
            "d365": {
              "type": "object",
              "properties": {
                "since": {
                  "type": "string"
                },
                "amountUsd": {
                  "type": "number"
                },
                "percent": {
                  "type": "number"
                }
              }
            }
          }
        },
        "history": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "totalPublicDebtUsd": {
                "type": "number"
              },
              "debtHeldByPublicUsd": {
                "type": "number"
              },
              "intragovernmentalHoldingsUsd": {
                "type": "number"
              }
            }
          }
        },
        "snapshotAt": {
          "type": "string"
        },
        "dataset": {
          "type": "string"
        },
        "datasetUrl": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}