NBA Box Score widget displays comprehensive individual player statistics for NBA basketball matches in a detailed, sortable table format. It provides complete box score data including minutes played, scoring (points, field goals, 3-pointers, free throws with made/attempted and percentages), rebounding (offensive, defensive, total), assists, steals, blocks, turnovers, fouls, and efficiency ratings. The widget features an interactive team selector to switch between home and away teams, starter indicators to distinguish starting lineup from substitutes, sortable columns for all statistical categories, team totals and averages calculated automatically, and configurable display modes (standard, compact, mobile-optimized). Users can click on any player to trigger navigation callbacks for detailed player profiles. This widget is essential for post-game analysis, statistical breakdowns, fantasy basketball, player performance evaluation, and providing comprehensive box score information that matches traditional basketball scorekeeping.

Shows the default view of the NBA Box Score widget.
See the NBA Box Score widget demo.
match.basketball.boxScoreEnvironment Requirements
Supported Sports
The NBA Box Score widget supports the following sports:
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".
Column Keys for defaultSorting:
Playing Time & Status:
starters - Starting lineup indicator (default)mp - Minutes PlayedScoring:
pts - PointsRebounding:
oreb - Offensive Reboundsdreb - Defensive Reboundsreb - Total ReboundsOther Stats:
to - Turnoversast - Assistsstl - Stealsblk - Blocksba - Blocks Againstpf - Personal Foulseff - EfficiencyAll Box Score Statistics:
Illustrations of main feature variants with relevant property values below.
Shows the default view of the NBA Box Score widget.

Sample Configuration:
string|numberProperties 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 |
|---|---|---|---|
matchId | number | Required | The unique identifier for the match. See Getting Identifiers |
selectedTeam | string | "home" | Determines which team's box score to display initially: "home" or "away". User can switch teams via dropdown unless disabled. |
disableTeamPicker | boolean | false | When true, hides the team selector dropdown. Use when displaying single team box score without comparison context. |
disableWidgetHeader | boolean | false | When true, hides the widget header displaying match information. |
defaultSorting | string | "starters" | Default column to sort by on initial load. See Box Score Column Keys below for options. In mobile mode, defaults to "mp" if set to "starters". |
compactMode | boolean | false | When true, uses reduced row heights (36px instead of 46px) for space-efficient display. |
onItemClick | function | null | Callback function triggered when player row is clicked. Emits playerId |
filters.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', 'match.basketball.boxScore', {
matchId: 123
});<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="match.basketball.boxScore"
data-sr-match-id="123">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>