Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Top Players

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

For the widget to render you must provide a valid seasonId.

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

Parameters

Description
properties
Name Type Argument Description
seasonId number required Season ID (Year)
seasonType string optional Season type. Valid options are: pre, reg, or pst.
statType string optional Selected Stat. See below for valid options.
playersLimit number optional Maximum number of players to display.
hidePlayers boolean optional Hide player images.
disableHeader boolean optional Hides the header.
disableDropdown boolean optional Hides the dropdown.
showTitle boolean optional Instead of dropdown, display the stat name in the title.

Valid options for statType:

Option Description
passing_yards Passing Yards
passing_touchdowns Passing Touchdowns
pass_completions Completion Percentage
pass_receptions Receptions
run_after_catch Yards After Catch
rushing_yards Rushing Yards
rushing_touchdowns Rushing Touchdowns
yards_per_carry Yards Per Carry
carries Carries
lost_fumbles Lost Fumbles
forced_fumbles Forced Fumbles
thrown_interceptions Interceptions Thrown
interceptions Interceptions
tackles_assists Tackles
tackles Solo Tackles
assists Assisted Tackles
sacks Sacks

Examples

<div class="sr-widget" data-sr-widget="us.season.nfl.topPlayers" data-sr-season-id="2018" data-sr-provider-id="2"></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.nfl.topPlayers', {seasonId: 2018, providerId: 2});
</script>
<div id="sr-widget"></div>