# mempool.space API reference

> 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…

Source: https://osinttools.io/apis/mempool-space/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/mempool-space/

- Base URL: https://mempool.space/api
- Authentication: No key needed.
- Rate limits: Enforced, no numbers stated; HTTP 429 when exceeded
- Vendor docs: https://mempool.space/docs/api/rest

## Overview

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.

## Errors

| Status | Meaning |
| --- | --- |
| 429 | Rate limit exceeded; repeated violations may lead to a ban |

## Addresses

### Get funded and spent totals for an address.

`GET /address/{address}`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | path | string | yes | Bitcoin address Example: bc1qexampleaddress0000000000000000000000 |

Response fields:

- `address` (string): The address
- `chain_stats.tx_count` (integer): Confirmed transactions
- `chain_stats.funded_txo_count` (integer): Outputs paying the address
- `chain_stats.funded_txo_sum` (integer): Total received, in satoshis
- `chain_stats.spent_txo_count` (integer): Outputs spent
- `chain_stats.spent_txo_sum` (integer): Total spent, in satoshis
- `mempool_stats.tx_count` (integer): Unconfirmed transactions

```bash
curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000'
```

Example response (200):

```json
{
  "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`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | path | string | yes | Bitcoin address Example: bc1qexampleaddress0000000000000000000000 |

Response fields:

- `[].txid` (string): Transaction id
- `[].vout` (integer): Output index
- `[].value` (integer): Value in satoshis
- `[].status` (object): Confirmation status

```bash
curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000/utxo'
```

Example response (200):

```json
[
  {
    "txid": "0000000000000000000000000000000000000000000000000000000000000001",
    "vout": 0,
    "value": 50000,
    "status": {
      "confirmed": true,
      "block_height": 800000
    }
  }
]
```

### List confirmed transactions of an address, 25 per page.

`GET /address/{address}/txs/chain`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | path | string | yes | Bitcoin address Example: bc1qexampleaddress0000000000000000000000 |
| `after_txid` | query | string | no | Last txid of the previous page Example: 0000000000000000000000000000000000000000000000000000000000000001 |

Response fields:

- `[].txid` (string): Transaction id
- `[].fee` (integer): Fee in satoshis
- `[].status.confirmed` (boolean): Whether confirmed
- `[].status.block_height` (integer): Block height, if confirmed

```bash
curl 'https://mempool.space/api/address/bc1qexampleaddress0000000000000000000000/txs/chain'
```

Example response (200):

```json
[
  {
    "txid": "0000000000000000000000000000000000000000000000000000000000000001",
    "fee": 1500,
    "status": {
      "confirmed": true,
      "block_height": 800000
    }
  }
]
```

## Transactions

### Get one transaction.

`GET /tx/{txid}`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `txid` | path | string | yes | Transaction id Example: 0000000000000000000000000000000000000000000000000000000000000001 |

Response fields:

- `txid` (string): Transaction id
- `version` (integer): Version
- `locktime` (integer): Locktime
- `size` (integer): Size in bytes
- `weight` (integer): Weight
- `fee` (integer): Fee in satoshis
- `vin` (array): Inputs
- `vout` (array): Outputs
- `status.confirmed` (boolean): Whether confirmed
- `status.block_height` (integer): Block height, if confirmed
- `status.block_hash` (string): Block hash, if confirmed

```bash
curl 'https://mempool.space/api/tx/0000000000000000000000000000000000000000000000000000000000000001'
```

Example response (200):

```json
{
  "txid": "0000000000000000000000000000000000000000000000000000000000000001",
  "version": 2,
  "locktime": 0,
  "size": 225,
  "weight": 573,
  "fee": 1500,
  "status": {
    "confirmed": true,
    "block_height": 800000,
    "block_hash": "0000000000000000000000000000000000000000000000000000000000000002"
  }
}
```

### Get the confirmation status of a transaction.

`GET /tx/{txid}/status`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `txid` | path | string | yes | Transaction id Example: 0000000000000000000000000000000000000000000000000000000000000001 |

Response fields:

- `confirmed` (boolean): Whether confirmed
- `block_height` (integer): Block height, if confirmed
- `block_hash` (string): Block hash, if confirmed

```bash
curl 'https://mempool.space/api/tx/0000000000000000000000000000000000000000000000000000000000000001/status'
```

Example response (200):

```json
{
  "confirmed": true,
  "block_height": 800000,
  "block_hash": "0000000000000000000000000000000000000000000000000000000000000002"
}
```

## Blocks

### Tell whether a block is on the best chain.

`GET /block/{hash}/status`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `hash` | path | string | yes | Block hash Example: 0000000000000000000000000000000000000000000000000000000000000002 |

Response fields:

- `in_best_chain` (boolean): False for orphaned blocks
- `next_best` (string): Hash of the next block on the best chain

```bash
curl 'https://mempool.space/api/block/0000000000000000000000000000000000000000000000000000000000000002/status'
```

Example response (200):

```json
{
  "in_best_chain": true,
  "next_best": "0000000000000000000000000000000000000000000000000000000000000003"
}
```

### Get the block hash at a height.

`GET /block-height/{height}`

- Footprint: passive (the target is not contacted)

Returns the hash as plain text.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `height` | path | integer | yes | Block height Example: 800000 |

Response fields:

- `(body)` (string): Block hash

```bash
curl 'https://mempool.space/api/block-height/800000'
```

Example response (200):

```
0000000000000000000000000000000000000000000000000000000000000002
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
