# US Treasury Yield Curve

> US Treasury Yield Curve is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Fetches the current or historical US Treasury yield curve with rates for multiple maturities (1-month through 30-year)

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/treasury-yield-curve?utm_source=zero.xyz
- Price: $0.002/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-yield-curve-2c3bcf03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q_EIzxFjxGLTi49b1S8oM

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-yield-curve-2c3bcf03
```

Example prompt: Pull today's US Treasury yield curve for me — I want to see the rates from the 1-month bill all the way out to the 30-year bond.

## When to prefer this

Choose this endpoint when you need US Treasury yield curve data across multiple maturities in a single call without setting up accounts or API keys. Ideal for AI agents needing risk-free rate data for financial modeling, bond pricing, or macro analysis, paid per-call in USDC with no subscription overhead.

## Known failure modes

- Invalid or future date requested — may return empty or error
- Date with no treasury data (e.g. weekend/holiday) — may return null or nearest available date
- Service unavailable — HTTP 5xx from upstream data source
- Payment failure — x402 payment not processed correctly, returns 402

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

A JSON object with the date of the yield curve and a 'curve' object mapping maturity labels (e.g. '1 Mo', '10 Yr', '30 Yr') to their corresponding yield rates as decimal percentages.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "10/23/2026",
  "curve": {
   "1 Mo": 4.11,
   "10 Yr": 5,
   "30 Yr": 5.33
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-yield-curve-2c3bcf03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
