The NBA Team Leaderboard widget displays comprehensive NBA team player statistics across multiple performance categories including Points, Rebounds, Assists, Steals, Blocks, and Field Goal Percentage. The widget presents top-performing players in each statistical category with detailed breakdowns and comparative metrics specific to basketball. It is designed for basketball betting platforms and sports information sites that need to provide detailed NBA team insights to help users analyze player performance and make informed decisions. The widget offers season selection via dropdown, configurable statistical categories through tabs, customizable player limits, and interactive player selection handlers for seamless integration with player profile pages or betting features.
Shows the default view of the NBA Team Leaderboard widget.
See the NBA Team Leaderboard widget demo.
team.basketball.leaderboardThe widget requires teamUid along with one of the following optional identifiers for season context:
See Getting Identifiers.
Environment Requirements
Supported Sports
The NBA Team Leaderboard widget supports the following sports:
| Sport | Sport ID |
|---|---|
| Basketball | 2 |
This widget only works with NBA. The widget includes validation that checks if the tournament is NBA and displays an error if used with other leagues: "Only NBA is supported".
Illustrations of main feature variants with relevant property values below.
Shows the default view of the NBA Team Leaderboard widget.
See NBA Team Leaderboard widget demo
Properties do not always transfer from the above table directly into integration code. Properties must be transformed differently for each integration method:
SIR() callcardVariant: "compact"In javascript integration, the properties go into an object which is passed as the 4th argument of the call ti SIR() function. Please see Global SIR API
data-sr- prefixcardVariant → data-sr-card-variant| Property | Type | Default | Description |
|---|---|---|---|
teamUid | number | Required | NBA team unique identifier. See Getting Identifiers. |
seasonId | number | undefined | Season identifier. When specified, displays statistics for that specific NBA season. If omitted, uses the current NBA season. See Getting Identifiers. |
tournamentId | number | undefined | Tournament identifier. See Getting Identifiers. |
disableWidgetHeader | boolean | false | When true, hides the widget header displaying season name and "Team Leaderboard" title. When false, shows the header providing context. |
limitPlayers | number | undefined | Maximum number of players to display in each statistical category. When specified, limits the list to the top N players. If omitted, displays all players with statistics in that category. |
disableDropdown | boolean | false | When true, hides the season selection dropdown and displays the current season as static text. When false, shows the dropdown allowing users to browse historical seasons. Note: Only applicable when seasonId or tournamentId are not specified. |
tabSelected | number | 1 | Specifies which main statistical category tab is initially active. Valid values:
|
subTabSelected | number | 1 | Specifies which sub-category tab is initially active. Valid values:
|
onItemClick | function | undefined | Event handler callback function triggered when a player row is clicked or touched. Emits playerId. |
Sample Configuration:
string|numberfilters.sport.hidden → Complex objects must be passed as JSON stringsIn HTML integration, the properties go into the parent HTML object as object properties, prefixed with data-sr- as explained above.
This method supports only simple (base) properties and does not support properties that require functions.
In all examples replace sportradar in the widgetloader URL path with your clientId.
Example if your clientId is client1:
https://widgets.sir.sportradar.com/sportradar/widgetloaderhttps://widgets.sir.sportradar.com/client1/widgetloaderInitialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
)})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
SIR('addWidget', '#sr-widget', 'team.basketball.leaderboard', {
teamUid: 1
});<div id="sr-widget"></div>Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.
<div id="sr-widget"
data-sr-widget="team.basketball.leaderboard"
data-sr-team-uid="1">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>