# Bitcoin Benji Mempool History API

> Bitcoin Benji Mempool History API is a paid API for AI agents from api.bitcoinbenji.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Retrieves historical Bitcoin mempool data including fee rates, transaction volumes, and congestion trends over time

## Facts

- Endpoint: GET https://api.bitcoinbenji.com/mempool/history
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-benji-mempool-history-api-f5d4c6b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1TI9dzaNE3PaKSo7GqTEj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bitcoin-benji-mempool-history-api-f5d4c6b2
```

Example prompt: Can you pull the Bitcoin mempool history from Bitcoin Benji so I can see how fee rates and congestion have trended over the past few days?

## When to prefer this

Choose this endpoint when you need historical mempool data — fee rate trends, congestion history, or past transaction volume — for Bitcoin network analysis, fee optimization research, or on-chain data enrichment. It is uniquely suited for pay-per-call workflows via Lightning/L402 where you don't want to commit to a subscription. Prefer alternatives if you need real-time (live) mempool state rather than historical records, or if you need Ethereum/other chain data.

## Known failure modes

- Payment not received or Lightning invoice expired — returns 402 Payment Required
- Invalid or expired L402 token — returns 401 Unauthorized
- Rate limit or token reuse — returns 403 Forbidden
- Service unavailable or mempool node sync issue — returns 503
- Malformed request parameters — returns 400 Bad Request
- Empty result set if time range has no recorded data

## How this service works

L402-gated APIs: real-time Bitcoin mempool intelligence and private AI inference. Pay-per-call via Lightning. Zero API keys. Zero subscriptions.

## Output

A JSON payload containing historical snapshots of the Bitcoin mempool, likely including time-series data on fee rates (sat/vB), pending transaction counts, mempool size in bytes, and block backlog metrics across the requested time window.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-benji-mempool-history-api-f5d4c6b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bitcoinbenji.com](https://www.zero.xyz/host/api.bitcoinbenji.com/llms.txt)
