# US Treasury Debt to the Penny API (x402)

> US Treasury Debt to the Penny API (x402) is a paid API for AI agents from x402-v2-mint-treasury-debt-to-penny.vercel.app, paid per call via x402, $0.020137/call, status unknown (last checked 2026-12-03).

Fetches US Treasury FiscalData 'Debt to the Penny' records with optional filtering, sorting, and pagination via a paid keyless endpoint.

## Facts

- Endpoint: POST https://x402-v2-mint-treasury-debt-to-penny.vercel.app/v1/treasury-debt-to-penny?utm_source=zero.xyz
- Price: $0.020137/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-debt-to-the-penny-api-x402-a099c1f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jFQpbwVIWZskBjv3QV13X

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-treasury-debt-to-the-penny-api-x402-a099c1f8 -d '<json body>'
```

Example prompt: Pull the 10 most recent US Treasury 'Debt to the Penny' records, sorted by record date descending, so I can see the latest national debt figures.

## When to prefer this

Choose this endpoint when you need keyless, pay-per-call access to US Treasury FiscalData's Debt to the Penny dataset without managing API keys or subscriptions. It is ideal for agents that infrequently query national debt figures and prefer micropayment-based access. Prefer it over direct FiscalData calls when you want zero credential management and built-in x402 payment rail integration.

## Known failure modes

- Empty or malformed request body returns HTTP 400 and no charge is applied
- Invalid filter expression syntax may return an error from the underlying FiscalData API
- Limit exceeding 100 returns a validation error
- Sort field not recognized by FiscalData API returns an upstream error
- Network timeout from the underlying Treasury API results in a 5xx response

## How this service works

US Treasury FiscalData Debt to the Penny (keyless). POST {limit?}/{sort?}/{filter?}. Empty -> 400 not charged. Distinct treasury fiscal lane — disclose usaspending adjacency.

## Output

Returns a JSON object with ok:true, the skill name 'treasury-debt-to-penny', a charged flag, and a summary field. The payload contains US Treasury FiscalData records showing total public debt outstanding broken into debt held by the public and intragovernmental holdings, with fiscal dates and exact cent-level figures.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort": {
   "type": "string",
   "maxLength": 80
  },
  "limit": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1
  },
  "filter": {
   "type": "string",
   "maxLength": 200
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "treasury-debt-to-penny",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-debt-to-the-penny-api-x402-a099c1f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-treasury-debt-to-penny.vercel.app](https://www.zero.xyz/host/x402-v2-mint-treasury-debt-to-penny.vercel.app/llms.txt)
