/
v3.0.11Get access

getSportsOnly

Retrieves sports data, with optional filters

Request parameters:

NameDescriptionTypeValuesDefault
includeSportTypes
Sport types to includearray["esport", "racing", "virtual", "general", "fighting"]-
excludeSportTypes
Sport types to exclude (ignored if include)array["esport", "racing", "virtual", "general", "fighting"]-
language
Localized language abbreviation string configurationstring--
sportAlias
Filters results to a specific sport aliasstring--
isCloudAvailable
Filtering by cloud sportsbooleantrue / false-
isOlympicAvailable
Filtering by olympic sportsbooleantrue / false-

Call example:

getSportsOnly({
  includeSportTypes: ['esport', 'virtual', 'general']
})

Response examples:

{
  code: 0,
  rid: 1317839608,
  data: {
    data: {
      sport: {
        '1': {
          id: 1,
          name: 'Football',
          alias: 'Soccer',
          order: 1,
          type: 2
        },
        '2': {
          id: 2,
          name: 'Ice Hockey',
          alias: 'IceHockey',
          order: 5,
          type: 2
        },
        '3': {
          id: 3,
          name: 'Basketball',
          alias: 'Basketball',
          order: 2,
          type: 2
        }
      }
    }
  },
  hasError: false,
  error: {
    message: ''
  }
}

Response parameters:

NameDescriptionTypeValues
data
object
└─ sport
object1, 2, etc.
└─
Key is sport id object
└─ id
Unique sport identifier number-
└─ name
Display name of the sport string-
└─ alias
Short identifier used for icons and routingstring-
└─ order
Display sort ordernumber-
└─ type
Sport type identifiernumber-