{
  "x402Version": 2,
  "id": 29197,
  "slug": "29197",
  "resource": "https://api.agentstools.dev/treasury/debt",
  "description": "US federal debt from the Treasury Debt to the Penny series, split into debt held by the public and intragovernmental holdings, fused with interest expense on the debt. Returns the latest value, the history over a window and computed net issuance plus public and intragovernmental shares. Values are cited to Treasury Fiscal Data.",
  "type": "http",
  "serviceName": "treasury-debt",
  "resourceType": "Web Intelligence",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "days": 30
          },
          "type": "http"
        },
        "output": {
          "example": {
            "attribution": [
              "Source: U.S. Department of the Treasury, Fiscal Data (public domain)"
            ],
            "computed": {
              "intragovernmental_share": 0.1954,
              "net_issuance_over_window": 152340000000,
              "public_share": 0.8046,
              "to_date": "2026-07-09"
            },
            "latest": {
              "debt_held_by_public": 31709399350223.4,
              "intragovernmental_holdings": 7704779665906.69,
              "record_date": "2026-07-09",
              "total_public_debt": 39414179016130.09
            },
            "series": "debt_to_penny",
            "unit": "USD",
            "window_days": 30
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "days": {
                    "description": "Look back this many days of daily debt history",
                    "maximum": 3660,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "range": {
                    "description": "Alias for days",
                    "maximum": 3660,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "treasury",
    "national-debt",
    "debt-to-the-penny",
    "public-debt",
    "interest-expense",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:08:35.47Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:35.239Z"
  },
  "metadata": {
    "serviceName": "treasury-debt",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "days": 30
            },
            "type": "http"
          },
          "output": {
            "example": {
              "attribution": [
                "Source: U.S. Department of the Treasury, Fiscal Data (public domain)"
              ],
              "computed": {
                "intragovernmental_share": 0.1954,
                "net_issuance_over_window": 152340000000,
                "public_share": 0.8046,
                "to_date": "2026-07-09"
              },
              "latest": {
                "debt_held_by_public": 31709399350223.4,
                "intragovernmental_holdings": 7704779665906.69,
                "record_date": "2026-07-09",
                "total_public_debt": 39414179016130.09
              },
              "series": "debt_to_penny",
              "unit": "USD",
              "window_days": 30
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "days": {
                      "description": "Look back this many days of daily debt history",
                      "maximum": 3660,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "range": {
                      "description": "Alias for days",
                      "maximum": 3660,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}