Skip to content

Instantly share code, notes, and snippets.

@leovolving
Created April 18, 2021 18:52
Show Gist options
  • Save leovolving/46b918d356e519908fe071c77bd62b1d to your computer and use it in GitHub Desktop.
Save leovolving/46b918d356e519908fe071c77bd62b1d to your computer and use it in GitHub Desktop.
MLB Live Game Data Object
{
liveData: {
boxscore: {
teams: {
[home | away]: {
teamStats: {
pitching: {
strikeouts: Number
}
}
}
}
},
linescore: {
currentInning: Number,
currentInningOrdinal: String,
inningState: String,
outs,
teams: {
[home | away]: {
runs: Number
}
}
},
plays: [{
about: {
isTopInning: Boolean
},
matchup: {
batter: {
id: Number,
name: String
}
},
result: {
eventType: 'home_run' | 'strikeout'
}
}]
},
gameData: {
datetime: {
dateTime: timestamp
},
status: {
abstractGameCode: 'L' | 'F'
},
teams: {
[home | away]: {
id: Number,
name: String
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment