Widget Docs
Coverage MatrixDocumentationRelease LogLog In

Player Comparison

us.player.soccer.comparison compares statistical categories of two players.

For the widget to render, a valid matchId or both TeamUids must be provided. To render specific players, both playerIds must be provided. To limit the statistics to a particular season, include seasonId or uniqueTournamentId.

Parameters

Name Type Description
props object properties
Name Type Argument Default Description
playerId1 number optional Player 1 ID
playerId2 number optional Player 2 ID
teamUid1 number optional Unique Team 1 ID
teamUid2 number optional Unique Team 2 ID
seasonId number optional Season ID
uniqueTournamentId number optional Unique Tournament ID
matchId number optional Match ID
disableWidgetHeader boolean optional false If false hides the widget header.
disableProfile boolean optional false If false hides the profile data.
disableStatistics boolean optional false If false hides the statistics data.
border boolean optional If true draws a border around the widget.

Examples

<div class="sr-widget" data-sr-widget="us.soccer.player.comparison" data-sr-team-uid1="2829" data-sr-team-uid2="44" data-sr-player-id1="750" data-sr-player-id2="143697" data-sr-season-id="41198"></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.player.soccer.comparison', {teamUid1: 2829, teamUid2: 44, playerId1: 750, playerId2: 143697, seasonId: 41198});
</script>
<div id="sr-widget"></div>