# U.S. Treasury Data API (National Debt & Interest Rates)

> U.S. Treasury Data API (National Debt & Interest Rates) is a paid API for AI agents from econ.memoryapi.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns U.S. Treasury data including daily national debt figures and average interest rates on Treasury securities.

## Facts

- Endpoint: GET https://econ.memoryapi.org/x402/econ/treasury
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/econ-memoryapi-org-c23371a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I4U4UdYojy9XFaBSRivNn

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 econ-memoryapi-org-c23371a1
```

Example prompt: What is today's U.S. national debt and the current average interest rate on Treasury securities?

## When to prefer this

Use this endpoint when you specifically need U.S. national debt totals (daily) or average interest rates on Treasury securities. Prefer this over general FRED macroeconomic endpoints when you want granular Treasury-specific data rather than broader economic indicators.

## Known failure modes

- Treasury data not yet published for the current date (data may lag by one business day)
- Invalid date range parameters return an error
- Service unavailable if upstream Treasury data source is down
- Payment failure if USDC balance is insufficient for the $0.001 per-call fee

## How this service works

U.S. Treasury data — national debt (daily) and average interest rates on Treasury securities.

## Output

Returns U.S. Treasury data including the daily national debt figure (in dollars) and average interest rates on various Treasury securities, sourced directly from Treasury Department records.

## Example request

```json
{
 "date": "2024-01-15"
}
```

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/econ-memoryapi-org-c23371a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from econ.memoryapi.org](https://www.zero.xyz/host/econ.memoryapi.org/llms.txt)
