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

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
matchIdnumberrequiredMatch ID
disableWidgetHeaderbooleanoptionalfalseIf true hides the widget header.
disableMatchHeaderbooleanoptionalfalseIf true hides the match header.
disablePeriodsbooleanoptionalfalseIf true hides the period tabs.
disableChartsbooleanoptionalfalseIf true hides the statistics charts.
disableGroupsbooleanoptionalfalseIf true hides the statistics groups.
chartTypestringoptionalbarDisplay mode of the charts. Possible options: bar, bullet.
layoutstringoptionalnormalWhen set to compact, switches to a compact display. Possible options: normal, compact.
visibleStatsarrayoptional[]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.
borderbooleanoptionalIf 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>