Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

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

NameTypeArgumentDefaultDescription
seasonIdnumberoptionalSeason ID (Year)
seasonTypestringoptionalSeason type. Valid options are: pre, reg, or pst.
weeknumberoptionalWeek number.
firstSeasonIdnumberoptional200The oldest season year for the season dropdown to display.
disableGameHeaderbooleanoptionalIf true the headers of games are hidden.
disableGameInfobooleanoptionalIf true hides collapsible content (i.e. game information).
disableGameInfoXSmallbooleanoptional'true'If true hides collapsible content (i.e. game information) on X-Small responsive breakpoint (<321px).
disablePitchSwitchbooleanoptionalIf true hides "SHOW FIELD" switch. However disablePitch prop is still operational.
disablePitchbooleanoptionalSwitches pitch visualization (i.e. "SHOW FIELD") switch off. Pitch visualization is only available with live games.
autoSlidebooleanoptionaltrueIf false disables auto sliding of the content in the game info section.
autoSlideSpeednumberoptional5000Sets the delay of auto sliding of the content in the game info section (in milliseconds).
preMatchLinksstringoptionalComma separated string of link keys for pre-game. Can be undefined, default, preview, boxscore, gametracker, recap. Entering default is the same as entering 'preview'.
liveMatchLinksstringoptionalComma 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'.
postMatchLinksstringoptionalComma 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'.
enableTeamSelectbooleanoptionalEnables on team click or touch.
enablePlayerSelectbooleanoptionalEnables on player (i.e. game leaders) click or touch.
max3InARowbooleanoptionalIf true displays a maximum of 3 games in a row.
borderbooleanoptionalIf true draws a border around the widget.
onItemClickfunctionoptionalFunction/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>
(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 });
<div id="sr-widget"></div>
(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));}});
<div id="sr-widget"></div>