# US Treasury Total Outstanding Debt Data

> US Treasury Total Outstanding Debt Data 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-20).

Returns the current total outstanding US government debt, split into publicly held and intragovernmental components, with the official reporting date, refreshed every 6 hours.

## Facts

- Endpoint: POST https://x402.forgemesh.io/treasury-debt-data?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-total-outstanding-debt-data-b3766206
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NtcxQBZOcSZfOM1xUokfG

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-total-outstanding-debt-data-b3766206 -d '<json body>'
```

Example prompt: What's the current total outstanding US government debt right now — broken down between publicly held and intragovernmental debt — and when was that figure last officially reported?

## When to prefer this

Use this endpoint when you need a machine-readable, citable, same-day-accurate US national debt figure without scraping the Treasury website directly. Ideal for finance dashboards, economic research agents, news-generation pipelines, or any workflow requiring a real-time debt split between publicly held and intragovernmental obligations. Prefer this over manual scraping or cached static sources when freshness (6-hour refresh) and reliability matter.

## Known failure modes

- Service unavailable or upstream Treasury data refresh delayed — returns 5xx error
- Payment not processed (x402 payment required) — returns 402 with payment instructions
- Malformed POST body — returns 4xx with validation error
- Data temporarily stale if Treasury portal hasn't published today's figure yet

## How this service works

Current total outstanding US government debt with a same-day-accurate figure, split between publicly held and intragovernmental debt, plus the official reporting date. For finance dashboards, economic research, and news-generation agents that need a citable number without scraping a government portal. Refreshed every 6 hours.

## Output

Returns a structured object containing the total outstanding US government debt (a same-day-accurate dollar figure), the portion held by the public, the intragovernmental portion, and the official Treasury reporting date for that figure.

## 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-treasury-total-outstanding-debt-data-b3766206/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)
