subscribeToUpcomingEventsWithSport
This API is the "Heavy Pre-match" version of your data subscriptions. It doesn't just show upcoming games; it includes the primary betting markets (like Match Result) and their live odds directly in the response. It is used to build the main "Sports Betting Lobby" where users see a list of future games and can place a quick bet without clicking into the match.
Data structure sport -> region -> competition -> game
Documentation
Try it now
Request parameters:
Call example:
subscribeToUpcomingEventsWithSport({
sportAlias: 'Soccer',
marketDisplayKeys: 'FIRST GOAL'
})Response examples:
{
sport: {
'42': {
id: 42,
alias: 'WaterPolo',
region: {
'20042': {
id: 20042,
name: 'Europe',
alias: 'Europe',
order: 12,
competition: {
'1070': {
id: 1070,
name: 'Champions League',
order: 2002,
game: {
'29713433': {
id: 29713433,
info: {
current_game_state: 'notstarted',
current_game_time: '08:00',
score1: '0',
score2: '0',
shirt1_color: '000000',
shirt2_color: '000000',
short1_color: '000000',
short2_color: '000000',
field: 0
},
stats: {
passes: {
team1_value: null,
team2_value: null
}
},
is_live: 0,
start_ts: 1778610600,
team1_id: 5545,
team2_id: 5548,
_parent_id: 1070,
is_blocked: 0,
team1_name: 'HAVK Mladost',
team2_name: 'Pro Recco',
sport_alias: 'WaterPolo',
region_alias: 'Europe',
markets_count: 26,
favorite_order: null,
is_stat_available: true,
market: {
'2251053989': {
id: 2251053989,
type: 'P1XP2',
name: 'Match Result',
order: 400000,
cashout: 1,
sequence: 0,
col_count: 3,
group_name: 'Match',
market_type: 'MatchResult',
group_order: 1,
point_sequence: 0,
event: {
'6697850389': {
id: 6697850389,
price: 6,
name: 'W1',
order: 0
},
'6697850391': {
id: 6697850391,
price: 1.19,
name: 'W2',
order: 2
},
'6697850390': {
id: 6697850390,
price: 9.7,
name: 'X',
order: 1
}
}
}
}
}
}
}
}
}
}
}
}
}