SportsDataIO · Schema

TeamGame

Sports DataStatisticsLive ScoresFantasy SportsOddsNFLNBAMLBNHLSoccer

Properties

Name Type Description
StatID integer The unique ID of the stat
TeamID integernull The team's unique TeamID as assigned by SportsDataIO
SeasonType integernull The type of season that this record corresponds to (1=Regular Season, 2=Preseason, 3=Postseason, 4=Offseason, 5=AllStar)
Season integernull The MLB season of the game
Name stringnull Team's full name (city and mascot)
Team stringnull The abbreviation [Key] of the team
GlobalTeamID integernull A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues
GameID integernull The unique ID of this game
OpponentID integernull The unique ID of the team's opponent
Opponent stringnull The name of the opponent
Day stringnull The day of the game
DateTime stringnull The date and time of the game
HomeOrAway stringnull Whether the team is home or away
IsGameOver boolean Whether the game is over (true/false)
GlobalGameID integernull A globally unique ID for this game. This value is guaranteed to be unique across all sports/leagues.
GlobalOpponentID integernull A globally unique ID for this opponent. This value is guaranteed to be unique across all sports/leagues.
Updated stringnull The timestamp of when the record was last updated (US Eastern Time).
Games integernull The number of games played.
FantasyPoints numbernull Total fantasy points
AtBats numbernull At bats while hitting
Runs numbernull Total runs scored.
Hits numbernull Total hits
Singles numbernull Total singles
Doubles numbernull Total doubles
Triples numbernull Total triples
HomeRuns numbernull Total home runs
RunsBattedIn numbernull Total runs batted in
BattingAverage numbernull Total batting average
Outs numbernull Total outs
Strikeouts numbernull Total strikeouts
Walks numbernull Total walks
HitByPitch numbernull Total times hit by pitch
Sacrifices numbernull Total sacrifices
SacrificeFlies numbernull Total sacrifice flies
GroundIntoDoublePlay numbernull Total times grounded into double play
StolenBases numbernull Total stolen bases
CaughtStealing numbernull Total caught stealing
PitchesSeen numbernull Total pitches seen
OnBasePercentage numbernull Total on base percentage
SluggingPercentage numbernull Total slugging percentage
OnBasePlusSlugging numbernull Total on base plus percentage
Errors numbernull Total errors
Wins numbernull Total wins by the team/player
Losses numbernull Total losses by the team/player
Saves numbernull Total saves by team/player
InningsPitchedDecimal numbernull Decimal representation of total innings pitched (e.g. 1.33, 7.66, etc)
TotalOutsPitched numbernull Total outs pitched by team/player
InningsPitchedFull numbernull Total full innings pitched (e.g. 6, 71, 89, etc)
InningsPitchedOuts numbernull Outs pitched beyond InningsPitchedFull (possible values: 0, 1, 2)
EarnedRunAverage numbernull Total earned run average by team/player
PitchingHits numbernull Hits allowed while pitching
PitchingRuns numbernull Runs allowed while pitching
PitchingEarnedRuns numbernull Earned runs allowed while pitching
PitchingWalks numbernull Walks allowed while pitching
PitchingStrikeouts numbernull Strikeouts allowed while pitching
PitchingHomeRuns numbernull Home runs allowed while pitching
PitchesThrown numbernull Total pitches thrown while pitching
PitchesThrownStrikes numbernull Total pitches thrown for strikes while pitching
WalksHitsPerInningsPitched numbernull Walks plus hits per innings pitched (WHIP) while pitching
PitchingBattingAverageAgainst numbernull Total batting average against (BAA) while pitching
GrandSlams numbernull Total grand slams
FantasyPointsFanDuel numbernull Total FanDuel fantasy points
FantasyPointsDraftKings numbernull Total DraftKings fantasy points
FantasyPointsYahoo numbernull Total Yahoo fantasy points
PlateAppearances numbernull Total plate appearances
TotalBases numbernull Number of total bases
FlyOuts numbernull Total fly outs
GroundOuts numbernull Total ground outs
LineOuts numbernull Total line outs
PopOuts numbernull Total pop outs
IntentionalWalks numbernull Total intentional walks
ReachedOnError numbernull Total times reached on error
BallsInPlay numbernull Total balls in play
BattingAverageOnBallsInPlay numbernull Total batting average on balls in play (BABIP)
WeightedOnBasePercentage numbernull Total weight on base percentage
PitchingSingles numbernull Total singles allowed while pitching
PitchingDoubles numbernull Total doubles allowed while pitching
PitchingTriples numbernull Total triples allowed while pitching
PitchingGrandSlams numbernull Total grand slams allowed while pitching
PitchingHitByPitch numbernull Total batters hit by pitch while pitching
PitchingSacrifices numbernull Total sacrifices while pitching
PitchingSacrificeFlies numbernull Total sacrifice flies while pitching
PitchingGroundIntoDoublePlay numbernull Total grounded into double plays while pitching
PitchingCompleteGames numbernull Total complete games while pitching
PitchingShutOuts numbernull Total shuouts while pitching
PitchingNoHitters numbernull Total no hitters while pitching
PitchingPerfectGames numbernull Total perfect games while pitching
PitchingPlateAppearances numbernull Total plate appearances while pitching
PitchingTotalBases numbernull Total bases while pitching
PitchingFlyOuts numbernull Total fly outs while pitching
PitchingGroundOuts numbernull Total ground outs while pitching
PitchingLineOuts numbernull Total line outs while pitching
PitchingPopOuts numbernull Total pop outs while pitching
PitchingIntentionalWalks numbernull Total intentional walks while pitching
PitchingReachedOnError numbernull Total times reached on error while pitching
PitchingCatchersInterference numbernull Total catchers interference while pitching
PitchingBallsInPlay numbernull Total balls in play while pitching
PitchingOnBasePercentage numbernull Total on base percentage (OBP) while pitching
PitchingSluggingPercentage numbernull Total slugging percentage (SLG) while pitching
PitchingOnBasePlusSlugging numbernull Total on base plus slugging (OPS) while pitching
PitchingStrikeoutsPerNineInnings numbernull Total strikeouts per nine innings (K/9) while pitching
PitchingWalksPerNineInnings numbernull Total walks per nine innings (BB/9) while pitching
PitchingBattingAverageOnBallsInPlay numbernull Total batting average on balls in play (BABIP) while pitching
PitchingWeightedOnBasePercentage numbernull Total weighted on base percentage while pitching
DoublePlays numbernull 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
PitchingDoublePlays numbernull Total double plays while pitching
BattingOrderConfirmed booleannull Whether the batting order is confirmed (true/false)
IsolatedPower numbernull Total isolated power (ISO)
FieldingIndependentPitching numbernull Total fielding independent pitching (FIP)
PitchingQualityStarts numbernull Total quality starts pitched
PitchingInningStarted integernull The inning that the pitcher entered the game (if any).
LeftOnBase numbernull Total left on base percentage
PitchingHolds numbernull Total holds pitched
PitchingBlownSaves numbernull Total blown saves pitched
SubstituteBattingOrder integernull The position in the batting order where this player was substituted into the game (does not include players in the starting lineup)
SubstituteBattingOrderSequence integernull The sequence in which this player was substituted into the game, within the particular batting order
FantasyPointsFantasyDraft numbernull Total FantasyDraft fantasy points
FantasyPointsBatting numbernull Total batting fantasy points
FantasyPointsPitching numbernull Total pitching fantasy points
View JSON Schema on GitHub

JSON Schema

sportsdataio-teamgame-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TeamGame",
  "title": "TeamGame",
  "properties": {
    "StatID": {
      "type": "integer",
      "description": "The unique ID of the stat"
    },
    "TeamID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The team's unique TeamID as assigned by SportsDataIO"
    },
    "SeasonType": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The type of season that this record corresponds to (1=Regular Season, 2=Preseason, 3=Postseason, 4=Offseason, 5=AllStar)"
    },
    "Season": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The MLB season of the game"
    },
    "Name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Team's full name (city and mascot)"
    },
    "Team": {
      "type": [
        "string",
        "null"
      ],
      "description": "The abbreviation [Key] of the team"
    },
    "GlobalTeamID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues"
    },
    "GameID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The unique ID of this game"
    },
    "OpponentID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The\u00a0unique ID of the team's opponent"
    },
    "Opponent": {
      "type": [
        "string",
        "null"
      ],
      "description": "The\u00a0name of the opponent\u00a0"
    },
    "Day": {
      "type": [
        "string",
        "null"
      ],
      "description": "The day of the game"
    },
    "DateTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date and time of the game"
    },
    "HomeOrAway": {
      "type": [
        "string",
        "null"
      ],
      "description": "Whether the team is home or away"
    },
    "IsGameOver": {
      "type": "boolean",
      "description": "Whether the game is over (true/false)"
    },
    "GlobalGameID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "A globally unique ID for this game. This value is guaranteed to be unique across all sports/leagues."
    },
    "GlobalOpponentID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "A globally unique ID for this opponent. This value is guaranteed to be unique across all sports/leagues."
    },
    "Updated": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp of when the record was last updated (US Eastern Time)."
    },
    "Games": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The number of games played."
    },
    "FantasyPoints": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total fantasy points"
    },
    "AtBats": {
      "type": [
        "number",
        "null"
      ],
      "description": "At bats while hitting"
    },
    "Runs": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total runs scored."
    },
    "Hits": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total hits"
    },
    "Singles": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total singles"
    },
    "Doubles": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0doubles"
    },
    "Triples": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0triples"
    },
    "HomeRuns": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0home runs"
    },
    "RunsBattedIn": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0runs batted in"
    },
    "BattingAverage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0batting average"
    },
    "Outs": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0outs"
    },
    "Strikeouts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0strikeouts"
    },
    "Walks": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0walks"
    },
    "HitByPitch": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0times hit by pitch"
    },
    "Sacrifices": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0sacrifices"
    },
    "SacrificeFlies": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0sacrifice flies"
    },
    "GroundIntoDoublePlay": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0times grounded into double play"
    },
    "StolenBases": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0stolen bases"
    },
    "CaughtStealing": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0caught stealing"
    },
    "PitchesSeen": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0pitches seen"
    },
    "OnBasePercentage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0on base percentage"
    },
    "SluggingPercentage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0slugging percentage"
    },
    "OnBasePlusSlugging": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total on base plus percentage\u00a0"
    },
    "Errors": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0errors"
    },
    "Wins": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0wins by the team/player"
    },
    "Losses": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0losses by the team/player"
    },
    "Saves": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0saves by team/player"
    },
    "InningsPitchedDecimal": {
      "type": [
        "number",
        "null"
      ],
      "description": "Decimal representation of total innings pitched (e.g. 1.33, 7.66, etc)"
    },
    "TotalOutsPitched": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total\u00a0outs pitched by team/player"
    },
    "InningsPitchedFull": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total full innings pitched (e.g. 6, 71, 89, etc)"
    },
    "InningsPitchedOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Outs pitched beyond InningsPitchedFull (possible values: 0, 1, 2)"
    },
    "EarnedRunAverage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total earned run average by team/player"
    },
    "PitchingHits": {
      "type": [
        "number",
        "null"
      ],
      "description": "Hits allowed while pitching"
    },
    "PitchingRuns": {
      "type": [
        "number",
        "null"
      ],
      "description": "Runs allowed while pitching"
    },
    "PitchingEarnedRuns": {
      "type": [
        "number",
        "null"
      ],
      "description": "Earned runs allowed while pitching"
    },
    "PitchingWalks": {
      "type": [
        "number",
        "null"
      ],
      "description": "Walks allowed while pitching"
    },
    "PitchingStrikeouts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Strikeouts allowed while pitching"
    },
    "PitchingHomeRuns": {
      "type": [
        "number",
        "null"
      ],
      "description": "Home runs allowed while pitching"
    },
    "PitchesThrown": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total pitches thrown while pitching"
    },
    "PitchesThrownStrikes": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total pitches thrown for strikes while pitching"
    },
    "WalksHitsPerInningsPitched": {
      "type": [
        "number",
        "null"
      ],
      "description": "Walks plus hits per innings pitched (WHIP) while pitching"
    },
    "PitchingBattingAverageAgainst": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total batting average against (BAA) while pitching"
    },
    "GrandSlams": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total grand slams"
    },
    "FantasyPointsFanDuel": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total FanDuel fantasy points"
    },
    "FantasyPointsDraftKings": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total DraftKings fantasy points"
    },
    "FantasyPointsYahoo": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total Yahoo fantasy points"
    },
    "PlateAppearances": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total plate appearances"
    },
    "TotalBases": {
      "type": [
        "number",
        "null"
      ],
      "description": "Number of total bases"
    },
    "FlyOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total fly outs"
    },
    "GroundOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total ground outs"
    },
    "LineOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total line outs"
    },
    "PopOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total pop outs"
    },
    "IntentionalWalks": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total intentional walks"
    },
    "ReachedOnError": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total times reached on error"
    },
    "BallsInPlay": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total balls in play"
    },
    "BattingAverageOnBallsInPlay": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total batting average on balls in play (BABIP)"
    },
    "WeightedOnBasePercentage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total weight on base percentage"
    },
    "PitchingSingles": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total singles allowed while pitching"
    },
    "PitchingDoubles": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total doubles allowed while pitching"
    },
    "PitchingTriples": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total triples allowed while pitching"
    },
    "PitchingGrandSlams": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total grand slams allowed while pitching"
    },
    "PitchingHitByPitch": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total batters hit by pitch while pitching"
    },
    "PitchingSacrifices": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total sacrifices while pitching"
    },
    "PitchingSacrificeFlies": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total sacrifice flies while pitching"
    },
    "PitchingGroundIntoDoublePlay": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total grounded into double plays while pitching"
    },
    "PitchingCompleteGames": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total complete games while pitching"
    },
    "PitchingShutOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total shuouts while pitching"
    },
    "PitchingNoHitters": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total no hitters while pitching"
    },
    "PitchingPerfectGames": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total perfect games while pitching"
    },
    "PitchingPlateAppearances": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total plate appearances while pitching"
    },
    "PitchingTotalBases": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total bases while pitching"
    },
    "PitchingFlyOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total fly outs while pitching"
    },
    "PitchingGroundOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total ground outs while pitching"
    },
    "PitchingLineOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total line outs while pitching"
    },
    "PitchingPopOuts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total pop outs while pitching"
    },
    "PitchingIntentionalWalks": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total intentional walks while pitching"
    },
    "PitchingReachedOnError": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total times reached on error while pitching"
    },
    "PitchingCatchersInterference": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total catchers interference while pitching"
    },
    "PitchingBallsInPlay": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total balls in play while pitching"
    },
    "PitchingOnBasePercentage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total on base percentage (OBP) while pitching"
    },
    "PitchingSluggingPercentage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total slugging percentage (SLG) while pitching"
    },
    "PitchingOnBasePlusSlugging": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total on base plus slugging (OPS) while pitching"
    },
    "PitchingStrikeoutsPerNineInnings": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total strikeouts per nine innings (K/9) while pitching"
    },
    "PitchingWalksPerNineInnings": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total walks per nine innings (BB/9) while pitching"
    },
    "PitchingBattingAverageOnBallsInPlay": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total batting average on balls in play (BABIP) while pitching"
    },
    "PitchingWeightedOnBasePercentage": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total weighted on base percentage while pitching\u00a0"
    },
    "DoublePlays": {
      "type": [
        "number",
        "null"
      ],
      "description": "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"
    },
    "PitchingDoublePlays": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total double plays while pitching"
    },
    "BattingOrderConfirmed": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the batting order is confirmed (true/false)"
    },
    "IsolatedPower": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total isolated power (ISO)"
    },
    "FieldingIndependentPitching": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total fielding independent pitching (FIP)"
    },
    "PitchingQualityStarts": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total quality starts pitched"
    },
    "PitchingInningStarted": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The inning that the pitcher entered the game (if any)."
    },
    "LeftOnBase": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total left on base percentage\u00a0"
    },
    "PitchingHolds": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total holds pitched"
    },
    "PitchingBlownSaves": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total blown saves pitched"
    },
    "SubstituteBattingOrder": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The position in the batting order where this player was substituted into the game (does not include players in the starting lineup)"
    },
    "SubstituteBattingOrderSequence": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The sequence in which this player was substituted into the game, within the particular batting order"
    },
    "FantasyPointsFantasyDraft": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total FantasyDraft fantasy points"
    },
    "FantasyPointsBatting": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total batting fantasy points"
    },
    "FantasyPointsPitching": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total pitching fantasy points"
    }
  }
}