Getting Started
Welcome! In this guide, we'll walk you through the basics of using the Broker Radar API to get real-time spread data from multiple MT5 brokers.
Our Broker Radar API provides real-time spread data from 37+ MT5 brokers including Exness, FxPro, Pepperstone, and more. The API is completely free, requires no authentication, and supports CORS for browser requests.
Base URL: https://api.broker-radar.com
/public/spreads
- Get all spreads (24h)/public/spreads/[broker]
- Get broker spreads/public/spreads/[symbol]
- Get symbol spreads/public/spreads/broker/[broker]/[account_type]
- Get broker + account type spreads/public/spreads/symbol/[symbol]/[account_type]
- Get symbol + account type spreadsLet's test the API using curl
. Paste the following directly into your terminal:
curl -X GET "https://api.broker-radar.com/public/spreads"
Use our interactive API tester below to make live requests and see the responses:
Here are code examples in different programming languages to help you integrate the API:
// Get all spreads from last 24 hours
fetch('https://api.broker-radar.com/public/spreads')
.then(response => response.json())
.then(data => {
console.log('Total records:', data.total_records);
console.log('Brokers:', data.brokers_count);
console.log('Symbols:', data.symbols_count);
data.data.forEach(spread => {
console.log(`${spread.broker_name} - ${spread.symbol}: ${spread.avg_spread} pips (${spread.account_type})`);
});
});
// Get specific broker with account type
fetch('https://api.broker-radar.com/public/spreads/broker/roboforex_ecn/ECN')
.then(response => response.json())
.then(data => {
console.log(`${data.broker_name} ECN account symbols: ${data.total_symbols}`);
data.symbols.forEach(symbol => {
console.log(`${symbol.symbol}: ${symbol.avg_spread} pips`);
});
});
// Get specific symbol with account type
fetch('https://api.broker-radar.com/public/spreads/symbol/EURUSD/ECN')
.then(response => response.json())
.then(data => {
console.log('EURUSD ECN accounts from ' + data.total_brokers + ' brokers');
console.log('Best spread: ' + data.best_spread + ' pips');
});
All API responses follow a consistent JSON structure. Here's what you can expect:
{
"success": true,
"data": [
{
"broker_name": "roboforex_ecn",
"platform": "MT5",
"account_type": "ECN",
"source": "broker-radar.com",
"symbol": "EURUSD",
"avg_spread": 1.2,
"min_spread": 0.8,
"max_spread": 2.1,
"date_time": "2025-08-25T12:00:00.000Z",
"last_updated": "2025-08-25T12:00:00.000Z"
}
],
"total_records": 1250,
"brokers_count": 37,
"symbols_count": 45,
"timestamp": "2025-08-25T12:00:00.000Z",
"api_version": "1.0"
}
DATABASE_ERROR
- Database connection issueINVALID_INPUT
- Invalid parametersSYMBOL_NOT_FOUND
- Symbol not availableNO_DATA
- No data availableNeed help? Check out our API homepage or contact our support team.