Mempool Scraper avatar

Mempool Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Mempool Scraper

Mempool Scraper

Scrape Bitcoin blockchain data from Mempool.space - address balances, transactions, block details, mempool statistics, mining hashrate, fee estimates, and historical BTC price. No API key required.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Share

Mempool.space Bitcoin Blockchain Scraper

Extract Bitcoin blockchain data from Mempool.space — the leading open-source Bitcoin explorer. No API key or authentication required. Retrieve address balances, full transaction histories, block details, real-time mempool statistics, mining hashrate, fee estimates, and historical BTC price data.

What can this scraper do?

  • Address balance & stats — confirmed balance, transaction count, funded/spent satoshis, unconfirmed mempool activity
  • Transaction history — paginated list of all transactions for any Bitcoin address (legacy, P2SH, Bech32)
  • Transaction details — inputs, outputs, fees, size, weight, confirmation status for any txid
  • Block details — full metadata for any block by hash or height: timestamp, tx count, size, weight, miner pool, fees, difficulty
  • Recent blocks — live feed of the most recently mined Bitcoin blocks
  • Mempool statistics — current mempool size, vsize, fee histogram, and all fee tiers (fastest, half-hour, hour, economy, minimum)
  • Mining stats — hashrate history over configurable intervals + next difficulty adjustment estimate
  • Historical BTC price — full daily price series in USD, EUR, GBP, CAD, CHF, AUD, or JPY

Input

FieldTypeDescription
modeselectWhat to fetch. See modes below.
addressesstring[]Bitcoin addresses (modes: addressInfo, addressTransactions)
txidsstring[]Transaction IDs — 64-char hex (mode: transactionInfo)
blockIdentifiersstring[]Block hashes or heights (mode: blockInfo)
currencyselectFiat currency for price history: USD, EUR, GBP, CAD, CHF, AUD, JPY
hashrateIntervalselectHashrate history window: 1m, 3m, 6m, 1y, 2y, 3y, all
maxItemsintegerMax records to emit (1–500, default 50)

Modes

ModeDescriptionRequired input
mempoolStatsMempool state + fee estimatesNone
addressInfoAddress balance and chain statsaddresses
addressTransactionsFull transaction history for addressesaddresses
transactionInfoTransaction details by txidtxids
blockInfoBlock metadata by hash or heightblockIdentifiers
recentBlocksList of recently mined blocksNone
miningStatsHashrate history + difficulty adjustmentNone
priceHistoryHistorical daily BTC priceNone

Output

Output schema varies by mode. All records include a scrapedAt ISO timestamp.

mempoolStats

{
"count": 12453,
"vsize": 8241563,
"totalFeesSats": 18394210,
"fastestFeeSatPerVbyte": 45,
"halfHourFeeSatPerVbyte": 32,
"hourFeeSatPerVbyte": 25,
"economyFeeSatPerVbyte": 12,
"minimumFeeSatPerVbyte": 1,
"scrapedAt": "2024-11-01T12:00:00+00:00"
}

addressInfo

{
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"balanceSats": 2108034,
"balanceBtc": 0.02108034,
"fundedSats": 125000000,
"spentSats": 122891966,
"txCount": 482,
"fundedTxoCount": 95,
"spentTxoCount": 89,
"scrapedAt": "2024-11-01T12:00:00+00:00"
}

transactionInfo / addressTransactions

{
"txid": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
"confirmed": true,
"blockHeight": 170,
"blockTime": "2009-01-12T03:30:25+00:00",
"inputCount": 1,
"outputCount": 2,
"valueOutSats": 5000000000,
"valueOutBtc": 50.0,
"feeSats": 0,
"weight": 748,
"scrapedAt": "2024-11-01T12:00:00+00:00"
}

blockInfo / recentBlocks

{
"blockHash": "000000000000000000041db24e9a4d2bfbc0b6dea7e3a4ce7a1a1e9b7c2e1f3",
"height": 860000,
"timestamp": "2024-10-28T14:23:11+00:00",
"txCount": 3121,
"size": 1523889,
"weight": 3993572,
"difficulty": 95672703580713.0,
"extras": {
"rewardBtc": 3.125,
"totalFeesBtc": 0.08241983,
"poolName": "Foundry USA",
"medianFee": 8,
"avgFeeRate": 12
},
"scrapedAt": "2024-11-01T12:00:00+00:00"
}

miningStats

{
"currentHashrateThPerSecond": 6.82e+20,
"currentDifficulty": 95672703580713.0,
"difficultyChange": 3.51,
"estimatedRetargetDate": "2024-11-09T08:00:00+00:00",
"remainingBlocks": 1203,
"nextRetargetHeight": 861120,
"scrapedAt": "2024-11-01T12:00:00+00:00"
}

priceHistory

{
"timestamp": "2024-11-01T00:00:00+00:00",
"currency": "USD",
"price": 69420.0,
"scrapedAt": "2024-11-01T12:00:00+00:00"
}

Frequently Asked Questions

Does this require an API key or account? No. Mempool.space provides a fully public REST API with no authentication required.

Does this work for testnet? This actor targets mainnet (mempool.space). Testnet support is not included.

How far back does the price history go? The Mempool.space historical price endpoint covers Bitcoin's full history since 2010.

What Bitcoin address formats are supported? Legacy (P2PKH, starting with 1), P2SH (starting with 3), Bech32 (native SegWit, starting with bc1q), and Bech32m (Taproot, starting with bc1p).

How are large transaction histories handled? The actor paginates automatically using the after_txid cursor so all transactions are retrieved regardless of count (up to maxItems).

What is the mempoolStats mode useful for? Real-time fee estimation for Bitcoin transactions. Useful for wallets, exchanges, and analytics dashboards.

Is historical price data available for all currencies? Yes — USD, EUR, GBP, CAD, CHF, AUD, and JPY are supported.

Data Source

Data is sourced from the public Mempool.space API — an open-source Bitcoin explorer and mempool visualizer maintained by the Bitcoin community.