# Bitcoin Network Statistics API

> Bitcoin Network Statistics API is a paid API for AI agents from api.web3identity.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns live Bitcoin network statistics including hashrate, difficulty, block height, average block time, and mempool size

## Facts

- Endpoint: GET https://api.web3identity.com/api/bitcoin/stats
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-web3identity-com-ed77bc83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vfcHr3kRylMPuG1XpGM0Q

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 api-web3identity-com-ed77bc83
```

Example prompt: What are the current Bitcoin network stats — hashrate, difficulty, block height, and mempool size right now?

## When to prefer this

Use this endpoint when you need a quick, aggregated snapshot of Bitcoin network health — especially hashrate, difficulty, and mempool — without running your own Bitcoin node or querying a block explorer manually. Ideal for dashboards, trading bots, or any workflow that needs current on-chain network conditions.

## Known failure modes

- Network or upstream data source unavailable — 5xx error
- Payment not completed — 402 Payment Required if x402 payment header is missing or insufficient
- Rate limiting — 429 if too many requests in a short window
- Stale data if upstream Bitcoin node is out of sync

## How this service works

Bitcoin network statistics including hashrate, difficulty, and blocks

## Output

Returns a JSON object with current Bitcoin network metrics: hashrate (TH/s or similar unit), mining difficulty, current block height, average block time in seconds, and mempool transaction count or size.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "mempool": {
       "type": "number"
      },
      "hashrate": {
       "type": "number"
      },
      "difficulty": {
       "type": "number"
      },
      "blockHeight": {
       "type": "number"
      },
      "avgBlockTime": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-web3identity-com-ed77bc83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.web3identity.com](https://www.zero.xyz/host/api.web3identity.com/llms.txt)
