# Blockchain.com Explorer Gateway — Bitcoin Hash Rate Chart

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

Returns historical Bitcoin network hash rate data as a time series, with configurable timespan and rolling average window

## Facts

- Endpoint: POST https://api.blockchain.com/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-com-explorer-gateway-bitcoin-hash-rate-chart-9e7b278b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VuJbnVVHpdboU1byrVkO5

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-com-explorer-gateway-bitcoin-hash-rate-chart-9e7b278b -d '<json body>'
```

Example prompt: Pull me the Bitcoin network hash rate chart for the last year from Blockchain.com, using an 8-hour rolling average and daily sampling.

## When to prefer this

Use this endpoint when you need historical Bitcoin network hash rate data with flexible time ranges and rolling average smoothing, served via a micropayment (x402) model. Prefer over free alternatives when you need reliable uptime, programmatic access, and Blockchain.com's authoritative dataset. Best for dashboards, research, and monitoring workflows that need periodic hash rate pulls.

## Known failure modes

- Invalid timespan format returns an error (e.g. unsupported string like '2w')
- Invalid rolling average window string causes a parameter error
- Payment failure (x402) if USDC balance is insufficient
- Empty or sparse result set if sampled=true reduces points too aggressively for short timespans
- Network timeout for very large date ranges without sampling

## How this service works

Blockchain explorer gateway — Solana, Bitcoin, Bitcoin Cash, Ethereum

## Output

A JSON object containing the chart name ('Hash Rate'), unit ('GH/s'), period granularity, status, and an array of {x: Unix timestamp, y: hash rate value} data points, plus an optional 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-com-explorer-gateway-bitcoin-hash-rate-chart-9e7b278b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchain.com](https://www.zero.xyz/host/api.blockchain.com/llms.txt)
