MercadoBitcoin API
Overview
MercadoBitcoin is Brazil's largest cryptocurrency exchange and offers a public API for retrieving real-time and historical market data for Bitcoin, Ethereum, Litecoin, and other coins traded on the platform. It exposes order book data, trade history, and ticker information without requiring any authentication. All prices are denominated in Brazilian Real (BRL).
Beginner Tip
No API key is needed for public market data. Start with the ticker endpoint to get the current bid, ask, and last-trade price for any supported coin — the response is small, well-structured, and easy to parse in any language.
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
ticker.high Highest trade price for the coin in the last 24 hours, denominated in BRL ticker.low Lowest trade price in the last 24 hours, in BRL ticker.last Price of the most recent trade executed on the exchange, in BRL ticker.buy Current best buy (bid) price available in the order book, in BRL ticker.sell Current best sell (ask) price available in the order book, in BRL ticker.date Unix timestamp indicating when the ticker data was last updated Implementation Example
const url = "https://www.mercadobitcoin.com.br/api-doc/";
const response = await fetch(url);
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
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →0x
0x provides programmatic access to api for querying token and pool stats across various liquidity pools via REST API.
1inch
⭐ Beginner's Pick1inch is a decentralized exchange (DEX) aggregator that finds the best swap routes across protocols like Uniswap, SushiSwap, and Curve.
Bitcambio
⭐ Beginner's PickBitcambio is a Brazilian cryptocurrency exchange that exposes a public REST API to retrieve all currently traded asset pairs and their market data.
BitcoinCharts
⭐ Beginner's PickBitcoinCharts provides financial and technical data about the Bitcoin network, including historical market data from dozens of exchanges worldwide.
CoinCap
⭐ Beginner's PickCoinCap delivers real-time cryptocurrency prices and market data for thousands of assets through a straightforward REST API.