# Gloom Datasets CPI Board

> Gloom Datasets CPI Board 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 US Consumer Price Index (CPI) components, their weights, and contributions to inflation

## Facts

- Endpoint: GET https://api.gloom.sh/v1/macro/cpi?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-datasets-cpi-board-f93b03a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_keBewgnPxqNHrn84KlQpe

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-datasets-cpi-board-f93b03a3
```

Example prompt: Can you pull up the latest US CPI board showing all the components, their weights, and how much each one is contributing to inflation right now?

## When to prefer this

Choose this endpoint when you need a structured, hierarchical breakdown of US CPI components with weights and contributions in a single call. Prefer it over scraping BLS.gov for machine-readable, agent-friendly JSON output. Best when you need decomposed inflation data (e.g. food, energy, shelter sub-categories) rather than just the headline CPI number.

## Known failure modes

- Invalid or missing API credentials returns 401 Unauthorized
- Payment not fulfilled (x402) returns 402 Payment Required
- Rate limit exceeded returns 429 Too Many Requests
- Service unavailability returns 503
- Data may lag BLS release schedule, returning stale figures if upstream not yet updated

## 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 CPI component objects, each containing a unique ID, BLS series code, hierarchy depth, human-readable label, month-over-month percent change, parent category reference, portfolio weight, derived flag, and annualized 3-month change. The top-level 'All items' entry is always pinned. Nested sub-components allow full decomposition of the CPI basket.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "all-items",
    "code": "SA0",
    "depth": 0,
    "label": "All items",
    "change": 0.1,
    "parent": null,
    "pinned": true,
    "weight": null,
    "derived": false,
    "annualized3m": null
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-datasets-cpi-board-f93b03a3/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)
