Widgets.us.season.nfl.PlayersStats

us.season.nfl.playersStats displays players statistics data for selected season.

All the properties are optional. By default renders player statistics table for the active season. There are also filters by which data can be filtered. Data can be filtered by season type (regular season, playoffs) by team name and by specific stats category which are the following:

  • passing
  • rushing
  • A
  • receiving
  • defense
  • kicking
  • punting and returns
  • player position

new PlayersStats(props [, useRadar360Qualifiers])

Parameters
Name Type Argument Default Description
props object
Properties
Name Type Argument Default Description
seasonId number <optional>

Year (e.g. 2019) or Fishnet Season Id (e.g. 63509 for 2019) of regular sequence (i.e. unique tournament id 31).

seasonType number <optional>
'regular'

Season type. Valid options are: regular and playoffs.

category string <optional>
'passing'

Statistics mode, one of: passing, rushing, receiving, defense, kicking, punting, returns.

conference number <optional>
'all'

Conference filter. Valid options are: all, afc, nfc.

teamId number <optional>

Team filter. Input NFL team ID with or without 'sd:team:' prefix. When teamId is entered team dropdown automatically hides.

qualifiesAsLeagueLeader boolean <optional>
true

When set to true, enables statistical minimums to qualify a player for inclusion in a statistical category.

useRadar360Qualifiers boolean <optional>

When set to true, uses radar360 data as qualifiers source.

props.pageLength number <optional>
50

How many players display per page.

props.disableTitle boolean <optional>

When set to true, hides widget title.

props.hideFilters boolean <optional>

When set to true, hides all filters / dropdowns.

props.disableCategoryDropdown boolean <optional>

When set to true, hides category dropdown.

props.disableQualifiersSwitch boolean <optional>

When set to true, hides qualifiers switch.

props.disableSeasonDropdown boolean <optional>

When set to true, hides season dropdowns.

props.disableSeasonTypeDropdown boolean <optional>

When set to true, hides season type dropdowns.

props.disableConferenceDropdown boolean <optional>

When set to true, hides conference dropdowns.

props.disableTeamsDropdown boolean <optional>

When set to true, hides teams dropdowns.

props.disablePositionsDropdown boolean <optional>

When set to true, hides positions dropdowns.

props.border boolean <optional>

When set to true, table is displayed with border.

props.passingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, passer_rat, passing_comp, passing_att, passing_cmp_pct, passing_yds, passing_tds, passing_int, passing_yds_att, passing_yds_game, catchable_pass, sacks_allowed, hurries, avg_pocket_time.

props.rushingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, rush_att, rush_yds, rush_avg, rush_td, rush_att_game, rush_yds_game, rush_first_downs, rush_stuff_pct, fumbles, fumbles_lost, rushing_td_pct, rush_yac_avg, rush_ybc_avg, rush_brk_tack

props.receivingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, targets, receptions, rec_yds, rec_tds, targets_game, rec_yds_game, yds_rec, first_down_pct, avg_yds_catch, avg_yac, rec_drop, brk_tack

props.defenseColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, tot_tack, assists, def_sacks, def_sack_yds, forced_fumbles, def_tgt, passes_defended, def_int, int_td, safety, tfl, def_blitz, qbh, def_knocks, def_hurries, pressures, def_snaps

props.kickingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, kickoffs, kickoffs_tb, kickoffs_tb_pct, kickoffs_yds, kickoff_yds_avg, fgm, fga, fg_pct, xpm, xpa, xp_pct

props.puntingColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, punts, gross_punt_yds, gross_punt_avg, punts_blocked, punting_touchbacks, punt_i20, punt_long, net_punt_yds, net_punt_avg, hang

props.returnsColumns string <optional>

Comma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are team, position, punt_returns, punt_ret_yds, punt_ret_avg, punt_ret_fc, punt_ret_long, punt_ret_td, kickoff_returns, kickoff_return_yds, kickoff_return_avg, kick_return_long, kickoff_return_td

props.passingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.rushingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.receivingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.defenseSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.kickingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.puntingSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.returnsSortIdx string <optional>

Overrides pitching table default sort statistics column index. 1, 2, 3...

props.onItemClick function <optional>

Function/event handler. Emits playerId, teamId, seasonId, uniqueTournamentId on table row click or touch.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.season.nfl.playersStats" data-sr-season-id="2019"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/uscommon/widgetloader" data-sr-language="en_us" async></script>

JS/Programmatic

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.nfl.playersStats', {seasonId: 2019, qualifiesAsLeagueLeader: false, teamId: 'sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9'});
</script>

JS/Example of using Event Handler

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.season.nfl.playersStats', {seasonId:'63509', onItemClick: function(type, obj){alert(type +': ' + JSON.stringify(obj));}});
</script>