# Blockchair Multi-Chain Scraper - Bitcoin & Ethereum Stats (`ninhothedev/blockchair-scraper`) Actor

$0.5/1K 🔥 Blockchair multi-chain scraper! On-chain stats for Bitcoin, Ethereum & 15+ blockchains — price, txs, hashrate, mempool. No key. JSON, CSV, Excel or API in seconds. Power crypto dashboards ⚡

- **URL**: https://apify.com/ninhothedev/blockchair-scraper.md
- **Developed by:** [ninhothedev](https://apify.com/ninhothedev) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Blockchair Multi-Chain Scraper — Bitcoin, Ethereum & 15+ Blockchains

Get **live on-chain statistics for 15+ blockchains in one run** — Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Dash, Zcash, Monero, Cardano, XRP (Ripple), Stellar, Groestlcoin, Bitcoin SV, eCash and Mixin — as clean, flat rows you can drop straight into a dashboard, a spreadsheet or a database.

**No API key. No login. No wallet. No proxy required.** Point it at a list of chains and get one tidy row per chain with price, market cap, block height, 24h transaction counts, mempool state, hashrate, difficulty, average fees and total blockchain size.

***

### Why this actor

Most crypto scrapers give you *price only*. Prices are everywhere and free. What is genuinely hard to get in one clean shape is **network health data across many chains at once**: how many transactions actually settled in the last 24 hours, how big the mempool is right now, what a median fee costs, how fast the chain is growing on disk.

This actor returns **both** — market data *and* on-chain fundamentals — with identical field names for every chain, so Bitcoin and Ethereum rows line up in the same table even though the underlying Blockchair API returns different key names for each.

That normalization is the actual work here. Bitcoin returns `circulation` and `volume_24h` as integers. Ethereum returns `circulation_approximate` and `volume_24h_approximate` as 27-digit strings, drops `nodes` entirely, and encodes fees in wei as strings. This actor maps all of that into one consistent, numeric schema so you never write a per-chain special case again.

***

### What you get (one row per chain)

| Field | Description |
|---|---|
| `chain` | Chain slug, e.g. `bitcoin`, `ethereum` |
| `blocks` | Total blocks ever mined |
| `transactions` | Total transactions ever confirmed |
| `circulation` | Circulating supply in base units (satoshi / wei / …) |
| `blocks_24h` | Blocks produced in the last 24 hours |
| `transactions_24h` | Transactions confirmed in the last 24 hours |
| `volume_24h` | Transfer volume in the last 24 hours (base units) |
| `mempool_transactions` | Unconfirmed transactions waiting right now |
| `mempool_size` | Mempool size in bytes (where the chain exposes it) |
| `best_block_height` | Current chain tip height |
| `best_block_time` | Timestamp of the chain tip, ISO 8601 UTC |
| `blockchain_size_bytes` | Full blockchain size on disk, in bytes |
| `difficulty` | Current mining difficulty |
| `hashrate_24h` | 24h average network hashrate |
| `market_price_usd` | Current price in USD |
| `market_price_change_24h_pct` | 24h price change, percent |
| `market_cap_usd` | Market capitalization in USD |
| `market_dominance_pct` | Share of total crypto market cap |
| `nodes` | Reachable node count (where available) |
| `avg_tx_fee_24h` | Average transaction fee, 24h (base units) |
| `median_tx_fee_24h` | Median transaction fee, 24h (base units) |
| `source` | Always `blockchair` |
| `scraped_at` | ISO 8601 UTC timestamp of the scrape |

Every field is nullable. If a chain does not publish a metric (Ethereum has no `nodes`, proof-of-stake chains report `hashrate_24h` as `0`), you get `null` or `0` instead of a crash.

#### Sample output

```json
{
  "chain": "bitcoin",
  "blocks": 959969,
  "transactions": 1406322817,
  "circulation": 2006237416655096,
  "blocks_24h": 136,
  "transactions_24h": 630241,
  "volume_24h": 97162625699787,
  "mempool_transactions": 8809,
  "mempool_size": 48852711,
  "best_block_height": 959968,
  "best_block_time": "2026-07-28T11:46:35+00:00",
  "blockchain_size_bytes": 757409343087,
  "difficulty": 126231507121868.2,
  "hashrate_24h": 853795582383014403825,
  "market_price_usd": 63406,
  "market_price_change_24h_pct": -2.57742,
  "market_cap_usd": 1271511167291,
  "market_dominance_pct": 56.14,
  "nodes": 301,
  "avg_tx_fee_24h": 503,
  "median_tx_fee_24h": 71,
  "source": "blockchair",
  "scraped_at": "2026-07-28T11:52:14.462953+00:00"
}
```

***

### Input

```json
{
  "mode": "stats",
  "chains": ["bitcoin", "ethereum", "litecoin", "dogecoin"],
  "maxItems": 50
}
```

| Input | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `stats` | Currently one mode: `stats` — a current statistics snapshot per chain. |
| `chains` | array | `["bitcoin","ethereum","litecoin","dogecoin"]` | Chain slugs to scrape. One dataset row per chain. |
| `maxItems` | integer | `50` (max `500`) | Hard cap on dataset rows, i.e. on chains scraped. Use it as a cost ceiling. |

#### Supported chains

`bitcoin` · `ethereum` · `litecoin` · `dogecoin` · `bitcoin-cash` · `dash` · `zcash` · `monero` · `cardano` · `ripple` · `stellar` · `groestlcoin` · `bitcoin-sv` · `ecash` · `mixin`

Unknown slugs are attempted anyway and simply produce no row if Blockchair does not know them.

***

### Use cases

- **On-chain analytics** — track transaction throughput, mempool congestion and fee levels across chains over time. Schedule the actor hourly and you have your own multi-chain time series.
- **Crypto dashboards** — power a Grafana, Looker Studio, Retool or Google Sheets dashboard with one API-key-free feed covering price *and* network health.
- **Research** — compare chain fundamentals for a report or thesis: settlement volume per chain, cost per transaction, chain growth in bytes, supply and dominance.
- **Bots and alerting** — trigger a Slack, Telegram or Discord alert when the Bitcoin mempool spikes, fees jump, or a chain stops producing blocks.

***

### Pricing

Runs on the smallest 512 MB container and finishes in seconds. Expect roughly **$0.5 per 1,000 rows** in Apify platform usage — for a typical 15-chain run that is a fraction of a cent. There is no third-party API cost, because Blockchair's stats endpoint is free.

***

### Notes & limitations

- The free Blockchair API is **rate limited**. The actor deliberately waits between chains and retries with backoff. If you scrape many chains repeatedly from the same IP, space runs out rather than hammering.
- Base-unit fields (`circulation`, `volume_24h`, fees) are in each chain's smallest unit — satoshi for Bitcoin-like chains, wei for Ethereum. Divide accordingly.
- Data is a **snapshot at scrape time**, not history. Schedule the actor to build a time series.
- Datacenter-friendly: no residential proxy needed.

***

### Related actors

- [Mempool.space Scraper](https://apify.com/ninhothedev/mempool-space-scraper) — deep Bitcoin mempool, fee estimates and block data
- [Blockchain.info Scraper](https://apify.com/ninhothedev/blockchain-info-scraper) — Bitcoin addresses, transactions and wallet balances
- [CoinGecko Crypto Scraper](https://apify.com/ninhothedev/coingecko-crypto-scraper) — market prices, rankings and coin metadata
- [DexScreener Scraper](https://apify.com/ninhothedev/dexscreener-scraper) — DEX pairs, liquidity and on-chain token trading data

***

### Legal

This actor reads only **public, permissionless blockchain data** exposed by Blockchair's open API. It collects no personal data and requires no authentication. You are responsible for complying with Blockchair's terms of service and for using the output lawfully in your jurisdiction.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. 'stats' fetches the current on-chain statistics snapshot for every blockchain you list and returns exactly one row per chain.

## `chains` (type: `array`):

Blockchair chain slugs to scrape. Supported: bitcoin, ethereum, litecoin, dogecoin, bitcoin-cash, dash, zcash, monero, cardano, ripple, stellar, groestlcoin, bitcoin-sv, ecash, mixin. One dataset row is produced per chain.

## `maxItems` (type: `integer`):

Maximum number of dataset rows (i.e. blockchains) to scrape. Use it as a hard cost cap; extra chains beyond this limit are skipped.

## Actor input object example

```json
{
  "mode": "stats",
  "chains": [
    "bitcoin",
    "ethereum",
    "litecoin",
    "dogecoin"
  ],
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "chains": [
        "bitcoin",
        "ethereum",
        "litecoin",
        "dogecoin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/blockchair-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "chains": [
        "bitcoin",
        "ethereum",
        "litecoin",
        "dogecoin",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/blockchair-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "chains": [
    "bitcoin",
    "ethereum",
    "litecoin",
    "dogecoin"
  ]
}' |
apify call ninhothedev/blockchair-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ninhothedev/blockchair-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/irSxiMqhS2PKK37lH/builds/V5bho8hJdZ3m9OGgd/openapi.json
