Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Team Seasonal Statistics

us.season.mlb.teamsStats displays a sortable team statistics table for all teams in a given season.

All widget properties are optional. By default, the widget will provide a table for the active season.

Parameters

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
seasonIdnumberoptionalactive seasonSeason ID
seasonTypestringoptional'regular'Season type: regular / playoffs.
categorystringoptional'hitting'Category: hitting / pitching.
conferencestringoptionalConference filder: al / nl.
borderbooleanoptionalWhen set to true the table is displayed with a border.
disableTitlebooleanoptionalWhen set to true hides the widget title.
hideFiltersbooleanoptionalWhen set to true hides all filters / dropdown.
hittingColumnsstringoptionalComma separated string of hitting table statistics column keys. Used for picking fewer columns and different order. Valid options are: ab, r, h, 2b, 3b, hr, rbi, bb, k, tb, sb, cs, ba, obp, slg, ops, iso, babip, bbk, goao, xbh, abhr.
pitchingColumnsstringoptionalComma separated string of pitching table statistics column keys. Used for picking picking fewer columns and different order. Valid options are: w, l, era, sv, svo, ip, h, r, er, hra, bb, k, oba, whip, k9, kbb, go, ao, qs, cg, sho.
onItemClickfunctionoptionalFunction/event handler. Emits uniqueTeamId, seasonId, uniqueTournamentId on table row click or touch.
hittingColumns Option Descriptions
OptionDescription
abAt Bats
rRuns
hHits
2bDoubles
3bTriples
hrHome Runs
rbiRuns Batted In
bbWalks
kStrikeouts
tbTotal Bases
sbStolen Bases
csCaught Stealing
baBatting Average
obpOn Base Percentage
slgSlugging Percentage
opsOn-Base + Slugging Percentage
isoIsolated Power
babipBatting Average on Balls in Play
bbkStrikeout-to-Walk Ratio
gofoGround Out/Fly Out Ratio
goaoGround Out/Air Out Ratio
xbhExtra-base Hits
abhrAt Bats per Home Run
pitchingColumns Option Descriptions
OptionDescription
wWins
lLosses
eraEarned Run Average
svSaves
svoSave Opportunities
ipInnings Pitched
hHits Allowed
rRuns Allowed
erEarned Runs
hraHome Runs Allowed
bbWalks
kStrikeouts
obaOpponents' Batting Average
whipWalks + Hits Per Inning Pitched
k9Strikeouts per Nine Innings
goGroundouts
foFlyouts
kbbStrikeout-to-Walk Ratio
goaoGround Out/Fly Out Ratio
qsQuality Starts
cgComplete Games
shoShutouts

Examples

<div class="sr-widget" data-sr-widget="us.match.mlb.teamsStats" data-sr-season-id="79507"></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.mlb.teamsStats', {seasonId: 79507});
</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.season.mlb.teamsStats', {onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>