Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Player Seasonal Stats

us.season.nba.playersStats displays seasonal statistics for NBA players.

All properties are optional. By default, the widget provides player statistics for the active season.

Parameters

NameTypeArgumentDefaultDescription
seasonIdnumberoptionalSeason ID
seasonTypestringoptional'regular'Season type: regular / playoffs
modestringoptional'perGame'Statistics mode: totals / perGame
conferencestringoptionalConference filter: eastern / western
uniqueTeamIdnumberoptionalUnique team ID filter.
qualifiesAsLeagueLeaderbooleanoptionaltrueWhen set to true enables statistical minimums to qualify a player for inclusion in a statistical category.
disableTitlebooleanoptionalWhen set to true hides the widget title.
hideFiltersbooleanoptionalWhen set to true hides all filters / dropdown.
columnsstringoptionalComma separated string of table statistics column keys. Used for picking fewer columns and a different order. Valid options are gp, pts, ast, reb, stl, blk, to, fgm, fga, fgp, ftm, fta, ftp, 3pm, 3pa, 3pp.
sortIdxstringoptionalOverrides table default sort statistics column index. 1, 2, 3...
pageLengthnumberoptional50Number of players displayed per page.
borderbooleanoptionalWhen set to true the table is displayed with a border.
onItemClickfunctionoptionalFunction/event handler. Emits playerId, uniqueTeamId, seasonId, uniqueTournamentId on table row click or touch.
Columns Option Descriptions
OptionDescription
gpGames Played
ptsPoints
astAssists
rebRebounds
stlSteals
blkBlocks
toTurnovers
fgmField Goals Made
fgaField Goals Attempted
fgpField Goal Percentage
ftmFree Throws Made
ftaFree Throws Attempted
ftpFree Throw Percentage
3pmThree Pointers Made
3paThree Pointers Attempted
3ppThree Point Percentage

Examples

<div class="sr-widget" data-sr-widget="us.season.nba.playersStats"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>
<script>
    (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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.season.nba.playersStats', {});
</script>
<div id="sr-widget"></div>
<script>
    (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/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.season.nba.playersStats', {onItemClick: function(type, obj){alert('playerId: ' + playerId + ', uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>