Widgets.us.player.soccer.Info

A us.player.soccer.info brings key information about a particular player such as age, height, preferred foot as well as detailed in-game information like number of goals scored, assists, cards, conversion rate or minutes played.

For the widget to render you need to provide playerId, teamUid and either seasonId or uniqueTournamentId, other properties are optional.


new Info(props)

Parameters
Name Type Description
props object
Properties
Name Type Argument Default Description
playerId number

Player Id.

seasonId number

Season Id. When set, shows player's stats for that season.

uniqueTournamentId number

Unique Tournament Id. When set, shows player's stats for that tournament.

teamUid number

Unique Team Id. When set, shows player's stats for that team.

disableWidgetHeader boolean <optional>
false

When set to true, hides widget header. Works in pair with seasonId.

disablePlayerHeader boolean <optional>
false

When set to true, hides player header.

disableAttack boolean <optional>
false

When set to true, hides attack info.

disableAppearances boolean <optional>
false

When set to true, hides appearances info.

disableOffense boolean <optional>
false

When set to true, hides offense info.

disableProfileInfo boolean <optional>
false

When set to true, hides profile info.

border boolean <optional>

When set to true, border draws around widget.

Examples

HTML/Declarative

<div class="sr-widget" data-sr-widget="us.player.soccer.info" data-sr-player-id="17094" data-sr-team-uid="17" data-sr-unique-tournament-id="17"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/uscommon/widgetloader" data-sr-language="en_us" async></script>

JS/Programmatic

<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/uscommon/widgetloader","USW", {
        language: 'en_us'
    });
    USW('addWidget', '#sr-widget', 'us.player.soccer.info', {playerId: 17094, teamUid: 17, uniqueTournamentId: 17});
</script>
<div id="sr-widget"></div>