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

Name Type Argument Default Description
playerId number optional Player ID
seasonDefaultSortDirection string optional 'asc' Sets initial season column sort direction. Valid options are: asc / desc.
hitterColumns string optional Comma 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.
pitcherColumns string optional Comma 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.
border boolean optional When set to true the table is displayed with a border.

hitterColumns Option Descriptions

Option Description
gp Games Played
gs Games Started
pa Plate Appearances
ab At Bats
r Runs
h Hits
2b Doubles
3b Triples
hr Home Runs
rbi Runs Batted In
bb Walks
k Strikeouts
sb Stolen Bases
cs Caught Stealing
ba Batting Average
obp On Base Percentage
slg Slugging Percentage
ops On-Base + Slugging Percentage
iso Isolated Power
babip Batting Average on Balls in Play
bbk Strikeout-to-Walk Ratio
gofo Ground Out/Fly Out Ratio
goao Ground Out/Air Out Ratio
xbh Extra-base Hits
abhr At Bats per Home Run

pitcherColumns Option Descriptions

Option Description
gp Games Played
gs Games Started
w Wins
l Losses
era Earned Run Average
sv Saves/td>
svo Save Opportunities
ip Innings Pitched
h Hits Allowed
r Runs Allowed
er Earned Runs
hra Home Runs Allowed
bb Walks
k Strikeouts
oba Opponents' Batting Average
whip Walks + Hits Per Inning Pitched
k9 Strikeouts per Nine Innings
kbb Strikeout-to-Walk Ratio
goao Ground Ball/Fly Ball Ratio
qs Quality Starts
cg Complete Games
sho Shutouts
hld Holds

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>