BitcoinDatabase.com

Query the chain · Block explorer API

Bitcoin block explorer API for blocks, transactions and addresses

Building a block explorer means indexing every block, transaction, input and output and keeping it reconciled as new blocks arrive. The Bitcoin block explorer API gives you that index ready-made: query a block by height or hash, expand any transaction down to its scripts and outputs, look up an address with its full history and confirmations, and read live mempool state.

or try it below ↓

REST API · SQL · dashboards · address history from genesis

Query Console
btc
try:

Hit Run to query the Bitcoin blockchain.

Live from the chain for .

BTC

Balance trail

informational on-chain data · not financial advice

REST API · SQL · dashboards, one indexed dataset. Reading the chain ...

Your explorer or wallet UI calls clean REST endpoints while we keep the chain indexed and reconciled block by block. The same data is also available in SQL and dashboards. Informational on-chain data only, not investment advice.

REST API SQL DASHBOARDS WEBHOOKS CSV EXPORT

History from genesis queryable in seconds

On-chain data not financial advice

Why it works

What you get with Block explorer API

Blocks to outputs

Query any block by height or hash and drill into transactions, inputs, outputs, script types and confirmations, all from one indexed source.

Reconciled block by block

We parse and reconcile each new block as it confirms, so your explorer always reflects the current tip without you running Bitcoin Core.

Address and mempool views

Look up an address with its balance and full transaction history, and read live mempool entries, exactly what an explorer needs to render.

What it handles

The indexed Bitcoin chain, queryable your way

Look up an address, a transaction, a UTXO, the rich list or an on-chain metric, by REST API, SQL or dashboard. The same authoritative data, reconciled block-by-block against the canonical chain, without running a node.

  • Fetch any block by height or hash
  • Expand transactions to inputs, outputs and scripts
  • Render address pages with full history
  • Show confirmations and live mempool state
  • Serve it all without running a node
GET /v1/address/{addr} query result
200 · JSON
{
  "address": "bc1qxy2k…l0wdv8",
  "balance_btc": 68432.10,
  "balance_usd": 4612165420,
  "tx_count": 1284,
  "unspent_outputs": 37,
  "first_seen": "2014-02-09"
}
indexed from genesis · to the satoshi ✓ reconciled block-by-block

Why BitcoinDatabase

One platform, queryable three ways

Not a raw node to sync, not an indexer to build, and not five vendors to stitch together. The fully-indexed Bitcoin blockchain, available as a REST API, as SQL, and as dashboards, on one authoritative dataset.

REST API

Typed JSON for addresses, transactions, balances, UTXOs and metrics. Drop it into apps, wallets, explorers and agents with curl, Python or any HTTP client.

SQL access

Run SQL directly against the indexed Bitcoin dataset for ad-hoc analysis, cohorts and exports, the same data the API and dashboards read from.

Compliance-first

Informational on-chain data and analytics only. Entity labels and flow tracing are framed as tooling to support a regulated team's own review, not accusations.

Good questions

Questions about Block explorer API

Yes. It returns blocks, transactions, inputs, outputs, script types, addresses, balances, confirmations and mempool entries, which is everything an explorer renders. We keep the chain indexed and reconciled, so you focus on the UI.
Each block is parsed and reconciled as it confirms, and unconfirmed activity is available through the mempool endpoints. The same indexed data is also queryable via SQL and dashboards.
Blockstream Esplora and mempool.space are the two most widely used free public endpoints, with BlockCypher and Blockchair close behind. All four answer address lookups without a key, and all four throttle you once traffic is real. Worth knowing before you build on one: tested first-hand, none of their address endpoints returns a timestamp, so anything date-based needs a second call.
Request the block by either identifier and you get the same record: hash, height, timestamp, transaction count, size, weight, merkle root, difficulty and the previous block hash. Height is the convenient key for walking the chain in order, hash is the stable key, because a height can briefly point at a block that a reorg later replaces.
Ask for the block transactions and page through them. Public explorers make this slow on purpose: Esplora returns 25 transactions per request, so a busy 4,000 transaction block is over 170 sequential calls and several minutes of waiting. Here the block is already indexed, so you request its transactions once or select them in SQL.
Not on your side, which is the point of using one. Behind the API a node and an indexer are still required, along with roughly 600 GB of disk, a multi-day initial sync and constant reconciliation. We carry that so your explorer calls an HTTPS endpoint instead of babysitting Bitcoin Core.
Yes. POST /v1/tx/broadcast takes a signed raw transaction as hex and returns HTTP 201 with the txid. If the network refuses it, you get HTTP 422 with the node's own reason in network_said. When we re-sent an already-confirmed transaction to three public explorer endpoints on 25 September 2026, all three answered HTTP 400, the same code they gave 80 bytes of zeros.
Look it up by txid. GET /v1/tx/{txid} returns whether it is still in the mempool or which block height confirmed it, and the broadcast response links straight to that lookup. Checking by txid is also the safe response to any broadcast error, because a rejection can mean the transaction already went through.
Here the Developer plan is $49 a month for 500,000 API credits at 10 requests per second with one year of history. Growth is $199 for 5 million credits, SQL over the indexed chain and full address history since 2009 over REST, and Scale is $799 for 50 million credits with bulk exports and webhooks. A block, transaction or address lookup costs credits from the same pool.

Explore more

More ways to query Bitcoin with BitcoinDatabase

Stop running a node. Just query Bitcoin.

Run your first query now and get on-chain data back by REST API, SQL or dashboard, with address history back to the genesis block over REST. Informational on-chain data only, not financial advice.

See pricing

History from genesis over REST · SQL · dashboards · addresses, transactions, UTXOs, metrics