Overview
IG is a financial data API providing access to spreadbetting and CFD (Contract for Difference) market data. You can retrieve live prices, historical data, and account information for trading instruments. It is aimed at developers building trading platforms or financial analysis tools.
Beginner Tip
You must register on the IG Labs portal to get API credentials; the demo environment is a safe place to test your integration before going live.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from IG",
"description": "Spreadbetting and CFD Market Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
accounts List of trading accounts associated with your credentials. accountId Unique identifier for a specific trading account. balance Contains balance details including available funds and deposit amounts. currency The currency code (e.g., USD, GBP) for the account balance. Implementation Example
const url = "https://labs.ig.com/gettingstarted";
// 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
Similar APIs
View All →Aletheia
Aletheia provides financial data including insider trading filings, earnings call transcripts, and financial statements for US-listed companies.
Alpaca
Alpaca provides real-time and historical market data for US equities and ETFs, along with commission-free trading capabilities.
Alpha Vantage
⭐ Beginner's PickAlpha Vantage delivers free real-time and historical stock, forex, and cryptocurrency data through a simple REST API.
Bank Data API
Bank Data API lets you instantly validate IBAN and SWIFT/BIC numbers to make sure bank account details are correct before processing a payment.
Billplz
Billplz is a payment platform API focused on the Malaysian market that lets you create bills and collect payments online.