Player Season Stats Split - by Team
All a given team's players' split stats for the season. Split stats are available for left, right, and switch-handed pitchers and hitters.
Request
- Base URLhttps://api.sportsdata.io
- Auth
- API key in header Ocp-Apim-Subscription-Key
- or API key in query parameter key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
Year of the season. <br>Examples: <code>2017</code>, <code>2018</code>.
Response
Success
The unique ID of the stat
The team's unique TeamID as assigned by SportsDataIO
The player's unique PlayerID as assigned by SportsDataIO. Note: this ID will stay with the player throughout their MLB career
The type of season that this record corresponds to (1=Regular Season; 2=Preseason; 3=Postseason; 4=Offseason; 5=AllStar)
The MLB season for which these totals apply
Player's full name
The abbreviation [Key] of the team
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
The player's position category. Possible values: DH; IF; OF; P; PH; PR
Number of games started in the season
This field is expected to be NULL
A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues
The auction value for this player as it pertains to auction-style drafts for season-long fantasy baseball
The auction value for this player as it pertains to auction-style drafts for season-long fantasy baseball
The timestamp of when the record was last updated (US Eastern Time).
The number of games played.
Total fantasy points
At bats while hitting
Total runs scored.
Total hits
Total singles
Total doubles
Total triples
Total home runs
Total runs batted in
Total batting average
Total outs
Total strikeouts
Total walks
Total times hit by pitch
Total sacrifices
Total sacrifice flies
Total times grounded into double play
Total stolen bases
Total caught stealing
Total pitches seen
Total on base percentage
Total slugging percentage
Total on base plus percentage
Total errors
Total wins by the team/player
Total losses by the team/player
Total saves by team/player
Decimal representation of total innings pitched (e.g. 1.33, 7.66, etc)
Total outs pitched by team/player
Total full innings pitched (e.g. 6, 71, 89, etc)
Outs pitched beyond InningsPitchedFull (possible values: 0, 1, 2)
Total earned run average by team/player
Hits allowed while pitching
Runs allowed while pitching
Earned runs allowed while pitching
Walks allowed while pitching
Strikeouts allowed while pitching
Home runs allowed while pitching
Total pitches thrown while pitching
Total pitches thrown for strikes while pitching
Walks plus hits per innings pitched (WHIP) while pitching
Total batting average against (BAA) while pitching
Total grand slams
Total FanDuel fantasy points
Total DraftKings fantasy points
Total Yahoo fantasy points
Total plate appearances
Number of total bases
Total fly outs
Total ground outs
Total line outs
Total pop outs
Total intentional walks
Total times reached on error
Total balls in play
Total batting average on balls in play (BABIP)
Total weight on base percentage
Total singles allowed while pitching
Total doubles allowed while pitching
Total triples allowed while pitching
Total grand slams allowed while pitching
Total batters hit by pitch while pitching
Total sacrifices while pitching
Total sacrifice flies while pitching
Total grounded into double plays while pitching
Total complete games while pitching
Total shuouts while pitching
Total no hitters while pitching
Total perfect games while pitching
Total plate appearances while pitching
Total bases while pitching
Total fly outs while pitching
Total ground outs while pitching
Total line outs while pitching
Total pop outs while pitching
Total intentional walks while pitching
Total times reached on error while pitching
Total catchers interference while pitching
Total balls in play while pitching
Total on base percentage (OBP) while pitching
Total slugging percentage (SLG) while pitching
Total on base plus slugging (OPS) while pitching
Total strikeouts per nine innings (K/9) while pitching
Total walks per nine innings (BB/9) while pitching
Total batting average on balls in play (BABIP) while pitching
Total weighted on base percentage while pitching
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
Total double plays while pitching
Whether the batting order is confirmed (true/false)
Total isolated power (ISO)
Total fielding independent pitching (FIP)
Total quality starts pitched
The inning that the pitcher entered the game (if any).
Total left on base percentage
Total holds pitched
Total blown saves pitched
The position in the batting order where this player was substituted into the game (does not include players in the starting lineup)
The sequence in which this player was substituted into the game, within the particular batting order
Total FantasyDraft fantasy points
Total batting fantasy points
Total pitching fantasy points
Changes
No recorded changes to this operation across all 2 revisions of this API.