# US Treasury Par Yield Curve API

> US Treasury Par Yield Curve API is a paid API for AI agents from gateway.stride20k.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Returns the latest Daily Treasury Par Yield Curve with yields in percent for 13 maturities (1 month to 30 years) as published by the US Department of the Treasury

## Facts

- Endpoint: GET https://gateway.stride20k.com/rates/us-treasury?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-par-yield-curve-api-2281ca35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FK-u-WLZna1syrXYGWs7u

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-par-yield-curve-api-2281ca35
```

Example prompt: What are today's US Treasury par yields across all maturities — from 1 month out to 30 years — so I can use them as discount rates in my valuation model?

## When to prefer this

Choose this endpoint when you need the official, authoritative US Treasury par yield curve published by the US government — ideal for risk-free rate benchmarks, DCF discount rates, bond spread analysis, or macro interest rate signals. Prefer this over scraped or third-party yield data sources when government provenance and auditability matter. The 6-hour cache makes it practical for intraday use without repeated slow upstream fetches.

## Known failure modes

- Upstream Treasury site slow or unavailable — stale cache may be returned or upstream timeout error
- Treasury does not publish data on weekends/holidays — curveDate will reflect last business day
- Cache miss on cold start may result in ~10s response latency
- Non-2xx HTTP status if payment (x402) is not satisfied

## How this service works

US Treasury yield curve API: the latest Daily Treasury Par Yield Curve — yields in percent for 13 maturities from 1 month to 30 years, plus curve date, straight from the US Department of the Treasury. Public-domain government data, published each business day. Use for interest rate benchmarks, bond analysis, discount rates, and macro signals. Slow upstream (~10s) so served from a 6-hour cache; meta.fetchedAt shows when the curve was retrieved.

## Output

A JSON object with ok: true, plus a data object containing curveDate (YYYY-MM-DD business date), yieldsPct (par yields in percent keyed by maturity: 1M, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), and a meta object with the upstream source (US Treasury), a cached flag, and fetchedAt (ISO 8601 timestamp of last upstream fetch). Responses are cached up to 6 hours.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "series": "Daily Treasury Par Yield Curve Rates",
   "curveDate": "2026-07-02",
   "yieldsPct": {
    "1M": 3.7,
    "1Y": 3.96,
    "2Y": 4.14,
    "3M": 3.82,
    "5Y": 4.23,
    "6M": 3.98,
    "10Y": 4.49,
    "30Y": 4.98
   }
  },
  "meta": {
   "cached": false,
   "source": "US Treasury",
   "fetchedAt": "2026-07-04T00:00:00.000Z",
   "attribution": null
  },
  "endpoint": "/rates/us-treasury"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-par-yield-curve-api-2281ca35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.stride20k.com](https://www.zero.xyz/host/gateway.stride20k.com/llms.txt)
