# Bitcoin Blocks of the Last 24 Hours — Pools & Fees

**Use case:** 

The last ~144 mined Bitcoin blocks (about one day) from mempool.space: height, time, mining pool, transaction count, fullness, median fee rate, total fees and block reward for every block. For fee-market researchers and analysts studying block-space demand. Raise the block count or set a start height for an older window.

## Input

```json
{
  "mode": "blocks",
  "network": "mainnet",
  "addresses": [
    "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"
  ],
  "txLimit": 25,
  "includeMempoolTxs": true,
  "includeUtxos": false,
  "txids": [],
  "includeRbf": true,
  "blocks": [],
  "blocksLimit": 144,
  "includeBlockTxids": false,
  "blockTxidsLimit": 25,
  "projectedBlocks": 3,
  "recentTxLimit": 10,
  "includeReplacements": false,
  "interval": "1w",
  "poolsLimit": 20,
  "lightningRanking": "capacity",
  "lightningLimit": 20,
  "lightningQueries": [],
  "currency": "USD",
  "dates": [],
  "fields": [],
  "requestDelayMs": 100
}
```

## Output

```json
{
  "height": {
    "label": "Height",
    "format": "number"
  },
  "timestamp": {
    "label": "Block time",
    "format": "string"
  },
  "pool": {
    "label": "Mining pool",
    "format": "string"
  },
  "txCount": {
    "label": "Transactions",
    "format": "number"
  },
  "fullnessPct": {
    "label": "Fullness %",
    "format": "number"
  },
  "medianFee": {
    "label": "Median fee rate",
    "format": "number"
  },
  "totalFeesBtc": {
    "label": "Fees (BTC)",
    "format": "number"
  },
  "rewardBtc": {
    "label": "Reward (BTC)",
    "format": "number"
  },
  "hash": {
    "label": "Block hash",
    "format": "string"
  },
  "url": {
    "label": "Explorer URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Bitcoin Scraper — Fees, Mempool, Blocks, Address Balance](https://apify.com/yadroo/bitcoin-mempool.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/yadroo/bitcoin-mempool.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/yadroo/bitcoin-mempool.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
