MercadoBitcoin API

Beginner's Pick Cryptocurrency / No Auth Required Beginner HTTPS
Free to Use
82 A
Measured Score 0 50 100 Speed 19/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-09-21

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
182 ms (median of 3) · fastest 176 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
Answered
8 of 8 weekly checks (100%, since 2026-07-31)
Recorded
2026-09-21

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-09-21. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "ticker": {
    "high": "441999.00000000",
    "low": "415888.00000000",
    "vol": "29.77835541",
    "last": "441742.00000000",
    "buy": "441742.00000000",
    "sell": "441743.00000000",
    "open": "419182.00000000",
    "date": 1790019094,
    "pair": "BRLBTC"
  }
}

Implementation Example

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

Request
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-09-21. 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
{
  "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.

404 Not Found Invalid coin symbol in the URL path
✓ Use the exact identifiers from the API docs such as BTC, ETH, LTC, XRP — not BITCOIN or full names.
Stale data despite frequent polling Ticker data is cached on the server at 15-second intervals
✓ For real-time applications, poll no faster than every 15 seconds to match the actual data refresh rate.
CORS error in the browser The API does not set permissive CORS headers for all browser origins
✓ Fetch market data from a backend service and forward it to your frontend rather than calling MercadoBitcoin directly from JavaScript.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 19/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 182ms

Fully tested on Sep 21, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Beginner
Endpoint last called: 2026-09-21

Similar APIs

View All →