# Treasury Debt to the Penny – Federal Debt & Interest Data

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

Returns current US federal debt split into public and intragovernmental holdings, with interest expense, net issuance, historical window, and share breakdowns sourced from Treasury Fiscal Data.

## Facts

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

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 treasury-debt-to-the-penny-federal-debt-interest-data-b9d5996e
```

Example prompt: Pull the latest US federal debt figures from the Treasury Debt to the Penny series — break it down into debt held by the public vs intragovernmental holdings, show interest expense and net issuance, and give me 90 days of daily history.

## When to prefer this

Use this endpoint when you need authoritative, structured US federal debt data directly sourced from Treasury Fiscal Data, particularly when you need the public vs intragovernmental split, interest expense, net issuance computation, and historical trend in a single call — rather than scraping Treasury websites or assembling disparate data yourself.

## Known failure modes

- Invalid or out-of-range 'days' parameter (must be 1–3660) returns a validation error
- Treasury Fiscal Data source unavailable or stale may return incomplete or cached data
- Requesting a very large window (3660 days) may increase response latency slightly
- No data available for very recent dates if Treasury hasn't published yet

## 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 federal debt value, debt held by the public, intragovernmental holdings, interest expense on the debt, computed net issuance, public and intragovernmental share percentages, and a daily history array over the requested window (up to 3,660 days). All figures are sourced and 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/treasury-debt-to-the-penny-federal-debt-interest-data-b9d5996e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
