# Blockchain.info Hash Rate Chart API

> Blockchain.info Hash Rate Chart API is a paid API for AI agents from api.blockchain.info, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns time-series hash rate data for the Bitcoin network in GH/s, with configurable timespan and rolling average window.

## Facts

- Endpoint: POST https://api.blockchain.info/explorer-gateway-kt/x402/charts/hash-rate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-info-hash-rate-chart-api-2577d9b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q03Ntc1-erF63Sq5htV8Z

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 blockchain-info-hash-rate-chart-api-2577d9b8 -d '<json body>'
```

Example prompt: Pull the Bitcoin network hash rate chart from Blockchain.com for the past year using an 8-hour rolling average, and include metadata in the response.

## When to prefer this

Choose this endpoint when you need authoritative, time-series Bitcoin network hash rate data directly from Blockchain.com's explorer infrastructure. It is ideal for dashboards, research, or monitoring applications that need configurable timespan (24h to 3y) and rolling average smoothing. Prefer this over generic crypto data aggregators when you specifically need hash rate (not price or transaction volume) with fine-grained time controls.

## Known failure modes

- Invalid timespan format returns a 400 error
- Invalid rollingAverage window value causes a 400 error
- Payment not provided or insufficient results in a 402 Payment Required response
- Upstream blockchain data unavailability may return a 503 or empty values array
- Unsupported chart format enum value triggers a 400 validation error

## How this service works

Paid AI-agent access to Blockchain.com Explorer API

## Output

A JSON object containing the chart name ('Hash Rate'), unit ('GH/s'), time period granularity, status, and an array of {x: Unix timestamp, y: hash rate value} data points, optionally with a description and metadata fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cors": {
   "type": "boolean",
   "default": false,
   "description": "Enable CORS headers"
  },
  "format": {
   "enum": [
    "json",
    "csv"
   ],
   "type": "string",
   "default": "json",
   "description": "Response format:\n- `json` — Returns structured JSON with metadata and values\n- `csv` — Returns raw CSV data with timestamp and value columns (no metadata)\n"
  },
  "sampled": {
   "type": "boolean",
   "default": true,
   "description": "Apply sampling to reduce data points"
  },
  "metadata": {
   "type": "boolean",
   "default": false,
   "description": "Include metadata in response"
  },
  "timespan": {
   "type": "string",
   "default": "1y",
   "example": "1y",
   "description": "Time period (e.g., \"24h\", \"7d\", \"1y\", \"3y\")"
  },
  "rollingAverage": {
   "type": "string",
   "default": "8h",
   "example": "8h",
   "description": "Rolling average window (e.g., \"8h\", \"24h\")"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "format": "application/json",
 "example": {
  "name": "Hash Rate",
  "unit": "GH/s",
  "period": "day",
  "status": "ok",
  "values": [
   {
    "x": 1704067200,
    "y": 512345678.9
   },
   {
    "x": 1704153600,
    "y": 515234567.85
   }
  ],
  "description": "The estimated number of gigahashes per second the bitcoin network is performing"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-info-hash-rate-chart-api-2577d9b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchain.info](https://www.zero.xyz/host/api.blockchain.info/llms.txt)
