Widget Docs
Coverage MatrixDocumentationRelease LogLog InContact Us

Scores

us.season.nfl.scores displays weekly schedules and results for all NFL games.

All the properties are optional. By default, the widget will render the active season and week.

Parameters

Name Type Argument Default Description
seasonId number optional Season ID (Year)
seasonType string optional Season type. Valid options are: pre, reg, or pst.
week number optional Week number.
firstSeasonId number optional 200 The oldest season year for the season dropdown to display.
disableGameHeader boolean optional If true the headers of games are hidden.
disableGameInfo boolean optional If true hides collapsible content (i.e. game information).
disableGameInfoXSmall boolean optional 'true' If true hides collapsible content (i.e. game information) on X-Small responsive breakpoint (<321px).
disablePitchSwitch boolean optional If true hides "SHOW FIELD" switch. However disablePitch prop is still operational.
disablePitch boolean optional Switches pitch visualization (i.e. "SHOW FIELD") switch off. Pitch visualization is only available with live games.
autoSlide boolean optional true If false disables auto sliding of the content in the game info section.
autoSlideSpeed number optional 5000 Sets the delay of auto sliding of the content in the game info section (in milliseconds).
preMatchLinks string optional Comma separated string of link keys for pre-game. Can be undefined, default, preview, boxscore, gametracker, recap. Entering default is the same as entering 'preview'.
liveMatchLinks string optional Comma separated string of link keys for live-match. Can be undefined, default, preview, boxscore, gametracker, recap. Entering default is the same as entering 'boxscore, gametracker'.
postMatchLinks string optional Comma separated string of link keys for post-match. Can be undefined, default, preview, boxscore, gametracker, recap. Entering default is the same as entering 'boxscore, recap'.
enableTeamSelect boolean optional Enables on team click or touch.
enablePlayerSelect boolean optional Enables on player (i.e. game leaders) click or touch.
max3InARow boolean optional If true displays a maximum of 3 games in a row.
border boolean optional If true draws a border around the widget.
onItemClick function optional Function/event handler. More info below.

By default, all widget click target areas are disabled.

The enableTeamSelect enables team targets. enablePlayerSelect enables a player targets. The player targets appear in the Game Information section depending on game status.

With preMatchLinks, liveMatchLinks and/or postMatchLinks set the widget gets preview, boxscore, gametracker and/or recap targets.

All targets emit the following match props on click or touch: matchId, sportId, realCategoryId, seasonId, seasonType, week, awayTeamId, homeTeamId, awayTeamUid, homeTeamUid.

Team target adds teamId, player target adds playerId and teamId, match target adds matchStatus, Valid matchStatus values are: pre, live, post.

Examples

"team", {"teamId":"sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9","matchId":"sd:match:ee83c78d-f7eb-46fc-a851-e5e3b2a82f44","seasonId":2020,"seasonType":"REG","week":10,"awayTeamId":"sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9","homeTeamId":"sd:team:d26a1ca5-722d-4274-8f97-c92e49c96315","awayTeamUid":"4421","homeTeamUid":"367364"}

"player", {"playerId":"sd:player:5812204c-6dae-4450-8011-99e0f72864ac","teamId":"sd:team:d26a1ca5-722d-4274-8f97-c92e49c96315","matchId":"sd:match:ee83c78d-f7eb-46fc-a851-e5e3b2a82f44","seasonId":2020,"seasonType":"REG","week":10,"awayTeamId":"sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9","homeTeamId":"sd:team:d26a1ca5-722d-4274-8f97-c92e49c96315","awayTeamUid":"4421","homeTeamUid":"367364"}

"box_score", {"matchId":"sd:match:ee83c78d-f7eb-46fc-a851-e5e3b2a82f44","seasonId":2020,"seasonType":"REG","week":10,"awayTeamId":"sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9","homeTeamId":"sd:team:d26a1ca5-722d-4274-8f97-c92e49c96315","awayTeamUid":"4421","homeTeamUid":"367364"}

<div class="sr-widget" data-sr-widget="us.season.nfl.scores" data-sr-season-id="2019"></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.scores', { seasonId: 2019 });
</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.nfl.scores', {preMatchLinks: 'default', liveMatchLinks: 'default', postMatchLinks: 'default', enableTeamSelect: true, enablePlayerSelect: true, onItemClick: function(type, obj){alert(type + ': ' + JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>