/
v3.0.11Get access

subscribeToRacingGamesWithCompetition

This API function establishes a real-time subscription focused on specific racing competitions, tournaments, or cup events.

Request parameters:

Name
DescriptionTypeValuesDefault
competitionId
Targets the unique identifier for a specific racing series, tournament, or scheduled multi-race event structurenumber--
sportAlias
Specifies the exact racing discipline being trackedstring"HorseRacing" / "SISGreyhound"-

Call example:

subscribeToRacingGamesWithCompetition({
  competitionId: 4902,
  sportAlias: 'HorseRacing'
})

Response examples:

{
  competition: {
    '4902': {
      id: 4902,
      name: 'Yarmouth',
      game: {
        '29880020': {
          id: 29880020,
          start_ts: 1779978180
        },
        '29880021': {
          id: 29880021,
          start_ts: 1779979980
        },
        '29880022': {
          id: 29880022,
          start_ts: 1779981780
        },
        '29880023': {
          id: 29880023,
          start_ts: 1779984000
        }
      }
    }
  }
}