# US Debt to the Penny API

> US Debt to the Penny API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-16).

Returns the latest US total public debt outstanding to the penny, including record date and the debt-held-by-public vs intragovernmental split, as JSON.

## Facts

- Endpoint: POST https://x402.forgemesh.io/us-debt-to-the-penny?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-debt-to-the-penny-api-c93d101d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vbVfUGV-jAPCMT-_QePbC

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

Example prompt: What's the current US national debt to the penny, and can you break it down into how much is held by the public versus intragovernmental?

## When to prefer this

Use this endpoint when you need the official, authoritative US national debt figure to the penny with a public vs intragovernmental breakdown, sourced from US Treasury data. Prefer this over scraped or estimated sources for macro reporting, fiscal analysis, content generation about US debt, or any use case requiring the precise official daily figure.

## Known failure modes

- Treasury data source temporarily unavailable — upstream data feed error
- Rate limiting or payment failure — 402 payment required or insufficient USDC balance
- Malformed request body — endpoint expects a valid POST with JSON body type even if body is empty
- Stale data — if Treasury hasn't published a new figure (e.g. weekend/holiday), the most recent available date is returned

## How this service works

US national debt API: the latest total public debt outstanding, to the penny, with record date and debt-held-by-public vs intragovernmental split, as JSON. Official daily figure for macro, fiscal, and content agents.

## Output

A JSON object containing the total US public debt outstanding to the penny, the record date of the figure, the amount of debt held by the public, and the intragovernmental debt amount — all as official daily Treasury 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "data": [
    {
     "record_date": "2026-07-13",
     "tot_pub_debt_out_amt": "38412345678901.23"
    }
   ]
  }
 }
}
```

## More

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