# Bitcoin Node Diversity & Network Stats

> Bitcoin Node Diversity & Network Stats is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-21).

Returns a snapshot of reachable Bitcoin nodes from bitnodes.io: total count, breakdown by network type, top client versions, top ASNs, and countries of the top 100 leaderboard nodes.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/btc-node-diversity?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-node-diversity-network-stats-99dde708
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bxDxWjL6dm2VKUJm2vEPX

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 bitcoin-node-diversity-network-stats-99dde708
```

Example prompt: Give me the latest Bitcoin node diversity snapshot — how many nodes are reachable, how they break down by network (Tor, IPv4, IPv6, I2P, cjdns), which client versions dominate, the top ASNs, and what countries the top 100 leaderboard nodes are in. Show me the top 15 client versions and countries.

## When to prefer this

Use this endpoint when you need a quick, structured summary of Bitcoin node network diversity — including network-type breakdown, client version distribution, and ASN concentration — sourced from the authoritative bitnodes.io snapshot. Prefer this over scraping bitnodes.io directly or using raw blockchain APIs that don't aggregate node statistics. Ideal for dashboards, network health checks, or decentralization research.

## Known failure modes

- bitnodes.io snapshot unavailable or stale — may return outdated data
- limit parameter out of range (must be 1-20) returns validation error
- upstream bitnodes.io API rate-limited or down — endpoint returns error
- Empty or partial response if bitnodes snapshot is being refreshed

## How this service works

Reachable Bitcoin nodes from the latest bitnodes.io snapshot: total, breakdown by network (Tor, IPv4, IPv6, I2P, cjdns), top client versions with network share %, top networks/ASNs by node count, and the countries of the 100 best-ranked leaderboard nodes (a ranked sample, not all nodes).

## Output

Returns a JSON object containing: total count of reachable Bitcoin nodes, a breakdown by network type (Tor, IPv4, IPv6, I2P, cjdns) with counts and percentages, a list of top client versions with their share of the network, top networks/ASNs ranked by node count, and a list of countries where the top 100 leaderboard nodes are located. The `limit` parameter controls how many items appear in the top client versions and countries lists (default 10, max 20).

## 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": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Maximum items in top user agents and countries lists (1-20, default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-node-diversity-network-stats-99dde708/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
