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

Prematch Active Sports

PreviousTop LeaguesNextPrematch Sport Menu

Last updated 4 months ago

GET /SportApi/GetSportMenu/{clientKey}/{language}

The response to the GET request at the provided endpoint returns a JSON object containing a list of active sports. Each sport in the list includes a unique sportId, the sportName, and the sportType. This data can be used to display available sports to users in a multilingual sports application, as indicated by {language} placeholders in the URL, which likely allows customization based on client-specific and language-specific parameters. This structure is beneficial for organizing sports by ID and name, facilitating a streamlined user experience in selecting sports of interest.

Example Success Response

{
    "sports": [
        {
            "sportId": 1,
            "sportName": "Soccer",
            "sportType": 1
        },
        {
            "sportId": 2,
            "sportName": "Basketball",
            "sportType": 1
        },
        {
            "sportId": 5,
            "sportName": "Tennis",
            "sportType": 1
        },
        {
            "sportId": 23,
            "sportName": "Volleyball",
            "sportType": 1
        },
        {
            "sportId": 3,
            "sportName": "Baseball",
            "sportType": 1
        },
        {
            "sportId": 20,
            "sportName": "Table Tennis",
            "sportType": 1
        },
        {
            "sportId": 4,
            "sportName": "Ice Hockey",
            "sportType": 1
        },
        {
            "sportId": 16,
            "sportName": "American Football",
            "sportType": 1
        },
        {
            "sportId": 46,
            "sportName": "Cross-Country",
            "sportType": 1
        },
        {
            "sportId": 31,
            "sportName": "Badminton",
            "sportType": 1
        },
        {
            "sportId": 6,
            "sportName": "Handball",
            "sportType": 1
        },
        {
            "sportId": 10,
            "sportName": "Boxing",
            "sportType": 1
        },
        {
            "sportId": 21,
            "sportName": "Cricket",
            "sportType": 1
        },
        {
            "sportId": 22,
            "sportName": "Darts",
            "sportType": 1
        },
        {
            "sportId": 19,
            "sportName": "Snooker",
            "sportType": 1
        },
        {
            "sportId": 117,
            "sportName": "MMA",
            "sportType": 1
        },
        {
            "sportId": 9,
            "sportName": "Golf",
            "sportType": 1
        },
        {
            "sportId": 29,
            "sportName": "Futsal",
            "sportType": 1
        },
        {
            "sportId": 40,
            "sportName": "Formula 1",
            "sportType": 1
        },
        {
            "sportId": 17,
            "sportName": "Cycling",
            "sportType": 1
        },
        {
            "sportId": 12,
            "sportName": "Rugby",
            "sportType": 1
        },
        {
            "sportId": 26,
            "sportName": "Waterpolo",
            "sportType": 1
        },
        {
            "sportId": 15,
            "sportName": "Bandy",
            "sportType": 1
        },
        {
            "sportId": 44,
            "sportName": "Biathlon",
            "sportType": 1
        },
        {
            "sportId": 7,
            "sportName": "Floorball",
            "sportType": 1
        },
        {
            "sportId": 136,
            "sportName": "Gaelic Hurling",
            "sportType": 1
        }
    ]
}

https://testodds.cmswager.com