MLB v3 Stats

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.

get/v3/mlb/stats/{format}/PlayerGameStatsByDate/{date}

Request

Path parameters

format'JSON' | 'XML' required

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

datestring required

The date of the game(s). <br>Examples: <code>2017-JUL-31</code>, <code>2017-SEP-01</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 of the game

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

Whether the player started in the game. Note: started = 1 and not starting = 0

BattingOrderinteger nullable

Where the player batted in the lineup for the game (1;2;3; etc.)

FanDuelSalaryinteger nullable

The player's salary for FanDuel daily fantasy contests.

DraftKingsSalaryinteger nullable

The player's salary for DraftKings daily fantasy contests.

FantasyDataSalaryinteger nullable

The player's salary as calculated by SportsDataIO (formerly known as FantasyData). Based on the same salary cap as DraftKings contests ($50,000)

YahooSalaryinteger nullable

The player's salary for Yahoo daily fantasy contests

InjuryStatusstring nullable

The player's current injury status; in the form of likelihood that player plays. Possible values: Probable; Questionable; Doubtful; Out

InjuryBodyPartstring nullable

Indicates the player's injured body part. (e.g. ankle; knee; elbow; etc.)

InjuryStartDatestring nullable

The day that the injury started or first discovered.

InjuryNotesstring nullable

Brief description of the player's injury and expected availability

FanDuelPositionstring nullable

The player's eligible position in FanDuel's daily fantasy sports platform.

DraftKingsPositionstring nullable

The player's eligible position in DraftKings' daily fantasy sports platform.

YahooPositionstring nullable

The player's eligible position in Yahoo's daily fantasy sports platform

OpponentRankinteger nullable

The ranking of the player's opponent with regards to fantasy points allowed

OpponentPositionRankinteger nullable

The ranking of the player's opponent by position with regards to fantasy points allowed

GlobalTeamIDinteger nullable

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

FantasyDraftSalaryinteger nullable

The player's salary for Fantasy Draft daily fantasy contests.

FantasyDraftPositionstring nullable

The player's eligible position in Fantasy Drafts daily fantasy sports platform.

GameIDinteger nullable

The unique ID of this game

OpponentIDinteger nullable

The unique ID of the team's opponent

Opponentstring nullable

The name of the opponent 

Daystring nullable

The day of the game

DateTimestring nullable

The date and time of the game

HomeOrAwaystring nullable

Whether the team is home or away

IsGameOverboolean

Whether the game is over (true/false)

GlobalGameIDinteger nullable

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

GlobalOpponentIDinteger nullable

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

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.