Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Game Score

us.match.score is a variant of the smaller scoreboard with links. Game Score features the current score, the teams represented by name and logo, the status of a game, and other key game related information (depending on sport and/or unique tournament) as collapsible content. Also supports navigation to other widgets/content.

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

Parameters

NameTypeArgumentDefaultDescription
matchIdnumberrequiredMatch ID
showDatebooleanoptionalIf true displays the scheduled date beside the time (pre-game only).
isCollapsedbooleanoptional'true'If false expands all collapsible content.
showOddsbooleanoptional'true'If false hides odds (pre-game only).
disableHeaderbooleanoptionalfalseIf true hides the widget header.
disableGameInfobooleanoptionalfalseIf true hides collapsible game information.
disableGameInfoXSmallbooleanoptionalfalseIf true hides collapsible game information on X-Small responsive breakpoint.
disableAttendancebooleanoptionalfalseIf true hides attendance content.
disableTeamClickbooleanoptionalfalseIf true disable onItemClick handler for teams.
disablePlayerClickbooleanoptionalfalseIf true disable onItemClick handler for players (i.e. team leaders under game information).
enableMatchClickbooleanoptionalfalseIf true the whole widget triggers match target event on onItemClick; all other targets get disabled.
preMatchLinksstringoptionalComma separated string of link keys for pre-game. Can be: undefined, default, preview, boxscore, gametracker, recap, lineups, and matchstats. Entering default is the same as entering preview.
liveMatchLinksstringoptionalComma separated string of link keys for pre-game. Can be: undefined, default, preview, boxscore, gametracker, recap, lineups, and matchstats. Entering default is the same as entering boxscore, gametracker.
postMatchLinksstringoptionalComma separated string of link keys for pre-game. Can be: undefined, default, preview, boxscore, gametracker, recap, lineups, and matchstats. Entering default is the same as entering boxscore, recap.
borderbooleanoptionalIf true enables a border around the widget.
onItemClickfunctionoptionalFunction/event handler. By default, the widget has two click targeting areas: team and player. The player targets appear in the Game Information section depending on match status. With preMatchLinks, liveMatchLinks, and/or postMatchLinks set the Score widget can get additional targets: preview, boxscore, gametracker, recap, lineups, and matchstats links. When enableMatchClick is set to 'true' the whole Score widget becomes a match target and all other targets gets disabled. All targets emit the following match props on click or touch: matchId, sportId, realCategoryId, seasonId, tournamentId, uniqueTournamentId, awayTeamUid, homeTeamUid, or matchStatus. Team target adds uniqueTeamId, player target adds playerId. Valid matchStatus values are: pre, live, or post.

Examples

<div class="sr-widget" data-sr-widget="us.match.score" data-sr-match-id="31410191"></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.score', {matchId: 31410191});
</script>
<div id="sr-widget"></div>
<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.score', {matchId: 31410191, postMatchLinks: 'default', onItemClick: function(target, obj){alert(target+':'+JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>
"team",{"matchId":23361061,"seasonId":77361,"tournamentId":36,"uniqueTournamentId":8,"realCategoryId":32,"sportId":1,"awayTeamUid":2836,"homeTeamUid":2831,"matchStatus":"post","uniqueTeamId":2836}

"player",{"matchId":27543026,"matchStatus":"pre","playerId":36476,"seasonId":78917,"tournamentId":10560,"uniqueTournamentId":234,"realCategoryId":37,"sportId":4,"awayTeamUid":3703,"homeTeamUid":3677}

"box_score",{"matchId":23361061,"seasonId":77361,"tournamentId":36,"uniqueTournamentId":8,"realCategoryId":32,"sportId":1,"awayTeamUid":2836,"homeTeamUid":2831,"matchStatus":"post"}

"match",{"matchId":27543026,"seasonId":78917,"tournamentId":10560,"uniqueTournamentId":234,"realCategoryId":37,"sportId":4,"awayTeamUid":3703,"homeTeamUid":3677,"matchStatus":"pre"}