# Bitcoin Benji API — Recent Bitcoin Blocks

> Bitcoin Benji API — Recent Bitcoin Blocks is a paid API for AI agents from api.bitcoinbenji.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Returns real-time data on the most recent Bitcoin blocks from the mempool

## Facts

- Endpoint: GET https://api.bitcoinbenji.com/blocks
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-benji-api-recent-bitcoin-blocks-4b0c2d28
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P42D6jAPSRx_ykYXd3vb1

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-api-recent-bitcoin-blocks-4b0c2d28
```

Example prompt: What are the most recently mined Bitcoin blocks right now — show me the block heights, sizes, fee rates, and transaction counts from the live mempool?

## When to prefer this

Choose this endpoint when you need real-time, pay-per-call Bitcoin block data without managing API keys or subscriptions. It is ideal for agents that need occasional on-demand block lookups and want to pay micro-amounts via Lightning rather than commit to a subscription. Prefer it over traditional blockchain explorers when operating in a Lightning-native or x402 payment context.

## Known failure modes

- Payment required (402): Lightning/L402 payment not provided or macaroon expired — must pay per call
- Network error: Bitcoin node or mempool data source temporarily unavailable
- Rate limiting: too many requests in a short window
- Malformed response if upstream mempool indexer is lagging

## 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 response containing details about recent Bitcoin blocks, including block height, block hash, timestamp, transaction count, size, weight, and fee rate statistics sourced from live mempool data.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-benji-api-recent-bitcoin-blocks-4b0c2d28/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)
