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.
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://www.mercadobitcoin.net/api/BTC/ticker/
- Result
- HTTP 200 · application/json · 214 bytes · compressed
- Response time
- 292 ms (median of 3) · fastest 187 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Served by
- cloudflare
- Recorded
- 2026-08-10
Fields Returned
Top-level fields present in the response we captured, with the type and value we actually received.
| Field | Type | Value received |
|---|---|---|
| ticker | object | {9 fields} |
Captured Response
Captured from a real request to https://www.mercadobitcoin.net/api/BTC/ticker/ on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
{
"ticker": {
"high": "334319.00000000",
"low": "327000.00000000",
"vol": "13.55557243",
"last": "328170.00000000",
"buy": "328215.00000000",
"sell": "328216.00000000",
"open": "332791.00000000",
"date": 1786391366,
"pair": "BRLBTC"
}
} Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://www.mercadobitcoin.net/api/BTC/ticker/";
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.
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.
{
"code": "API|ROUTE_NOT_FOUND",
"message": "This route not found"
} 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.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →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.
Coinpaprika
⭐ Beginner's PickCoinpaprika offers a free, open cryptocurrency data API covering 2,500+ coins with prices, market stats, exchange data, and detailed coin metadata including team and investor information.