# US Treasury Debt History Lookup

> US Treasury Debt History Lookup is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.013/call, status unknown (last checked 2026-10-31).

Returns historical US Treasury debt data for a specified number of past days, accessible via x402 micropayment.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/treasury/debt?utm_source=zero.xyz
- Price: $0.013/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-debt-history-lookup-83e4717d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZLcCxOpIQjWnDRszZ_HRr

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-history-lookup-83e4717d
```

Example prompt: Can you pull the US Treasury debt history for the last 90 days so I can see how the national debt has been trending recently?

## When to prefer this

Choose this endpoint when you need historical US Treasury debt data on a day-by-day basis and are operating in an x402 micropayment-enabled agent context where USDC payments are supported. It is particularly useful for financial research, macroeconomic analysis, or monitoring government debt trends over a configurable lookback window of up to 10 years.

## Known failure modes

- Invalid 'days' value outside 1-3660 range returns a validation error
- Missing required 'input' object causes a 400-level error
- Payment not completed or insufficient USDC triggers a 402 Payment Required response
- Server unavailable or upstream Treasury data source unreachable returns a 5xx error

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with a success flag and a result object containing historical US Treasury debt figures, likely as a time series of daily debt values over the requested lookback period.

## 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",
     "required": [],
     "properties": {
      "days": {
       "type": "integer",
       "default": null,
       "maximum": 3660,
       "minimum": 1,
       "description": "Look back this many days of daily debt history"
      },
      "range": {
       "type": "integer",
       "default": null,
       "maximum": 3660,
       "minimum": 1,
       "description": "Alias for days"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-debt-history-lookup-83e4717d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
