Blockchain API

Beginner's Pick Cryptocurrency / API Key Intermediate HTTPS
61 C
Measured Score 0 50 100 Speed 1/30 Consistency 17/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

Blockchain.com Explorer API provides read access to Bitcoin blockchain data including individual transaction details, block information, and wallet address summaries. The public endpoints are free to use and return JSON data on confirmed transactions, UTXOs, and block contents. It is widely used by educators and developers who want to inspect Bitcoin network activity without running a full node.

Beginner Tip

Most read endpoints need no API key — try fetching a transaction directly by ID using https://blockchain.info/rawtx/YOUR_TX_HASH?format=json. For higher rate limits and access to wallet management features, register for a free API key at blockchain.com/api.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://blockchain.info/rawblock/00000000000000000007878ec04bb2b2e12317804810f4c26033585b3f81ffaa
Result
HTTP 200 · application/json · 5,454,777 bytes · compressed
Response time
2767 ms (median of 3) · fastest 2442 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by DigiCert Inc
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

coin price in USD/EUR
market capitalization
24h price change
trading volume
circulating supply

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "id": "bitcoin",
  "symbol": "btc",
  "current_price": 65432.1,
  "market_cap": 1280000000000,
  "price_change_24h": 1250.5,
  "price_change_percentage_24h": 1.95,
  "total_volume": 28500000000
}

Field Reference

hash Unique 64-character hexadecimal identifier of this block.
height Block number counting from the genesis block at height 0.
time Unix timestamp when the block was mined.
tx List of all transactions included in this block.
n_tx Total number of transactions in this block.
size Block size in bytes before segwit witness data.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.blockchain.com/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "error": "not-found-or-invalid-arg",
  "message": "Item not found or argument invalid"
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

429 or Cloudflare block after repeated requests The public tier enforces aggressive rate limiting to prevent scraping.
Add at least a 1-second delay between requests and cache results; if you need bulk access, register for an API key.
Transaction not found (404) Unconfirmed transactions may not yet be in the mempool index, or the TX hash is incorrect.
Double-check the full 64-character hex hash and note that very recent unconfirmed transactions may have a propagation delay.
Incorrect address balance shown The API returns the total received amount, not the current balance; you must subtract total_sent.
Calculate balance as final_balance or use the dedicated address summary endpoint which returns final_balance directly.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 1/30
Consistency 17/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 2767ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Intermediate
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →