# US Treasury Total Public Debt Status

> US Treasury Total Public Debt Status is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the latest stored total US public debt value

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/treasury-debt/status
- 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-treasury-total-public-debt-status-6dad2ed8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C8YbNvQvWPOhNhxM5e-I9

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-public-debt-status-6dad2ed8
```

Example prompt: What is the latest total US public debt figure stored in the Treasury debt oracle — just give me the current value and its observation date.

## When to prefer this

Use this endpoint when you need the latest total US public debt figure quickly and cheaply, especially in an automated or agent workflow that already handles x402 micropayments. Prefer this over scraping Treasury.gov directly when you want a clean, structured JSON response without parsing HTML. Best suited for dashboards, macroeconomic monitoring agents, or compliance tools that track fiscal metrics.

## Known failure modes

- Entity ID not found — returns empty or 404-like response if an invalid entityId is supplied
- Stale data — the stored value may lag real Treasury publications by hours or days
- Service unavailable — Railway-hosted service may be temporarily down
- Payment failure — x402 micropayment of $0.01 USDC not accepted, blocking access

## How this service works

Stored latest total US public debt value.

## Output

Returns the most recently stored total US public debt value, including the debt amount and associated observation/reporting date for the latest data point.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string",
       "description": "entityId to look up; omit to list tracked entities"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "entity": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-total-public-debt-status-6dad2ed8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
