Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Player Statistics

us.player.nfl.statistics provides seasonal statistics for a given player and season.

For the widget to render you must provide a valid playerId, seasonId, and seasonType. All other properties are optional.

Parameters

Name Type Description
props object properties
Name Type Argument Default Description
playerId string required Player ID
seasonId number required Season ID
seasonType string required Season Type. Valid values are: pre, reg, and pst.
disableWidgetHeader boolean optional false When set to true hides the widget header.
enableTeamSelect boolean optional false When set to true enables team selection. Interactive areas are: team logo, player image. TeamId is emitted on click or touch.
enablePlayerSelect boolean optional false When set to true enables player selection. Interactive areas are: player image. PlayerId is emitted on click or touch.
border boolean optional If true enables a border around the widget.
onItemClick function optional Function/event handler. Emits uniqueTeamId on click or touch.

Examples

<div id="sr-widget" data-sr-widget="us.player.nfl.statistics" data-sr-player-id="sd:player:c3859e06-5f23-4302-a71b-04820a899d5f" data-sr-season-id="2015" data-sr-season-type="reg"></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.player.nfl.statistics', {playerId: 'sd:player:41c44740-d0f6-44ab-8347-3b5d515e5ecf', seasonId: 2020, seasonType: 'reg'});
</script>
<div id="sr-widget"></div>