Match Commentary widget provides a chronological live feed of match events, displaying key moments in real-time. The widget combines match event data with optional AI-generated betting insights (Facts and Figures), offering two viewing modes: expanded view showing all events, and compact view displaying only major events. It presents a scrollable timeline with event icons, timestamps, player information, and contextual descriptions, creating an engaging play-by-play experience. The widget supports soccer and basketball, with sport-specific event types, icons, and formatting rules optimized for each game's unique characteristics.

Shows the default view of the Match Commentary widget.

Shows only major events in the Match Commentary widget, filtering out less significant updates.

Shows the facts and figures section in the Match Commentary widget, providing additional context and insights about the match.
See the Match Commentary widget demo.
match.commentaryEnvironment Requirements
Supported Sports
The Match Commentary widget supports the following sports:
| Sport | Sport ID |
|---|---|
| Soccer | 1 |
| Basketball | 2 |
| Esport Soccer | 137 |
| Esport Basketball | 153 |
Illustrations of main feature variants with relevant property values below.
See Match Commentary widget demo
Properties do not always transfer from the above table directly into integration code. Properties must be transformed differently for each integration method:
SIR() callcardVariant: "compact"In javascript integration, the properties go into an object which is passed as the 4th argument of the call ti SIR() function. Please see Global SIR API
data-sr- prefixcardVariant → data-sr-card-variant| Property | Type | Default | Description |
|---|---|---|---|
matchId | number | Required | The unique identifier for the match. See Getting Identifiers |
showFunfacts | boolean | true | When true, display additional match-related funfacts at the bottom. |
showPhrases | boolean | true | Controls display of phrase-based commentary (human-readable sentences). When false, only structured events are shown. |
showExpandSwitch | boolean | true | When true, displays toggle switch allowing users to switch between expanded (all events) and compact (major events only) views. When false, hides the toggle and view is controlled only by commentsExpanded prop. |
commentsExpanded | boolean | true | Initial view mode. When true, starts in expanded view showing all events. When false, starts in compact view showing only major events (goals, cards, substitutions). |
disableWidgetHeader | boolean | true | When true, hides the tournament context header (competition name, date, venue). |
showFactsAndFigures | boolean | false | When true, enables AI-powered betting insights (Facts and Figures) to be intelligently interspersed throughout the commentary timeline. Insights appear after key events (match start, goals, cards) or at 15-minute intervals, with minimum 3 events spacing between each insight. |
Shows the default view of the Match Commentary widget.
Sample Configuration:
string|numberfilters.sport.hidden → Complex objects must be passed as JSON stringsIn HTML integration, the properties go into the parent HTML object as object properties, prefixed with data-sr- as explained above.
This method supports only simple (base) properties and does not support properties that require functions.
In all examples replace sportradar in the widgetloader URL path with your clientId.
Example if your clientId is client1:
https://widgets.sir.sportradar.com/sportradar/widgetloaderhttps://widgets.sir.sportradar.com/client1/widgetloaderInitialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.
(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.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
SIR('addWidget', '#sr-widget', 'match.commentary', {
matchId: 123
});<div id="sr-widget"></div>Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.
<div id="sr-widget"
data-sr-widget="match.commentary"
data-sr-match-id="123">
</div>
<script type="application/javascript"
src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
async>
</script>