Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Top Players

us.season.ncaaf.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'passing_yards'Selected Stat. See below for valid options.
playersLimitnumberoptional5Maximum number of players to display.
conferencestringoptionalall conferencesThe conference to display. Options are: aac, acc, big12, b1g, cusa, indepfbs, mac, mw, pac12, sec, sunbelt.
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:
OptionDescription
passing_yardsPassing Yards
passing_touchdownsPassing Touchdowns
passing_completion_percentageCompletion Percentage
passing_interceptionInterceptions Thrown
rushing_attemptsRushing Attempts
rushing_yardsRushing Yards
rushing_touchdownsRushing Touchdowns
yards_per_carryYards Per Carry
points_per_gamePoints Per Game
receiving_receptionsReceptions
receiving_yardsReceiving Yards
receiving_touchdownsReceiving Touchdowns
sacksSacks
interceptionsInterceptions
interception_yardsInterception Yards
forced_fumblesForced Fumbles
tacklesTackles

Examples

<div class="sr-widget" data-sr-widget="us.season.ncaaf.topPlayers" data-sr-season-id="46582"></div></code>
<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.ncaaf.topPlayers', {year: 2017, seasonType: 'playoffs', statType: 'sacks'});
</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.ncaaf.topPlayers', {seasonId: 46582, statType: 'passing_completion_percentage', onItemClick: function(type, obj){alert('playerId: ' + obj.playerId);}});
</script>
<div id="sr-widget"></div>