# Blockchair Scraper — Blockchain Stats, Addresses & Transactions (`hipersoft/blockchair-stats-scraper`) Actor

Fetch on-chain blockchain data in bulk — network stats, addresses and transactions across Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash and more. One clean row per chain, address or transaction with prices, market caps, balances, fees and counts. For crypto analytics, dashboards and n8n.

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

## Pricing

from $0.0005 / item scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper — On-Chain Blockchain Stats, Addresses & Transactions

Blockchair Scraper pulls **on-chain blockchain data** — network stats, wallet addresses and transactions — as clean, structured records. Get network-wide numbers per chain (blocks, transactions, price, market cap, mempool, nodes), look up balances and activity for any address, or fetch the details of any transaction. Works across **Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash** and more. Export to JSON, CSV, Excel or XML. Fast and reliable for crypto analytics, dashboards, research and automation workflows.

### What does this blockchain scraper do?

Pick a **mode**, list the **chains** you care about, and it returns every matching record as structured data:

- **Stats** — network-wide on-chain stats for each chain: total blocks and transactions, current price and market cap, difficulty, 24h hashrate, mempool size and node count.
- **Address** — balance and activity for one or more addresses: current balance, total received and spent, and transaction count, looked up on each chain you list.
- **Transaction** — details for one or more transaction hashes: block, timestamp, fee, input/output counts and USD value.

### What data can you get?

| Mode | Fields |
| --- | --- |
| Stats | `chain`, `blocks`, `transactions`, `marketPriceUsd`, `marketCapUsd`, `difficulty`, `hashrate24h`, `mempoolTransactions`, `nodes` |
| Address | `chain`, `address`, `balance`, `received`, `spent`, `txCount`, `balanceUsd` |
| Transaction | `chain`, `hash`, `blockId`, `time`, `fee`, `inputCount`, `outputCount`, `valueUsd` |

### What you get

Each chain, address or transaction is one clean dataset record. Every row carries a `mode` field so you can tell them apart. Export the full table to JSON, CSV, Excel or XML, or pull it programmatically.

```json
{
  "mode": "stats",
  "chain": "bitcoin",
  "blocks": 965216,
  "transactions": 1430517655,
  "marketPriceUsd": 77099,
  "marketCapUsd": 1548049550377,
  "mempoolTransactions": 3046,
  "nodes": 278
}
```

### Use cases

- Track network health — blocks, transactions, mempool and node counts — on a dashboard.
- Pull live price and market cap per chain into an analytics or reporting pipeline.
- Monitor wallet balances and activity across multiple blockchains at once.
- Look up transaction fees, timestamps and USD values for accounting or research.
- Power a bot that reports on-chain metrics on a schedule.

### How to use the Blockchair Scraper

1. Add the Blockchair Scraper to your Apify account and open its input.
2. Choose a **mode**: stats, address or transaction.
3. List the **chains** to query (e.g. `bitcoin`, `ethereum`, `litecoin`).
4. For address mode add **addresses**; for transaction mode add **hashes**.
5. Click **Run**, then export the results as JSON, CSV, Excel or XML, or pull them via the Apify API.

### Input

```json
{
  "mode": "stats",
  "chains": ["bitcoin", "ethereum"]
}
```

| Field | Description |
| --- | --- |
| `mode` | `stats`, `address` or `transaction`. |
| `chains` | Blockchains to query, e.g. `["bitcoin","ethereum","litecoin"]`. |
| `addresses` | Addresses to look up in `address` mode (queried on every listed chain). |
| `hashes` | Transaction hashes to look up in `transaction` mode. |
| `delayMs` | Pause between requests (ms) to keep the run polite. |

### Tip: chaining modes

Start with `stats` to get a snapshot of each chain, then switch to `address` to watch specific wallets, or `transaction` to inspect individual transfers — reusing the same `chains` list each time.

### Output schema

Fields below are for the `stats` mode. The address and transaction modes return their own record shapes, and each row carries a `mode` field so you can tell them apart.

| Field | Type | Description |
| --- | --- | --- |
| `mode` | string | The mode that produced the record. |
| `chain` | string | Blockchain slug (e.g. `bitcoin`). |
| `blocks` | integer | Total blocks on the chain. |
| `transactions` | integer | Total transactions on the chain. |
| `marketPriceUsd` | number | Current coin price in USD. |
| `marketCapUsd` | number | Current market capitalisation in USD. |
| `difficulty` | number | Current mining difficulty. |
| `hashrate24h` | string | 24-hour average network hashrate. |
| `mempoolTransactions` | integer | Transactions currently in the mempool. |
| `nodes` | integer | Reachable network nodes. |

### Which chains are supported?

Major chains including **Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Dash, Zcash, Groestlcoin** and more. Just pass the lowercase, hyphenated slug (e.g. `bitcoin-cash`) in the `chains` list.

### Need more market & crypto data?

- [CoinGecko Scraper](https://apify.com/hipersoft/coingecko-scraper) — coin prices, market caps, tickers and market charts.
- [DefiLlama Scraper](https://apify.com/hipersoft/defillama-scraper) — DeFi protocols, TVL, yields, chains and stablecoins.
- [Binance Market Data Scraper](https://apify.com/hipersoft/binance-market-data-scraper) — prices, klines and order books.

### FAQ

**Which blockchains and data are covered?**
Network stats, address balances and transaction details across Bitcoin, Ethereum and many other chains. Pass any supported chain slug in the `chains` list.

**How do address and transaction modes handle multiple chains?**
Every address or hash you provide is looked up on each chain in the `chains` list, so you can compare the same target across networks in one run.

**What export formats are supported?**
JSON, CSV, Excel and XML, plus programmatic access through the Apify API.

**How does billing work?**
You pay per item you get, so cost scales with the number of records you actually collect. See the **Pricing** tab for current rates.

**Can I use this with n8n?**
Yes. Run the Blockchair Scraper from [n8n](https://n8n.io) with the Apify node — trigger a run, pass your `mode` and `chains`, and read the dataset items straight into your workflow. It also works with Make, Zapier and the Apify API.

**Can I connect this to other tools?**
The Blockchair Scraper connects with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Related Actors

- [CoinGecko Scraper](https://apify.com/hipersoft/coingecko-scraper)
- [DefiLlama Scraper](https://apify.com/hipersoft/defillama-scraper)
- [Binance Market Data Scraper](https://apify.com/hipersoft/binance-market-data-scraper)

### Notes

Original clean-room implementation. Reads only publicly available on-chain blockchain information. Not affiliated with, endorsed by or connected to Blockchair.

# Actor input Schema

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

What to fetch: stats (network-wide on-chain stats, one row per chain), address (balance and activity for one or more addresses), or transaction (details for one or more transaction hashes).

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

Blockchains to query, e.g. bitcoin, ethereum, litecoin, dogecoin, bitcoin-cash. In stats mode you get one row per chain. In address and transaction modes every address/hash is looked up on each chain listed here.

## `addresses` (type: `array`):

Wallet addresses to look up in address mode, e.g. 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa. Each address is queried on every chain in Chains. Ignored in other modes.

## `hashes` (type: `array`):

Transaction hashes to look up in transaction mode, e.g. 6dfb16dd580b7e626efc5b39069f6afe95a0244da3b1e37e909f470e5f74e37e. Each hash is queried on every chain in Chains. Ignored in other modes.

## `delayMs` (type: `integer`):

Pause between successive requests so the run stays polite to the upstream source. Increase this if you query many chains, addresses or hashes at once.

## Actor input object example

```json
{
  "mode": "stats",
  "chains": [
    "bitcoin",
    "ethereum"
  ],
  "addresses": [
    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
  ],
  "hashes": [
    "6dfb16dd580b7e626efc5b39069fe6afe95a0244da3b1e37e909f470e5f74e37e"
  ],
  "delayMs": 1200
}
```

# Actor output Schema

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

The results as dataset items.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/blockchair-stats-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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/blockchair-stats-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"
  ]
}' |
apify call hipersoft/blockchair-stats-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/blockchair-stats-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/ct0gZnp9QRgWSINkF/builds/WcrR6h8sdIHzpmhXF/openapi.json
