Tools/Explorers

Bitcoin Block Explorer APIs Compared: Endpoints, Limits, Pricing

Compare Bitcoin block explorer APIs for developers: Mempool.space, Blockstream Esplora, BlockCypher, Blockchain.com, and Bitquery ranked by features and limits.

Spark Team

Block Explorer API Overview

Block explorer APIs give developers programmatic access to Bitcoin blockchain data: transactions, addresses, UTXOs, blocks, mempool state, and fee estimates. Choosing the right API affects your application's reliability, cost, and data depth. Some APIs are open source and self-hostable, others are commercial services with tiered pricing. Some return flat REST responses, others offer GraphQL for complex analytical queries.

This comparison covers five block explorer APIs that serve distinct developer needs: Mempool.space, Blockstream Esplora, BlockCypher, Blockchain.com, and Bitquery. The table below provides a high-level feature snapshot. For general-purpose Bitcoin RPC providers (Alchemy, QuickNode, GetBlock), see our Bitcoin API comparison. For block explorer UI comparisons, see the block explorer comparison.

APITypeFree TierAuth RequiredWebSocketTestnetOpen Source
Mempool.spaceREST + WebSocketYes (rate-limited)NoYesTestnet, Testnet4, SignetYes (AGPL-3.0)
Blockstream EsploraRESTYes (~50 req/s)No (public) / Yes (managed)NoTestnet, Signet, LiquidYes (MIT)
BlockCypherREST + WebSocket3 req/s, 200 req/hrOptional (token)YesTestnet3No
Blockchain.comREST + WebSocket~1 req/10s (unregistered)Optional (API key)YesNoNo
BitqueryGraphQL1,000 calls/moYes (API key)Yes (paid)NoNo

Endpoint Coverage

The depth of API endpoints determines what your application can query without running additional infrastructure. All five APIs cover basic transaction and block lookups, but they diverge on mempool data, fee estimation, and specialized analytics.

Mempool.space

Mempool.space offers the richest endpoint set of any Bitcoin block explorer API. Beyond standard address, transaction, and block queries, it exposes mining pool statistics, difficulty epoch tracking, replace-by-fee event monitoring, mempool fee distribution histograms, and a transaction accelerator API. It also provides Lightning Network endpoints covering nodes, channels, and network capacity. WebSocket subscriptions at wss://mempool.space/api/v1/ws enable real-time tracking of new blocks, mempool changes, address activity, and RBF replacements.

The public API requires no authentication and returns JSON. Rate limits are undisclosed: the server returns HTTP 429 when exceeded. Enterprise access with guaranteed throughput is available by contacting the Mempool.space team directly.

Blockstream Esplora

Esplora provides approximately 30 REST endpoints covering transactions, addresses, UTXOs, blocks, mempool statistics, and fee estimates. The public API at blockstream.info/api/ requires no authentication and enforces rate limits of roughly 50 requests per second via nginx configuration. Blockstream also offers a managed Explorer API product with 500,000 free requests per month and API key authentication for higher volumes.

Esplora's API surface is intentionally minimal and stable. It does not offer WebSocket support, Lightning Network data, or mining pool analytics. For applications that need straightforward transaction and address lookups without real-time streaming, Esplora is one of the most reliable choices available.

BlockCypher

BlockCypher's REST API includes roughly 20 endpoints for transactions, addresses, blocks, and webhooks. It stands out with two features the other APIs lack: a transaction confidence rating (a 0 to 1 score estimating the likelihood that an unconfirmed transaction will confirm) and built-in payment forwarding (automatically routing received payments to a destination address). BlockCypher also supports creating, signing, and broadcasting transactions entirely through the API.

WebSocket support is available at wss://socket.blockcypher.com/v1/btc/main for new block and unconfirmed transaction events. BlockCypher is not open source and cannot be self-hosted. Rate limits on the free tier without a token are restrictive: 3 requests per second and 200 requests per hour. Signing up for a free token raises these to 5 requests per second and 500 requests per hour.

Blockchain.com

Blockchain.com operates one of the oldest Bitcoin APIs, running since 2011. It provides REST endpoints for blocks, transactions, addresses, exchange rates, and aggregate network statistics. The API also includes chart and market data endpoints that the other explorer APIs do not offer, making it useful for displaying Bitcoin price history and network metrics.

Rate limits are the most restrictive of any API in this comparison: approximately 1 request every 10 seconds without registration. An API key raises this to roughly 5 requests per second. The API does not support testnet, and there is no self-hosting option. Blockchain.com has shifted its primary business focus to its exchange, and the explorer API receives less active development than Mempool.space or Esplora.

Bitquery

Bitquery takes a fundamentally different approach: it uses GraphQL instead of REST, allowing developers to construct precise queries that return exactly the fields they need. This makes it well-suited for analytics dashboards and chain analysis workflows where you need to trace transaction flows, analyze address clustering, or aggregate OHLCV price data across time ranges. Bitquery supports 40+ blockchains beyond Bitcoin.

The tradeoff is cost and complexity. The free tier is limited to 1,000 API calls per month with a maximum of 10 calls per minute and 10 points per query. The Developer plan starts at $150/month for 50,000 calls. Real-time streaming via GraphQL subscriptions requires a paid plan. An API key is required for all access.

Rate Limits and Pricing

Cost structures vary significantly across providers. The following table compares rate limits and pricing for developers evaluating production use.

APIFree Rate LimitFree Monthly QuotaPaid Starting PricePaid Rate Limit
Mempool.spaceUndisclosed (HTTP 429)Unlimited (within rate limit)Enterprise (contact)Custom
Blockstream Esplora~50 req/s500K req/mo (managed)Contact salesCustom
BlockCypher3 req/s (no token) / 5 req/s (token)200 req/hr (no token) / 500 req/hr (token)~$75/mo (Classic)Higher (plan-dependent)
Blockchain.com~1 req/10s (no key) / ~5 req/s (key)Not publishedEnterprise (contact)Custom
Bitquery10 calls/min1,000 calls/mo$150/mo (Developer)60 calls/min
Note: Mempool.space and Esplora are both open source. Self-hosting either one eliminates rate limits and third-party dependencies entirely, at the cost of running your own Bitcoin node and indexer infrastructure.

Authentication and CORS

Authentication requirements and CORS policies determine how easily you can integrate an API into different application architectures: server backends, browser-based frontends, or mobile apps making direct API calls.

Mempool.space and Blockstream Esplora require no authentication for their public APIs. Both enable CORS headers, meaning you can call them directly from browser JavaScript without a backend proxy. This makes them the fastest path to a working prototype for client-side wallet applications or blockchain explorer UIs.

BlockCypher supports CORS and works without a token at lower rate limits. Adding a free API token increases limits but exposes the token in client-side code, so production browser apps should proxy through a backend. Blockchain.com has limited CORS support across endpoints. Bitquery requires an API key for all requests, which should never be embedded in client-side code.

Self-Hosting Options

For production applications with high throughput, strict privacy requirements, or the need to eliminate third-party dependencies, self-hosting is the most robust option. Only two of the five APIs support self-hosting.

Blockstream Esplora is open source under the MIT license and written in Rust. Running your own instance requires a fully synced Bitcoin Core node plus the Electrs indexer. Hardware requirements: approximately 1 TB of SSD storage and 16 GB of RAM. Docker images are available for streamlined deployment.

Mempool.space is open source under AGPL-3.0 and also supports Docker deployment. It runs on top of Bitcoin Core and Electrs, with the same hardware requirements as Esplora plus additional resources for mempool visualization and mining analytics. The self-hosted instance includes the full web frontend in addition to the API.

BlockCypher, Blockchain.com, and Bitquery are closed-source commercial services with no self-hosting option. If your application requires data sovereignty or cannot tolerate third-party outages, these providers introduce an external dependency you cannot eliminate.

Testnet and Signet Support

Testing against real network conditions without spending real bitcoin requires testnet or Signet API access. Support varies significantly across providers.

Mempool.space offers the broadest test network coverage: Testnet3, Testnet4, and Signet, in addition to Liquid. Esplora supports Testnet, Signet, and Liquid. BlockCypher supports Testnet3 only. Blockchain.com and Bitquery do not offer testnet API access at all, which limits their usefulness for development workflows that rely on end-to-end testing against a public test network.

For developers building on Bitcoin Layer 2 networks like Spark, Signet support is particularly valuable. Signet provides a controlled test environment with predictable block times, making it easier to test applications that interact with both the base layer and Layer 2 protocols.

Which API to Use by Use Case

The right block explorer API depends on what you are building. Here are the most common scenarios and which API fits best.

Wallet backends and payment processing:

  • Mempool.space or Esplora are the strongest choices: both provide indexed UTXO queries, address balance lookups, and fee estimation endpoints that wallet applications require
  • Mempool.space adds WebSocket support for real-time address monitoring, which eliminates the need to poll for incoming payments
  • BlockCypher's transaction confidence score is useful for merchants accepting zero-confirmation payments, though RBF adoption has reduced the reliability of zero-conf acceptance

Analytics dashboards and chain forensics:

  • Bitquery's GraphQL API allows complex analytical queries that would require multiple REST calls on other APIs: transaction flow tracing, address clustering, and time-range aggregations
  • Mempool.space provides mining pool analytics and mempool fee distribution data that no other API in this comparison offers

Prototyping and hackathons:

  • Esplora's public API requires no signup, no API key, and no authentication: you can start making requests immediately
  • Mempool.space is equally frictionless and offers richer data endpoints

Production applications with SLA requirements:

  • Self-host Mempool.space or Esplora to eliminate external dependencies
  • If managed infrastructure is required, BlockCypher and Bitquery offer paid tiers with support contracts

Reliability and Data Freshness

Mempool.space and Esplora are both backed by full Bitcoin nodes and update in near real-time as new blocks and transactions arrive. Mempool.space maintains a live view of the mempool with sub-second updates via WebSocket. Esplora updates on each new block but lacks streaming, so mempool data requires polling.

BlockCypher processes transactions through its own node infrastructure and typically reflects unconfirmed transactions within seconds. Blockchain.com's API latency can be higher due to the platform's broader infrastructure serving exchange, wallet, and explorer functions simultaneously. Bitquery's data freshness depends on the plan: free-tier queries may return data with a delay, while paid plans offer closer to real-time access.

None of the free-tier public APIs publish formal uptime SLAs. Blockstream (Esplora) and Mempool.space have strong track records of availability. BlockCypher has experienced occasional outages reported by developers in production. For mission-critical applications, the safest strategy is to self-host your primary API and use a public endpoint as a fallback. For more on building resilient Bitcoin infrastructure, see our research on Electrum server architecture.

Frequently Asked Questions

What is the best free Bitcoin block explorer API?

Mempool.space and Blockstream Esplora are the strongest free options. Both require no API key, support CORS for browser requests, and provide indexed endpoints for address lookups, UTXO queries, and fee estimation. Mempool.space has the edge for real-time use cases thanks to WebSocket support, mining analytics, and Lightning Network data. Esplora is simpler and well-suited for straightforward lookups.

Does BlockCypher still work for Bitcoin development?

Yes. BlockCypher's Bitcoin API remains functional and is still used in production by applications that rely on its unique features: transaction confidence scoring for zero-conf payments and built-in payment forwarding. The main limitations are its restrictive free-tier rate limits (3 requests per second without a token), lack of Signet or Testnet4 support, and no self-hosting option. For new projects, the open source alternatives (Mempool.space, Esplora) offer more endpoints with fewer restrictions.

Can I use a block explorer API from the browser?

Mempool.space, Blockstream Esplora, and BlockCypher all support CORS, enabling direct API calls from browser JavaScript. This is useful for client-side block explorer UIs and lightweight wallet applications. However, embedding API tokens in client-side code exposes them to extraction: for production browser apps, proxy requests through your own backend to protect tokens and control rate limiting.

Which Bitcoin API supports GraphQL?

Bitquery is the only block explorer API in this comparison that uses GraphQL. Its query language allows developers to request exactly the fields they need and perform complex aggregations (transaction flow analysis, time-range statistics, cross-chain queries) in a single request. The tradeoff is cost: Bitquery's free tier is limited to 1,000 calls per month, and the Developer plan starts at $150/month.

How do I choose between REST and GraphQL for Bitcoin data?

REST APIs (Mempool.space, Esplora, BlockCypher) are the better choice for standard application needs: looking up transactions by txid, querying address balances, fetching fee estimates, and monitoring the mempool. GraphQL (Bitquery) is preferable when you need analytical queries that span multiple entities or time ranges: tracing payment flows across addresses, computing aggregate statistics, or building forensics dashboards. For wallet backends and payment systems, REST is simpler, faster, and cheaper.

Can I self-host a Bitcoin block explorer API?

Yes, but only with open-source providers. Mempool.space (AGPL-3.0) and Blockstream Esplora (MIT) can both be self-hosted using Docker. Each requires a fully synced Bitcoin Core node and an Electrs indexer, consuming approximately 1 TB of SSD storage and 16 GB of RAM. Self-hosting eliminates rate limits, removes third-party dependencies, and ensures your query patterns are not shared with external services. BlockCypher, Blockchain.com, and Bitquery are closed-source with no self-hosting option.

Which block explorer API is best for monitoring Bitcoin payments?

Mempool.space is the strongest option for payment monitoring. Its WebSocket API supports real-time address tracking: you subscribe to an address and receive notifications when transactions are detected in the mempool and when they confirm. It also provides RBF event data, which is critical for detecting payment replacements. Esplora can also monitor payments but requires polling since it lacks WebSocket support. BlockCypher's webhook system offers server-side callbacks for transaction events as an alternative to WebSocket subscriptions.

This tool is for informational purposes only and does not constitute financial advice. API pricing, rate limits, and feature availability change frequently. Always verify current data on each provider's official documentation before making architectural decisions.

Build with Spark

Integrate bitcoin, Lightning, and stablecoins into your app with a few lines of code.

Read the docs →