# US Treasury Public Debt Brief (LLM Digest)

> US Treasury Public Debt Brief (LLM Digest) is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Returns an LLM-written narrative digest summarizing recent movement in total US public debt over a configurable time window.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/treasury-debt/brief
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-public-debt-brief-llm-digest-fb6589db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pxig2ec-nDD8NV9WqAiGm

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-public-debt-brief-llm-digest-fb6589db
```

Example prompt: Give me an LLM-written summary of how total US public debt has moved since January 1, 2025.

## When to prefer this

Choose this endpoint when you need a human-readable, narrative summary of US public debt trends rather than raw data points. It is ideal for briefings, reports, or conversational responses where a polished LLM-written digest is more useful than structured numbers. Use the sibling raw-data endpoint if you need precise values for programmatic analysis.

## Known failure modes

- No data points in the requested window — may return a brief based on zero changes or an empty/minimal response
- Invalid 'since' date-time format returns a validation error
- Payment not provided or insufficient ($0.25 USDC required) — 402 Payment Required response
- Upstream Treasury data unavailable — may result in stale or missing digest
- LLM generation failure may fall back to template-generated brief

## How this service works

An LLM-written digest of recent movement in total US public debt.

## Output

Returns a JSON object containing a 'brief' field with a natural-language LLM-generated narrative about recent US public debt movements, along with 'basedOnChanges' (the number of data points analyzed) and 'generatedBy' indicating whether the summary was produced by an LLM or a template.

## 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": {
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Window start (default: last 30 days)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "brief": {
       "type": "string"
      },
      "generatedBy": {
       "enum": [
        "llm",
        "template"
       ],
       "type": "string"
      },
      "basedOnChanges": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-public-debt-brief-llm-digest-fb6589db/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)
