Livescore widget

Description

The Basketball Live Score Widget is designed to provide real-time updates of basketball games to fans. This widget can be easily integrated into a website or application to provide up-to-date information on the scores of current and upcoming games. The widget includes the following features:

  • Live Scores: Displays the live scores of current and upcoming games.
  • Team Logos: Displays the logos of the teams playing in the games.
  • Game Status: Indicates whether the game is live, upcoming, or final.
  • Score: Provides a real-time score of the game.
  • Odds: Provides a seamless odds integration

The widget is fully customizable to match the look and feel of your website or application. Users can choose between light or dark color schemes. Additionally, the widget is responsive, so it will adjust to fit the size of the screen it is being viewed on.

Integrating the Basketball Live Score Widget is easy and straightforward, include the library's JavaScript files on your webpage, and initialize the widget with the proper configuration to access and display real-time data.

Widget Options

NameExample valueRequired
data-widget-sport"basketball"YES
data-widget-type"tournament"YES
data-widget-id"basketball-livescore"YES
data-config-team-short-name-type"three_letter_code" or "short_name"Optional
data-config-short-status-type"full_name" or "short_name"Optional
data-config-date{"date": "2022-12-03", "dateFormat": "dd LLL HH:mm"}Optional
data-config-theme"light", "dark" or "client"Optional
data-config-popular-list"default"Optional
data-status-filter"LIVE"Optional
data-config-refresh-timeSee Note 1 belowOptional
data-config-entity-linksSee Note 2 belowOptional
data-labelsSee Note 3 belowOptional
data-config-oddsSee _Note 4_ belowOptional

📘

Note 1

Example Refresh times

  "super_fast" - 15 seconds
  "fast" - 30 seconds
  "medium" - 1 minute
  "slow" - 3 minutes
  "super_slow" - 10 minutes
  "never" - doesn’t refresh the data

📘

Note 2

Example Entity links

  {
    "team": {
      "url": "https://test.com/basketball/team-{teamId}"
    },
    "competition": {
      "url": "https://test.com/basketball/league-{competitionId}"
    },
    "standings": {
      "url": "https://test.com/basketball/league-{competitionId}#standings"
    },
    "match": {
      "url": "https://test.com/basketball/match-{teamId}-{teamId}#{matchId}",
      "sort": {"criteria": "alphabetically", "direction": "asc"}
    },
    "configuration": {
      "newWindow": true
    }
  }

📘

Note 3

Example Livescore Data labels

  {
    "all": "All Games",
    "popular": "Popular",
    "scheduled": "Upcoming",
    "live": "Live",
    "finished": "Finished",
    "odds": "With Odds",
    "no_games": "There are no available games"
  }

📘

Note 4

Example Odds config

  {
    "bettingId": "154",
    "display": true,
    "market": "12",
    "preEventOnly": true,
    "marketValueType": "decimal"
    }