Top Leagues
GET
https://testodds.cmswager.com/SportApi/GetTopLeague/{clientKey}/{language}
Explanation
The GET {baseurl}/SportApi/GetTopLeague/{ClientKey}/{language}
endpoint is used to retrieve a list of top sports leagues, sorted by their ranking. Each entry in the response array provides information about the tournament, including:
tournamentId
: A unique identifier for the tournament.tournamentName
: The name of the tournament or league.isoCode
: The ISO country code associated with the tournament.sort
: A number representing the sort order for displaying the leagues.hasLive
: A boolean indicating if there are live events currently available in the tournament.
This endpoint is useful for clients wanting to display a sorted list of popular sports leagues across different regions and languages.
Example Success Response
[
{
"tournamentId": 17,
"tournamentName": "Premier League",
"isoCode": "ENG",
"sort": 1,
"hasLive": false
},
{
"tournamentId": 8,
"tournamentName": "LaLiga",
"isoCode": "ESP",
"sort": 3,
"hasLive": false
},
{
"tournamentId": 35,
"tournamentName": "Bundesliga",
"isoCode": "DEU",
"sort": 5,
"hasLive": false
},
{
"tournamentId": 34,
"tournamentName": "Ligue 1",
"isoCode": "FRA",
"sort": 7,
"hasLive": false
},
{
"tournamentId": 23,
"tournamentName": "Serie A",
"isoCode": "ITA",
"sort": 9,
"hasLive": false
},
{
"tournamentId": 238,
"tournamentName": "Primeira Liga",
"isoCode": "PRT",
"sort": 11,
"hasLive": false
},
{
"tournamentId": 37,
"tournamentName": "Eredivisie",
"isoCode": "NLD",
"sort": 13,
"hasLive": false
},
{
"tournamentId": 132,
"tournamentName": "NBA",
"isoCode": "USA",
"sort": 30,
"hasLive": false
},
{
"tournamentId": 2591,
"tournamentName": "US Open Men Singles",
"isoCode": "ATP",
"sort": 55,
"hasLive": false
}
]
Last updated