/
v3.0.11Get access

getCompetitions

The command retrieves a list of sports competitions from the betting provider. It allows for highly specific filtering by sport, region, live status, and user favorites. This command is essential for populating competition selectors, navigation menus, or specific league landing pages in the Sportsbook and Casino views

Request parameters:

NameDescriptionTypeValuesDefault
competitionLimit
Restricts the number of competition records returnednumber--
isFavorite
If set to true, filters the competitions to only return those marked as favorites by the userbooleantrue / false-
isLive
Filters for competitions that currently have active "Live" games. If false or omitted, it defaults to Pre-match and upcoming modesbooleantrue / false-
includeRegion
When true, the response will include region metadata associated with each competitionbooleantrue / false-
searchCompetitionName
This parameter allows for dynamic filtering of results based on the competition's display namestring--
regionId
Is used to narrow down the competition list to a specific geographical area or countrynumber--
excludeCompetitionIds
An array to exclude specific IDs, used to fetch a targeted set of competitionsarray--
includeCompetitionIds
An array to include specific IDs, used to fetch a targeted set of competitionsarray--
isEsport
Filters for Electronic Sports categories only.booleantrue / false-
isCloudAvailable
Filtering by cloud sportsbooleantrue / false-
isOlympicAvailable
Filtering by olympic sportsbooleantrue / false-
isBetBuilderAvailable
A toggle to filter the subscription for games that support the Bet Builder feature (allowing users to combine multiple markets from the same game into a single wager)booleantrue / false-
isInternalBetBuilderAvailable
Feature toggles that instruct the stream to include or exclude complex same-game-parlay (Internal Bet Builder) pricing configurations and data structures.booleantrue / false-
language
Used for competition name searchingstring--
sportAlias
Contains sport alias valuestring--
regionAlias
Contains region alias valuestring--

Call example:

getCompetitions({
  limit: 10,
  isFavorite: true,
  onlyLiveGames: true
})

Response examples:

{
  result: {
    data: {
      competitions: {
        sport: {
          alias: 'Soccer'
        },
        region: {
          alias: 'England'
        },
        id: 538,
        name: 'Premier League',
        order: 1
      }
    }
  }
}

Response parameters:

NameDescriptionTypeValues
competitions
This object contains the primary attributes of the competitionobject
└─ id
The unique system identifier for the competitionnumber-
└─ name
The official display name of the competitionstring-
└─ order
The display priority of the competitionnumber-
└─ sport
The sport object identifies the top-level category to which the competition belongsobject
└─ alias
A unique, constant, and non-localized string identifierstring"Soccer", "Tennis", etc.
└─ region
The region object provides the geographical or organizational "territory" of the competitionobject
└─ alias
A unique string identifier for the region or countrystring"Spain", "Armenia", etc.