# US Treasury Yield Curve

> US Treasury Yield Curve is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Returns current US Treasury yields from 1-month to 30-year maturities with 1d/1w/1m/1y basis-point changes, 2s10s spread, inversion flag, and curve shape classification

## Facts

- Endpoint: GET https://saylorinnovations.com/api/rates/treasury-yields?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-yield-curve-6417e2d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hPI_Blryp41qIZfRqM2N2

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-6417e2d5
```

Example prompt: What does the US Treasury yield curve look like right now — give me all the maturities from 1-month to 30-year, how yields have shifted over the past day, week, month, and year in basis points, and tell me whether the curve is inverted.

## When to prefer this

Choose this endpoint when you need a comprehensive snapshot of the entire US Treasury yield curve in a single call, including multi-timeframe basis-point change history and the 2s10s inversion flag. It is ideal for macro monitoring dashboards, daily rate briefings, and inversion alert workflows where you need structured, analysis-ready data rather than scraping raw Treasury pages. Prefer it over general financial data APIs when you specifically need the 2s10s spread, inversion flag, and multi-horizon change data pre-calculated.

## Known failure modes

- Stale or missing data on weekends or market holidays when Treasury data is not published
- Upstream data source unavailability returning null source field
- Partial change data (e.g. 1y change null) when historical baseline is unavailable
- Payment failure or 402 rejection if USDC balance is insufficient
- Network timeout if the upstream data provider is slow to respond

## How this service works

US Treasury yield curve - 1 month to 30 year yields with 1d, 1w, 1m and 1y changes in basis points, 2s10s spread and inversion flag

## Output

A JSON object containing: the date of the data, yield percentages for each maturity (1M, 2M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), basis-point changes over 1-day, 1-week, 1-month, and 1-year periods, spreads in basis points (including 2s10s), an inversion flag, curve shape classification (e.g. normal, inverted, flat, humped), data source, and the timestamp the check was run.

## 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",
      "POST",
      "PUT",
      "PATCH",
      "DELETE",
      "HEAD"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "date",
      "yields_pct"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Date (YYYY-MM-DD)"
      },
      "note": {
       "description": "Caveat or context for reading the result"
      },
      "source": {
       "type": [
        "string",
        "null"
       ],
       "description": "Data source the values come from"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "spreads_bp": {
       "type": "object",
       "description": "Spreads bp"
      },
      "yields_pct": {
       "type": "object",
       "description": "Yields, as a percentage"
      },
      "curve_shape": {
       "type": [
        "string",
        "null"
       ],
       "description": "Curve shape"
      },
      "change_bp_1d": {
       "type": [
        "object",
        "null"
       ],
       "description": "Change bp 1d"
      },
      "change_bp_1m": {
       "type": [
        "object",
        "null"
       ],
       "description": "Change bp 1m"
      },
      "change_bp_1w": {
       "description": "Change bp 1w"
      },
      "change_bp_1y": {
       "type": [
        "object",
        "null"
       ],
       "description": "Change bp 1y"
      },
      "previous_date": {
       "type": [
        "string",
        "null"
       ],
       "description": "Previous date"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-yield-curve-6417e2d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
