CmsWager Integration Document
  • Introduction
  • Before Start
  • Sportsbook UI
    • Integration
    • Window Message Events
  • CmsWager Api
    • Summary
    • Authentication
    • API Reference
      • Login/Register User
      • Freebet and Bonus assignment
    • Errors
  • Client API Reference
    • Summary
    • Api Reference
      • Bet placement
      • Cancelling bets
      • Concluding bets
      • Reopening concluded bets
      • Partial Cashout
      • Insurance
  • Frontend Api (optional)
    • Summary
    • Api Reference
      • Components
        • Top Leagues
        • Prematch Active Sports
        • Prematch Sport Menu
        • Last minute
        • Live now (reduced)
      • Matches
        • Tournament Odds
        • Match Odds
  • Appendix
    • Transaction types
    • Bet Status
    • Bet Type
    • Error Codes
Powered by GitBook
On this page
  1. Frontend Api (optional)
  2. Api Reference
  3. Components

Top Leagues

PreviousComponentsNextPrematch Active Sports

Last updated 4 months ago

GET /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
    }
]

https://testodds.cmswager.com