# Gloom CDS Indexes API

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

Retrieves current credit default swap (CDS) index data including spread levels, daily changes, and contract details for indexes like CDX IG.

## Facts

- Endpoint: GET https://api.gloom.sh/v1/cds/indexes?utm_source=zero.xyz
- Price: $1.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gloom-cds-indexes-api-b2001ed8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q5r_W13HEQCTYfhwkq_Uk

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-cds-indexes-api-b2001ed8
```

Example prompt: Can you pull the latest CDS index data from Gloom — I want to see the current CDX IG spread level, today's change, and the maturity date?

## When to prefer this

Choose this endpoint when you need structured, programmatic access to CDS index spread data (especially CDX IG) for credit market analysis, risk monitoring, or fixed income research. Prefer over manual data sources or Bloomberg terminals when you need machine-readable credit derivative index data in a lightweight API format with per-call micropayment pricing.

## Known failure modes

- Invalid or unsupported properties filter returns empty data array
- Payment failure (402) if USDC payment not included or insufficient
- Rate limiting or service unavailability returns 5xx error
- Stale or delayed data if market feed is lagging

## 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 a JSON array of CDS index entries, each containing index ID (e.g. 'IG'), name (e.g. 'CDX IG'), current spread level, quote type, date, 1-day change, coupon in basis points, currency, and maturity date.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "IG",
    "date": "2026-10-07",
    "name": "CDX IG",
    "level": 58.73,
    "quote": "spread",
    "prints": 413,
    "change1D": 0.77,
    "couponBp": 100,
    "currency": "USD",
    "maturity": "2031-12-20"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-cds-indexes-api-b2001ed8/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)
