Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Player Game Logs

us.player.gameLogs shows per game statistics for a given player in a season.

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

Parameters

NameTypeDescription
propsobjectproperties
NameTypeArgumentDescription
playerIdnumberrequiredPlayer ID
seasonIdnumberrequiredSeason ID
seasonTypestringoptionalSeason Type: regular / playoffs
uniqueTournamentIdnumberoptionalIf seasonId is not provided, uniqueTournamentId can be used to get the current active season in that tournament.
sortIdxstringoptionalOverrides table default sort column index. 1, 2, 3..; Usually used with sortDirection.
sortDirectionstringoptionalOverrides table default sort direction. Valid options are asc and desc. Usually used with sortIdx.
enableLimitbooleanoptionalSwitches into limited mode. If there are more than 10 games, it shows only 10 games with an option to extend the games view. Games are sorted from newest on.
borderbooleanoptionalIf true enables a border around the widget.
onItemClickbooleanFunction/event handler. Emits matchId and other props on table row click or touch.

Examples

<div class="sr-widget" data-sr-widget="us.player.nfl.gameLogs" data-sr-player-id="sd:player:41c44740-d0f6-44ab-8347-3b5d515e5ecf" data-sr-season-id="2021"></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.gameLogs', {playerId: 'sd:player:41c44740-d0f6-44ab-8347-3b5d515e5ecf', seasonId: 2021});
</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.player.nfl.gameLogs', {playerId: 'sd:player:41c44740-d0f6-44ab-8347-3b5d515e5ecf', seasonId: 2021, onItemClick: function(target, props){alert('target: ' + JSON.stringify(props));}});
</script>
<div id="sr-widget"></div>
match: {"matchId":"sd:match:f0e1490c-e9c3-479d-b937-cb2e3930b29b","seasonId":2021,"awayTeamId":"sd:team:e6aa13a4-0055-48a9-bc41-be28dc106929","homeTeamId":"sd:team:4254d319-1bc7-4f81-b4ab-b5e6f3402b69"}