# US Federal Debt & Interest Expense (Treasury Debt to the Penny)

> US Federal Debt & Interest Expense (Treasury Debt to the Penny) is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns current US federal debt split into public and intragovernmental holdings, fused with interest expense data, plus historical daily series and computed net issuance metrics from Treasury Fiscal Data.

## Facts

- Endpoint: GET https://api.agentstools.dev/treasury/debt
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-federal-debt-interest-expense-treasury-debt-to-the-penny-2d776a27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RYJMHRbmCA5A6pJ7L1Ysi

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 us-federal-debt-interest-expense-treasury-debt-to-the-penny-2d776a27
```

Example prompt: What is the current US federal debt, broken down into debt held by the public vs intragovernmental holdings, along with interest expense and net issuance — and show me the daily history for the last 180 days?

## When to prefer this

Use this endpoint when you need authoritative, cited US federal debt data with a public/intragovernmental breakdown, interest expense context, and computed net issuance metrics — especially when sourcing directly from Treasury Fiscal Data is required. Prefer this over general macroeconomic indicator endpoints when the specific Debt to the Penny series and its components are needed.

## Known failure modes

- Invalid 'days' parameter (outside 1–3660 range) returns a validation error
- Treasury Fiscal Data upstream unavailable causes a service error
- Payment not included or insufficient USDC results in HTTP 402 payment required
- No data available for the requested date range returns empty history array

## How this service works

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.

## Output

Returns the latest total US federal debt figure plus the split between debt held by the public and intragovernmental holdings, interest expense on the debt, computed net issuance, public and intragovernmental percentage shares, and a daily time-series of debt history over the requested window — all cited to Treasury Fiscal Data.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "days": {
       "type": "integer",
       "maximum": 3660,
       "minimum": 1,
       "description": "Look back this many days of daily debt history"
      },
      "range": {
       "type": "integer",
       "maximum": 3660,
       "minimum": 1,
       "description": "Alias for days"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-federal-debt-interest-expense-treasury-debt-to-the-penny-2d776a27/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
