Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Match General Statistics

us.match.generalStatistics provides general statistics for a given match, including ball possession, shots on/off target, yellow and red cards, free kicks, offsides, fouls, and substitutions.

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

Parameters

Name Type Description
props object properties
Name Type Argument Default Description
matchId number required Match ID
disableWidgetHeader boolean optional false If true hides the widget header.
disableMatchHeader boolean optional false If true hides the match header.
disablePeriods boolean optional false If true hides the period tabs.
disableCharts boolean optional false If true hides the statistics charts.
disableGroups boolean optional false If true hides the statistics groups.
chartType string optional bar Display mode of the charts. Possible options: bar, bullet.
layout string optional normal When set to compact, switches to a compact display. Possible options: normal, compact.
visibleStats array optional [] When set to non-empty value, it only displays statistics types specified in the array (if they are available for selected match). See below for valid options. When disableGroups is set to true the stats are ordered as specified in the visibleStats prop.
border boolean optional If true draws a border around the widget.

visibleStats Options:

ball_possession
dangerous_attack
attack
ball_safe
goal_attempts
ball_possession
shot_on_target
shot_off_target
corner_kick
free_kick
offside
goal_kick
thown_in
yellow_card
yellow_red_card
red_card
player_substitution
save
fouls
injury

Examples

<div class="sr-widget" data-sr-widget="us.match.generalStatistics" data-sr-match-id="20064536"></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.match.generalStatistics', {matchId: 20064536});
</script>
<div id="sr-widget"></div>