Access 1xBet Data
via API
Get real-time odds, live scores, match results, league data, and in-play events through a single, well-documented RESTful API. Built for developers, by developers.
What You Get
Live Odds
Real-time pre-match and in-play odds across all sports with sub-second updates.
Live Scores
Track live scores, match timelines, and game events as they happen in real time.
Markets & Periods
Access all betting markets, periods, and outcomes for any match or league.
Leagues & Sports
Browse 150+ sports and thousands of leagues with full hierarchy and metadata.
Match Results
Historical and current match results with detailed event breakdowns per league.
In-Play Events
Get live game events like goals, cards, substitutions — perfect for live dashboards.
Quick Start
Make your first API request in under a minute. Here's an example fetching live odds:
const response = await fetch('https://api.xbetapi.com/v2/odds', {
method: 'GET',
headers: {
'X-API-Key': 'your_api_key_here',
'Sport': 'football'
}
});
const data = await response.json();
console.log(data);
Base URL
https://api.xbetapi.com/v2
Authentication
All requests require an API key passed via the X-API-Key header.
Available Endpoints
Sports
Matches
Response Format
All API responses are returned in JSON format with consistent structure:
{
"success": true,
"data": {
"sport_id": 1,
"sport_name": "Football",
"leagues": [
{
"id": 1234,
"name": "Premier League",
"country": "England",
"matches_count": 380
}
]
},
"pagination": {
"page": 1,
"per_page": 50,
"total": 250
}
}
Error Codes
Ready to get started?
Sign up for a free trial and get 1,000 requests per day — no credit card required.