# Glassnode Difficulty Ribbon Compression

> Glassnode Difficulty Ribbon Compression is a paid API for AI agents from x402.glassnode.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns the Difficulty Ribbon Compression metric for Bitcoin, a normalized standard deviation measuring how compressed the mining difficulty ribbon is as a market indicator.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/indicators/difficulty_ribbon_compression
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glassnode-difficulty-ribbon-compression-9ce58a5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oFHiZAqsJjyGmph1LybLY

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 glassnode-difficulty-ribbon-compression-9ce58a5b
```

Example prompt: Pull the latest Difficulty Ribbon Compression data for Bitcoin from Glassnode in JSON format at daily resolution so I can see whether the ribbon is currently compressed.

## When to prefer this

Use this endpoint when you need the specific Difficulty Ribbon Compression metric from Glassnode for Bitcoin — particularly for assessing miner stress, identifying potential market bottoms, or quantifying how compressed the mining difficulty ribbon is over time. Prefer this over generic price feeds or other on-chain metrics when your analysis specifically requires the normalized spread of the difficulty ribbon.

## Known failure modes

- Missing required 'a' query parameter (asset symbol) returns a 400 error
- Invalid asset symbol (non-BTC value) rejected since only 'BTC' is supported
- Payment not included or insufficient USDC causes a 402 Payment Required response
- Invalid format parameter returns an error or defaults to JSON
- Service unavailability or upstream Glassnode data delay returns a 5xx error

## How this service works

Difficulty Ribbon Compression — Difficulty Ribbon Compression is a market indicator that uses a normalized standard deviation to quantify compression of the Difficulty Ribbon. Data by Glassnode.

## Output

An array of time-series data points, each containing a Unix timestamp (t) and the corresponding Difficulty Ribbon Compression value (v), representing the normalized standard deviation of the Bitcoin difficulty ribbon over time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "enum": [
        "BTC"
       ],
       "type": "string",
       "description": "Asset symbol, e.g. BTC, ETH"
      },
      "c": {
       "enum": [
        "native"
       ],
       "type": "string",
       "description": "Currency for denominated values, e.g. usd, native"
      },
      "f": {
       "enum": [
        "csv",
        "json"
       ],
       "type": "string",
       "description": "Response format: json or csv"
      },
      "i": {
       "enum": [
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "t": {
        "type": "number"
       },
       "v": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-difficulty-ribbon-compression-9ce58a5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.glassnode.com](https://www.zero.xyz/host/x402.glassnode.com/llms.txt)
