Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Matchup

us.season.nfl.matchup displays opponent statistics for several positions (QB, RB, WR, TE) against a given team.

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

Parameters

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
seasonIdnumberrequiredNFL Season ID (Year)
teamIdstringoptionalnullSets the selected team. If this is set to null the alphabetically first team of the NFC will be selected.
positionstringoptionalnullSets the position of the opposing teams. Valid values are: quarterbacks, running_backs, wide_receivers, and tightends. If this is null, the default selection is quarterbacks.
seasonTypestringoptionalnullSets the default selected season type. Valid values are: pre, reg, or pst. If this prop is null the season type of the currently active week of the specified seasonId will be used.
weeknumberoptionalnullSets the selected week number. The valid number depends on the value of seasonType. For pre, valid values are 0-4. For reg, valid values are 1-17. For pst, valid values are 1-5. If null, the season type of the currently active week of the specified seasonId will be used.
disableWidgetHeaderbooleanoptional'false'When set to true hides the widget header.
selectedUpperTabstringoptionalnullChanges the default active tab in the first row of tabs. The valid inputs depend on the default selected position. If position is not provided the default is quarterbacks. See below for valid positions.
selectedLowerTabstringoptionalnullChanges the default active tab in the second row of tabs. This row isn't always available depending on the selected position. If position is not provided the default is quarterbacks. See below for valid positions.
enableTeamSelectbooleanoptionalfalseEnables team selection. Interactive area is team dropdown. TeamId is emitted on changing the item in the dropdown.
borderbooleanoptionalIf true draws a border around the widget.

Examples

<div class="sr-widget" data-sr-widget="us.season.nfl.matchup" data-sr-season-id="2015"></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.matchup', {seasonId: 2015});
</script>
<div id="sr-widget"></div>