NBA Team Info widget provides comprehensive team statistics and performance metrics for NBA basketball teams. The widget displays team header information, team statistics, top players, recent results, and upcoming fixtures in a unified view. It is designed for sports platforms that need to showcase detailed team profiles with key performance indicators, roster highlights, and match schedules. The widget supports NBA teams exclusively and requires valid team and season identifiers. Integration with player and match detail pages is provided through click handlers.
Shows the default view of the NBA Team Info widget.
See the NBA Team Info widget demo.
team.basketball.infoThe widget requires one of the following parameter combinations to function:
See Getting Identifiers.
Environment Requirements
Supported Sports
The NBA Team Info 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".
* Conditional Requirement: One of seasonId, tournamentId, or uniqueTournamentId must be provided along with teamUid.
Illustrations of main feature variants with relevant property values below.
Shows the default view of the NBA Team Info widget.
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 | Unique identifier for the NBA team. See Getting Identifiers |
seasonId | number | Conditional* | Season identifier for the NBA season. See Getting Identifiers |
tournamentId | number | Conditional* | Tournament identifier for the NBA. See Getting Identifiers |
uniqueTournamentId | number | Conditional* | Unique tournament identifier for the NBA (e.g., 132 for NBA). See Getting Identifiers |
limitGames | number | 5 | Number of last/next games to display. Controls how many recent results and upcoming fixtures are shown. |
disableWidgetHeader | boolean | false | When true, hides the widget header displaying "NBA" text. |
onItemClick | function | undefined | Unified callback function triggered when any clickable item (player or match) is clicked. Emits playerId/matchId. |

Sample Configuration:
string|numberstring|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.info', {
teamUid: 1,
uniqueTournamentId: 132
});<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.info"
data-sr-team-uid="1"
data-sr-unique-tournament-id="132">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>