MLB v3 Stats

Player Season Split Stats

All players' split stats for the season. Split stats are available for left, right, and switch-handed pitchers and hitters.

get/v3/mlb/stats/{format}/PlayerSeasonSplitStats/{season}/{split}

Request

Path parameters

format'JSON' | 'XML' required

Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.

seasonstring required

Year of the season. <br>Examples: <code>2017</code>, <code>2018</code>.

split'L' | 'R' | 'S' required

The desired split of stats. Currently, we support vs. Left/Right/Switch handed pitchers/hitters. Possible values are: <code>L</code>, <code>R</code> and <code>S</code>

Response

Success

StatIDinteger

The unique ID of the stat

TeamIDinteger nullable

The team's unique TeamID as assigned by SportsDataIO

PlayerIDinteger nullable

The player's unique PlayerID as assigned by SportsDataIO. Note: this ID will stay with the player throughout their MLB career

SeasonTypeinteger nullable

The type of season that this record corresponds to (1=Regular Season; 2=Preseason; 3=Postseason; 4=Offseason; 5=AllStar)

Seasoninteger nullable

The MLB season for which these totals apply

Namestring nullable

Player's full name

Teamstring nullable

The abbreviation [Key] of the team

Positionstring nullable

The player's position associated with the given game or season. Possible values: 1B; 2B; 3B; C; CF; DH; IF; LF; OF; P; PH; PR; RF; RP; SP; SS

PositionCategorystring nullable

The player's position category. Possible values: DH; IF; OF; P; PH; PR

Startedinteger nullable

Number of games started in the season

BattingOrderinteger nullable

This field is expected to be NULL

GlobalTeamIDinteger nullable

A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues

AverageDraftPositionnumber nullable

The auction value for this player as it pertains to auction-style drafts for season-long fantasy baseball

AuctionValueinteger nullable

The auction value for this player as it pertains to auction-style drafts for season-long fantasy baseball

Updatedstring nullable

The timestamp of when the record was last updated (US Eastern Time).

Gamesinteger nullable

The number of games played.

FantasyPointsnumber nullable

Total fantasy points

AtBatsnumber nullable

At bats while hitting

Runsnumber nullable

Total runs scored.

Hitsnumber nullable

Total hits

Singlesnumber nullable

Total singles

Doublesnumber nullable

Total doubles

Triplesnumber nullable

Total triples

HomeRunsnumber nullable

Total home runs

RunsBattedInnumber nullable

Total runs batted in

BattingAveragenumber nullable

Total batting average

Outsnumber nullable

Total outs

Strikeoutsnumber nullable

Total strikeouts

Walksnumber nullable

Total walks

HitByPitchnumber nullable

Total times hit by pitch

Sacrificesnumber nullable

Total sacrifices

SacrificeFliesnumber nullable

Total sacrifice flies

GroundIntoDoublePlaynumber nullable

Total times grounded into double play

StolenBasesnumber nullable

Total stolen bases

CaughtStealingnumber nullable

Total caught stealing

PitchesSeennumber nullable

Total pitches seen

OnBasePercentagenumber nullable

Total on base percentage

SluggingPercentagenumber nullable

Total slugging percentage

OnBasePlusSluggingnumber nullable

Total on base plus percentage 

Errorsnumber nullable

Total errors

Winsnumber nullable

Total wins by the team/player

Lossesnumber nullable

Total losses by the team/player

Savesnumber nullable

Total saves by team/player

InningsPitchedDecimalnumber nullable

Decimal representation of total innings pitched (e.g. 1.33, 7.66, etc)

TotalOutsPitchednumber nullable

Total outs pitched by team/player

InningsPitchedFullnumber nullable

Total full innings pitched (e.g. 6, 71, 89, etc)

InningsPitchedOutsnumber nullable

Outs pitched beyond InningsPitchedFull (possible values: 0, 1, 2)

EarnedRunAveragenumber nullable

Total earned run average by team/player

PitchingHitsnumber nullable

Hits allowed while pitching

PitchingRunsnumber nullable

Runs allowed while pitching

PitchingEarnedRunsnumber nullable

Earned runs allowed while pitching

PitchingWalksnumber nullable

Walks allowed while pitching

PitchingStrikeoutsnumber nullable

Strikeouts allowed while pitching

PitchingHomeRunsnumber nullable

Home runs allowed while pitching

PitchesThrownnumber nullable

Total pitches thrown while pitching

PitchesThrownStrikesnumber nullable

Total pitches thrown for strikes while pitching

WalksHitsPerInningsPitchednumber nullable

Walks plus hits per innings pitched (WHIP) while pitching

PitchingBattingAverageAgainstnumber nullable

Total batting average against (BAA) while pitching

GrandSlamsnumber nullable

Total grand slams

FantasyPointsFanDuelnumber nullable

Total FanDuel fantasy points

FantasyPointsDraftKingsnumber nullable

Total DraftKings fantasy points

FantasyPointsYahoonumber nullable

Total Yahoo fantasy points

PlateAppearancesnumber nullable

Total plate appearances

TotalBasesnumber nullable

Number of total bases

FlyOutsnumber nullable

Total fly outs

GroundOutsnumber nullable

Total ground outs

LineOutsnumber nullable

Total line outs

PopOutsnumber nullable

Total pop outs

IntentionalWalksnumber nullable

Total intentional walks

ReachedOnErrornumber nullable

Total times reached on error

BallsInPlaynumber nullable

Total balls in play

BattingAverageOnBallsInPlaynumber nullable

Total batting average on balls in play (BABIP)

WeightedOnBasePercentagenumber nullable

Total weight on base percentage

PitchingSinglesnumber nullable

Total singles allowed while pitching

PitchingDoublesnumber nullable

Total doubles allowed while pitching

PitchingTriplesnumber nullable

Total triples allowed while pitching

PitchingGrandSlamsnumber nullable

Total grand slams allowed while pitching

PitchingHitByPitchnumber nullable

Total batters hit by pitch while pitching

PitchingSacrificesnumber nullable

Total sacrifices while pitching

PitchingSacrificeFliesnumber nullable

Total sacrifice flies while pitching

PitchingGroundIntoDoublePlaynumber nullable

Total grounded into double plays while pitching

PitchingCompleteGamesnumber nullable

Total complete games while pitching

PitchingShutOutsnumber nullable

Total shuouts while pitching

PitchingNoHittersnumber nullable

Total no hitters while pitching

PitchingPerfectGamesnumber nullable

Total perfect games while pitching

PitchingPlateAppearancesnumber nullable

Total plate appearances while pitching

PitchingTotalBasesnumber nullable

Total bases while pitching

PitchingFlyOutsnumber nullable

Total fly outs while pitching

PitchingGroundOutsnumber nullable

Total ground outs while pitching

PitchingLineOutsnumber nullable

Total line outs while pitching

PitchingPopOutsnumber nullable

Total pop outs while pitching

PitchingIntentionalWalksnumber nullable

Total intentional walks while pitching

PitchingReachedOnErrornumber nullable

Total times reached on error while pitching

PitchingCatchersInterferencenumber nullable

Total catchers interference while pitching

PitchingBallsInPlaynumber nullable

Total balls in play while pitching

PitchingOnBasePercentagenumber nullable

Total on base percentage (OBP) while pitching

PitchingSluggingPercentagenumber nullable

Total slugging percentage (SLG) while pitching

PitchingOnBasePlusSluggingnumber nullable

Total on base plus slugging (OPS) while pitching

PitchingStrikeoutsPerNineInningsnumber nullable

Total strikeouts per nine innings (K/9) while pitching

PitchingWalksPerNineInningsnumber nullable

Total walks per nine innings (BB/9) while pitching

PitchingBattingAverageOnBallsInPlaynumber nullable

Total batting average on balls in play (BABIP) while pitching

PitchingWeightedOnBasePercentagenumber nullable

Total weighted on base percentage while pitching 

DoublePlaysnumber nullable

Total double plays, defined as one of: Bunted into Double Play, Fly into Double Play, Fouled into Double Play, Ground into Double Pla,y Line into Double Play, Popped into Double Play

PitchingDoublePlaysnumber nullable

Total double plays while pitching

BattingOrderConfirmedboolean nullable

Whether the batting order is confirmed (true/false)

IsolatedPowernumber nullable

Total isolated power (ISO)

FieldingIndependentPitchingnumber nullable

Total fielding independent pitching (FIP)

PitchingQualityStartsnumber nullable

Total quality starts pitched

PitchingInningStartedinteger nullable

The inning that the pitcher entered the game (if any).

LeftOnBasenumber nullable

Total left on base percentage 

PitchingHoldsnumber nullable

Total holds pitched

PitchingBlownSavesnumber nullable

Total blown saves pitched

SubstituteBattingOrderinteger nullable

The position in the batting order where this player was substituted into the game (does not include players in the starting lineup)

SubstituteBattingOrderSequenceinteger nullable

The sequence in which this player was substituted into the game, within the particular batting order

FantasyPointsFantasyDraftnumber nullable

Total FantasyDraft fantasy points

FantasyPointsBattingnumber nullable

Total batting fantasy points

FantasyPointsPitchingnumber nullable

Total pitching fantasy points

Changes

No recorded changes to this operation across all 2 revisions of this API.