Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Team Leaderboard

us.team.soccer.TeamLeaderboard displays a given team's rankings across four statistical categories: Goals, Assists, Cards and Injuries.

For the widget to render you must provide one of the following parameter combinations:

  • matchId and team (home or away)
  • teamUid and seasonId
  • teamUid and tournamentId
  • teamUid and uniqueTournamentId

Parameters

NameTypeArgumentDefaultDescription
matchIdnumberMatch ID
teamUidnumberUnique team ID
seasonIdnumberSeason ID
tournamentIdnumberTournament ID
uniqueTournamentIdnumberUnique tournament ID
teamstringhomeDisplays the stats for the home or away team.
categoriesstringoptionalallA comma-separated list of categories (goals, assists, cards, injuries) to display. Categories will be displayed in the same order as they have been defined. Does not work with dynamic change.
disableWidgetHeaderbooleanoptionaltrueWhen set to true hides the widget header.
limitnumberoptional5Limits the number of rows to display.
disableContrChartbooleanoptionalfalseWhen set to true hides the contribution chart. Does not work with dynamic change.
activeTabstringoptionalid_tab_goalsDetermines active category tab. Valid values: id_tab_goals, id_tab_assists, id_tab_cards, id_tab_injuries.
borderbooleanoptionalWhen set to true draws a border around the widget.

Examples

<div class="sr-widget" data-sr-widget="us.team.soccer.teamLeaderboard" data-sr-match-id="20064536" data-sr-team="home" data-sr-categories="goals, cards, assists, injuries" data-sr-disable-widget-header="false"></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.team.soccer.teamLeaderboard', {matchId: 20064536, team: 'home', categories: 'goals, cards, assists, injuries', disableWidgetHeader: false});
</script>
<div id="sr-widget"></div>