Player Game Stats - by Date [Live & Final]
Returns the box score statistical record for all involved players across a given date, updated live as the game takes place.
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>.
The date of the game(s). <br>Examples: <code>2017-JUL-31</code>, <code>2017-SEP-01</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 of the game
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
Whether the player started in the game. Note: started = 1 and not starting = 0
Where the player batted in the lineup for the game (1;2;3; etc.)
The player's salary for FanDuel daily fantasy contests.
The player's salary for DraftKings daily fantasy contests.
The player's salary as calculated by SportsDataIO (formerly known as FantasyData). Based on the same salary cap as DraftKings contests ($50,000)
The player's salary for Yahoo daily fantasy contests
The player's current injury status; in the form of likelihood that player plays. Possible values: Probable; Questionable; Doubtful; Out
Indicates the player's injured body part. (e.g. ankle; knee; elbow; etc.)
The day that the injury started or first discovered.
Brief description of the player's injury and expected availability
The player's eligible position in FanDuel's daily fantasy sports platform.
The player's eligible position in DraftKings' daily fantasy sports platform.
The player's eligible position in Yahoo's daily fantasy sports platform
The ranking of the player's opponent with regards to fantasy points allowed
The ranking of the player's opponent by position with regards to fantasy points allowed
A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues
The player's salary for Fantasy Draft daily fantasy contests.
The player's eligible position in Fantasy Drafts daily fantasy sports platform.
The unique ID of this game
The unique ID of the team's opponent
The name of the opponent
The day of the game
The date and time of the game
Whether the team is home or away
Whether the game is over (true/false)
A globally unique ID for this game. This value is guaranteed to be unique across all sports/leagues.
A globally unique ID for this opponent. This value is guaranteed to be unique across all sports/leagues.
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.