Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Top Players

us.season.ncaab.topPlayers displays a top 5 leaderboard for a given season, with a dropdown to select by statistic.

All properties are optional. By default, the widget will display the active season.

To have specific stats for players, statType must be set.

Parameters

Description
properties
NameTypeArgumentDefaultDescription
seasonIdnumberrequiredSeason ID. Has priority over year and seasonType.
yearnumberoptionalSelected year as friendly alternative to seasonId. Used in conjunction with seasonType.
seasonTypestringoptional'total'Season type. Valid options are: regular, playoffs, or total. Used in conjunction with year.
statTypestringoptional'points'Selected Stat. See below for valid options.
playersLimitnumberoptional5Maximum number of players to display.
divisionstringoptionaldIThe division to display. Click here to see a list of valid options.
conferencestringoptionalall conferencesThe conference to display. Click here to see a list of valid conferences.
disableDropdownbooleanoptionalIf true hides the dropdown.
disableHeaderbooleanoptionalIf true hides the widget header.
showTitlebooleanoptionalIf true turns the dropdown into a title.
hidePlayersbooleanoptionaltrueIf true hides player images.
borderbooleanoptionalIf true enables a border around the widget.
onItemClickfunctionoptionalFunction/event handler. Emits playerId on click or touch.
Valid options for statType:
  • points
  • rebounds
  • assists
  • blocks
  • steals
  • turnovers
  • three_points_made
  • field_goals_made
  • points_per_game
  • rebounds_per_game
  • assists_per_game
  • steals_per_game
  • field_goals_made_per_game
  • blocks_per_game
  • field_goals_percentage
  • three_points_percentage

Examples

<div class="sr-widget" data-sr-widget="us.season.ncaab.topPlayers" data-sr-season-id="65549"></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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.season.ncaab.topPlayers', {year: 2021, seasonType: 'regular', statType: 'rebounds'});
</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.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.season.ncaab.topPlayers', {seasonId: 65549, statType: 'points', onItemClick: function(type, obj){alert('playerId: ' + obj.playerId);}});
</script>
<div id="sr-widget"></div>