Blockchain API
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.
Available Data
Example Response
{
"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
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
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.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Alchemy Ethereum
Alchemy Ethereum provides programmatic access to ethereum node-as-a-service provider via REST API.
Binance
⭐ Beginner's PickBinance Spot API provides real-time and historical market data for thousands of cryptocurrency trading pairs on the world's largest crypto exchange by volume.
BitcoinAverage
BitcoinAverage aggregates price data from dozens of global cryptocurrency exchanges to produce weighted average prices for Bitcoin and other digital assets.
Bitfinex
Bitfinex is a professional cryptocurrency exchange offering one of the most comprehensive trading APIs for both spot and margin markets.
Bitmex
BitMEX is a derivatives exchange specializing in perpetual swaps and futures contracts for Bitcoin and other cryptocurrencies.