Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Player Career Stats

us.player.mlb.CareerStats displays the career stats of a given MLB player.

For the widget to render you must provide a valid playerId.

Parameters

NameTypeArgumentDefaultDescription
playerIdnumberoptionalPlayer ID
seasonDefaultSortDirectionstringoptional'asc'Sets initial season column sort direction. Valid options are: asc / desc.
hitterColumnsstringoptionalComma separated string of hitter table statistics column keys. Used for picking fewer columns and different order. Valid options are: gp, gs, pa, ab, r, h, 2b, 3b, hr, rbi, bb, k, sb, cs, ba, obp, iso, babip, bbk, goao, xbh, abhr. A table of definitions is included below.
pitcherColumnsstringoptionalComma separated string of pitcher table statistics column keys. Used for picking fewer columns and different order. Valid options are: gp, gs, w, l, era, sv, svo, ip, h, r, er, hra, bb, k, oba, whip, k9, kbb, goao, qs, cg, sho, hld. A table of definitions is included below.
borderbooleanoptionalWhen set to true the table is displayed with a border.
hitterColumns Option Descriptions
OptionDescription
gpGames Played
gsGames Started
paPlate Appearances
abAt Bats
rRuns
hHits
2bDoubles
3bTriples
hrHome Runs
rbiRuns Batted In
bbWalks
kStrikeouts
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
pitcherColumns Option Descriptions
OptionDescription
gpGames Played
gsGames Started
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
kbbStrikeout-to-Walk Ratio
goaoGround Ball/Fly Ball Ratio
qsQuality Starts
cgComplete Games
shoShutouts
hldHolds

Examples

<div class="sr-widget" data-sr-widget="us.player.mlb.careerStats" data-sr-player-id="843289"></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.mlb.careerStats', {playerId: '843289'});
</script>
<div id="sr-widget"></div>