Skip to content
OSINTtools.io

mempool.space API

Open-source Bitcoin explorer with live mempool and fee views, address and transaction lookups, a Lightning explorer and API.

Base URL
https://mempool.space/api
Sign-in
No key
Format
REST
Endpoints
7

Compiled by OSINTtools.io editors from mempool.space · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The mempool.space REST API returns public Bitcoin data: address balances and transaction history, transactions and their confirmation status, and blocks. An investigator uses it to follow funds between addresses and to check when a transaction confirmed.

Calls are plain GETs under /api. The docs describe no key for the address, transaction and block endpoints (only the Accelerator endpoints are authenticated).

The docs say rate limits are enforced, that exceeding them returns HTTP 429 and repeated violations may lead to a ban, but give no numbers; higher limits are offered through enterprise sponsorship.

Quick start

  1. No key needed

    The mempool.space API answers without an account or key.

  2. Make your first request

    Get funded and spent totals for an address.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000'
  3. Read the response

    A 200 response looks like this.

    {
      "address": "bc1qexampleaddress0000000000000000000000",
      "chain_stats": {
        "tx_count": 3,
        "funded_txo_count": 3,
        "funded_txo_sum": 150000,
        "spent_txo_count": 2,
        "spent_txo_sum": 100000
      },
      "mempool_stats": {
        "tx_count": 0,
        "funded_txo_count": 0,
        "funded_txo_sum": 0,
        "spent_txo_count": 0,
        "spent_txo_sum": 0
      }
    }

Authentication

No key or account: every endpoint answers without one.

Rate limits and pricing

Enforced, no numbers stated; HTTP 429 when exceeded

Errors

StatusMeaning
429Rate limit exceeded; repeated violations may lead to a ban

Addresses

Summary statistics for confirmed (chain_stats) and unconfirmed (mempool_stats) activity.

Path parameters

addressstringrequiredtakes your crypto wallet

Bitcoin address

Example: bc1qexampleaddress0000000000000000000000
Response fields · 7Show

addressstring

The address

tx_countinteger

Confirmed transactions

funded_txo_countinteger

Outputs paying the address

funded_txo_suminteger

Total received, in satoshis

spent_txo_countinteger

Outputs spent

spent_txo_suminteger

Total spent, in satoshis

tx_countinteger

Unconfirmed transactions

curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000'
No key needed
Response
{
  "address": "bc1qexampleaddress0000000000000000000000",
  "chain_stats": {
    "tx_count": 3,
    "funded_txo_count": 3,
    "funded_txo_sum": 150000,
    "spent_txo_count": 2,
    "spent_txo_sum": 100000
  },
  "mempool_stats": {
    "tx_count": 0,
    "funded_txo_count": 0,
    "funded_txo_sum": 0,
    "spent_txo_count": 0,
    "spent_txo_sum": 0
  }
}

List unspent outputs of an address.

GET/address/{address}/utxo

Each unspent output with its transaction id, output index, value and status.

Path parameters

addressstringrequiredtakes your crypto wallet

Bitcoin address

Example: bc1qexampleaddress0000000000000000000000
Response fields · 4Show

txidstring

Transaction id

voutinteger

Output index

valueinteger

Value in satoshis

statusobject

Confirmation status

curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000/utxo'
No key needed
Response
[
  {
    "txid": "0000000000000000000000000000000000000000000000000000000000000001",
    "vout": 0,
    "value": 50000,
    "status": {
      "confirmed": true,
      "block_height": 800000
    }
  }
]

Newest first. Page by passing the last seen txid as after_txid. Full transaction objects are returned, as for /tx/{txid}.

Path parameters

addressstringrequiredtakes your crypto wallet

Bitcoin address

Example: bc1qexampleaddress0000000000000000000000

Query parameters

after_txidstring

Last txid of the previous page

Example: 0000000000000000000000000000000000000000000000000000000000000001
Response fields · 4Show

txidstring

Transaction id

feeinteger

Fee in satoshis

confirmedboolean

Whether confirmed

block_heightinteger

Block height, if confirmed

curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000/txs/chain'
No key needed
Response
[
  {
    "txid": "0000000000000000000000000000000000000000000000000000000000000001",
    "fee": 1500,
    "status": {
      "confirmed": true,
      "block_height": 800000
    }
  }
]

Transactions

Returns version, locktime, size, weight, fee, inputs (vin), outputs (vout) and status.

Path parameters

txidstringrequiredtakes your crypto wallet

Transaction id

Example: 0000000000000000000000000000000000000000000000000000000000000001
Response fields · 11Show

txidstring

Transaction id

versioninteger

Version

locktimeinteger

Locktime

sizeinteger

Size in bytes

weightinteger

Weight

feeinteger

Fee in satoshis

vinarray

Inputs

voutarray

Outputs

confirmedboolean

Whether confirmed

block_heightinteger

Block height, if confirmed

block_hashstring

Block hash, if confirmed

curl 'https://mempool.space/api/tx/0000000000000000000000000000000000000000000000000000000000000001'
No key needed
Response
{
  "txid": "0000000000000000000000000000000000000000000000000000000000000001",
  "version": 2,
  "locktime": 0,
  "size": 225,
  "weight": 573,
  "fee": 1500,
  "status": {
    "confirmed": true,
    "block_height": 800000,
    "block_hash": "0000000000000000000000000000000000000000000000000000000000000002"
  }
}

Shows whether the transaction is confirmed and, if so, the block height and hash.

Path parameters

txidstringrequiredtakes your crypto wallet

Transaction id

Example: 0000000000000000000000000000000000000000000000000000000000000001
Response fields · 3Show

confirmedboolean

Whether confirmed

block_heightinteger

Block height, if confirmed

block_hashstring

Block hash, if confirmed

curl 'https://mempool.space/api/tx/0000000000000000000000000000000000000000000000000000000000000001/status'
No key needed
Response
{
  "confirmed": true,
  "block_height": 800000,
  "block_hash": "0000000000000000000000000000000000000000000000000000000000000002"
}

Blocks

  • Passive: the target is not contacted

in_best_chain is false for orphaned blocks; next_best is given only for best-chain blocks.

Path parameters

hashstringrequired

Block hash

Example: 0000000000000000000000000000000000000000000000000000000000000002
Response fields · 2Show

in_best_chainboolean

False for orphaned blocks

next_beststring

Hash of the next block on the best chain

curl 'https://mempool.space/api/block/0000000000000000000000000000000000000000000000000000000000000002/status'
No key needed
Response
{
  "in_best_chain": true,
  "next_best": "0000000000000000000000000000000000000000000000000000000000000003"
}

Get the block hash at a height.

GET/block-height/{height}

  • Passive: the target is not contacted

Returns the hash as plain text.

Path parameters

heightintegerrequired

Block height

Example: 800000
Response fields · 1Show

(body)string

Block hash

curl 'https://mempool.space/api/block-height/800000'
No key needed
Response
0000000000000000000000000000000000000000000000000000000000000002