# Gloom Yield Curves API

> Gloom Yield Curves API is a paid API for AI agents from api.gloom.sh, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-01).

Returns current and historical yield curve data (par yields by tenor) for sovereign bond markets such as US Treasuries.

## Facts

- Endpoint: GET https://api.gloom.sh/v1/yield-curves?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gloom-yield-curves-api-d3fbb087
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dts6vFm7Se5qEKqNW-pfk

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 gloom-yield-curves-api-d3fbb087
```

Example prompt: Can you pull the current US Treasury par yield curve from Gloom, including all available tenor points like 1-month through 30-year, so I can see where rates are sitting today?

## When to prefer this

Choose this endpoint when you need structured, machine-readable sovereign yield curve data with multiple tenor points in a single call. It is ideal for fixed income analysis, macro research, or any use case requiring par yield data across maturities. Prefer this over scraping Treasury websites or using general financial data APIs when you want a simple, pay-per-call REST interface with no subscription required.

## Known failure modes

- Invalid or unsupported curve ID returns empty data array
- Network timeout or upstream data unavailability returns 5xx error
- Payment not received results in 402 Payment Required response
- Malformed query parameters may return 400 Bad Request
- Data may lag real-time by up to 24 hours depending on source refresh

## How this service works

Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.

## Output

Returns an array of yield curve objects, each containing a curve ID (e.g. 'us'), basis type (e.g. 'par'), label, country, coupons-per-year, an as-of date, and an array of tenor/yield point pairs (e.g. 1M at 4.04%). Also includes a previous curve snapshot and a checkedAt timestamp.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "asOf": "2026-09-29",
    "curve": {
     "id": "us",
     "basis": "par",
     "label": "US Treasury",
     "country": "US",
     "couponsPerYear": 2
    },
    "points": [
     {
      "tenor": "1M",
      "years": 0.0833333333333,
      "yield": 4.04
     }
    ],
    "previous": null,
    "checkedAt": "2026-09-30T12:00:00.000Z"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-yield-curves-api-d3fbb087/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gloom.sh](https://www.zero.xyz/host/api.gloom.sh/llms.txt)
