Widget Docs
Coverage MatrixDocumentationRelease LogLog In

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

Name Type Argument Default Description
matchId number Match ID
teamUid number Unique team ID
seasonId number Season ID
tournamentId number Tournament ID
uniqueTournamentId number Unique tournament ID
team string home Displays the stats for the home or away team.
categories string optional all A 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.
disableWidgetHeader boolean optional true When set to true hides the widget header.
limit number optional 5 Limits the number of rows to display.
disableContrChart boolean optional false When set to true hides the contribution chart. Does not work with dynamic change.
activeTab string optional id_tab_goals Determines active category tab. Valid values: id_tab_goals, id_tab_assists, id_tab_cards, id_tab_injuries.
border boolean optional When 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>