# US Treasury Yield Curve API

> US Treasury Yield Curve API is a paid API for AI agents from api.ssh.autos, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-14).

Returns US Treasury nominal yield curve data and 2s10s spread for the latest ten trading days, filterable by year and maturity

## Facts

- Endpoint: POST https://api.ssh.autos/v1/us/treasury/yield-curve?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-yield-curve-api-47430c8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZUnopYd6uyrHWLb8NRs7K

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-api-47430c8e -d '<json body>'
```

Example prompt: Pull the latest US Treasury yield curve data for 2024, showing the 2-year and 10-year maturities over the last 5 days so I can check whether the curve is still inverted.

## When to prefer this

Use this endpoint when you need recent US Treasury nominal yield curve data or the 2s10s spread for macroeconomic analysis, bond market monitoring, or financial reporting. It is best suited for near-real-time queries covering the last 10 trading days. Prefer it over building your own Treasury data scraper or when you need a low-cost ($0.01/call), structured, ready-to-use yield data feed.

## Known failure modes

- Empty records returned if no data exists for the specified year or date range (status: succeeded_empty)
- Invalid maturity string values cause validation errors
- maxResults exceeding 10 is rejected
- Year below 1990 is rejected as out of range
- More than 13 maturities requested triggers schema validation error

## How this service works

Live web and public-record data: marketplaces, real estate, social media, job listings, company registries and government tenders. Pay per call in USDC over x402 with no account, subscribe on the Apify Store, or buy a finished, sourced report.

## Output

A JSON object containing an array of yield curve records (date, maturity rates) and a summary object with status and record count. Each record includes nominal Treasury yields for the requested maturities and the 2s10s spread. Up to 10 records returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "year": {
   "type": "integer",
   "title": "Year",
   "minimum": 1990
  },
  "maturities": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Maturities",
   "maxItems": 13
  },
  "maxResults": {
   "type": "integer",
   "title": "Maxresults",
   "default": 5,
   "maximum": 10,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "records": [],
  "summary": {
   "status": "succeeded_empty",
   "records": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-yield-curve-api-47430c8e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ssh.autos](https://www.zero.xyz/host/api.ssh.autos/llms.txt)
