/
v3.0.11Get access

getCountInfo

Retrieves count information for games and competitions in the betting system

Request parameters:

NameDescriptionTypeValuesDefault
includeGameIds
Game IDs to includearray--
sportAlias
Filter by sport aliasstring"Soccer", "Basketball", "Tennis", "Volleyball", etc.-
gamePromoted
Filter promoted gamesbooleantrue / falsefalse
gameType
Filter by game type modestring"sport", "live", "willBeLiveSoon"-
gameShowType
indicates game show typestring--
withGameCount
Include game countbooleantrue / falsefalse
competitionId
Filter by competition IDstring--
withCompetitionCount
Include competition countbooleantrue / falsefalse
isFavoriteCompetition
Filter favorite competitionsbooleantrue / falsefalse
includeMarketsAsDisplayKey
Filter markets by display keysarray--

Call example:

getCountInfo({
  command: 'get_count_info',
  params: {
    sportAlias: 'Soccer',
    gameShowType: 'all',
    gamePromoted: false,
    competitionId: '12345',
    withGameCount: true,
    includeGameIds: [101, 102, 103],
    gameTypeMode: 'prematch',
    withCompetitionCount: true,
    isFavoriteCompetition: false,
    includeMarketsAsDisplayKey: [1, 2, 3]
  },
  rid: 123456789
})

Response examples:

{
  data: {
    competition: 12345,
    game: 67890
  }
}

Response parameters:

NameDescriptionTypeValues
data
object
└─ competition
competition's count (optional, depends on provided params)number-
└─ game
game's count (optional, depends on provided params)number-