What it does
The mempool.space API gives Bitcoin data: recommended fees, blocks, transactions, addresses, mining and the Lightning network, for example to suggest a fee before sending a payment. Requests are GET calls with JSON answers. Free, no key needed, with rate limits that answer HTTP 429 when exceeded. Repeated violations can lead to a ban.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed, with rate limits that answer HTTP 429 when exceeded.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- mempool.space
More information: https://mempool.space/docs/api/rest
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://mempool.space/api/v1/fees/recommended'
JavaScript
const response = await fetch("https://mempool.space/api/v1/fees/recommended");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://mempool.space/api/v1/fees/recommended",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.