/
v3.0.11Get access

subscribeToLiveGamesWithSport

This API provides a multi-sport live subscription designed to fetch real-time match data for several sports simultaneously. It is the go-to function for a "Live Overview" page where you need to display matches from different categories (like Counter-Strike and Dota 2) in one unified list. Data structure sport -> competition -> game

Request parameters:

NameDescriptionTypeValuesDefault
sportIds
An array of IDs (e.g., [75, 76]) that allows you to subscribe to multiple sports in a single connectionarray--
isEsport
A boolean flag that, when true, optimizes the data structure for esports.booleantrue / false-
gameLimit
Controls the "weight" of the response by limiting how many matches are returned per sport (e.g., only show the top 5 live games).number--
isCloudAvailable
Internal flag for events with cloud-based featurebooleantrue / false-
isOlympicAvailable
Filter to include or exclude Olympic-specific event data.booleantrue / false-

Call example:

subscribeToLiveGamesWithSport({
  sportIds: [75, 76]
})

Response examples:

{
  sport: {
    '75': {
      id: 75,
      name: 'Counter-Strike 2',
      order: 503,
      alias: 'CounterStrike',
      competition: {
        '18274821': {
          id: 18274821,
          name: 'Asia Champions League',
          order: 7,
          game: {
            '29748157': {
              id: 29748157,
              sport_alias: 'CounterStrike',
              start_ts: 1778590800,
              team1_name: 'THUNDERdOWNUNDER',
              team2_name: 'Alter Ego'
            }
          }
        }
      }
    },
    '76': {
      id: 76,
      name: 'Dota 2',
      order: 505,
      alias: 'Dota2',
      competition: {
        '18282577': {
          id: 18282577,
          name: 'European Pro League (EPL)',
          order: 10,
          game: {
            '29750351': {
              id: 29750351,
              sport_alias: 'Dota2',
              start_ts: 1778587200,
              team1_name: '2Move',
              team2_name: 'Power Rangers'
            }
          }
        }
      }
    }
  }
}