{ "opencollection": "1.0.0", "info": { "name": "MLB MLB v3 Headshots MLB v3 Stats API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "Ocp-Apim-Subscription-Key", "value": "{{Ocp-Apim-Subscription-Key}}", "placement": "header" } }, "items": [ { "info": { "name": "MLB v3 Stats", "type": "folder" }, "items": [ { "info": { "name": "Player Game Stats - by Date [Live & Final]", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerGameStatsByDate/:date", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "date", "value": "", "type": "path", "description": "The date of the game(s).\n
Examples: 2017-JUL-31, 2017-SEP-01." } ] }, "docs": "Returns the box score statistical record for all involved players across a given date, updated live as the game takes place." }, { "info": { "name": "Player Season Stats", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerSeasonStats/:season", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Year of the season.\n
Examples: 2017, 2018." } ] }, "docs": "Returns all season-long stats (i.e. the season total, not each individual game record) for all players for a given season." }, { "info": { "name": "Player Season Stats - by Team", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerSeasonStatsByTeam/:season/:team", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Year of the season.\n
Examples: 2017, 2018.\n" }, { "name": "team", "value": "", "type": "path", "description": "The abbreviation of the requested team.\n
Examples: SF, NYY." } ] }, "docs": "Returns all season-long stats (i.e. the season total, not each individual game record) for a given team's players in a given season." }, { "info": { "name": "Box Scores - by Date [Live & Final]", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/BoxScores/:date", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "date", "value": "", "type": "path", "description": "The date of the game(s).\n
Examples: 2017-JUL-31, 2017-SEP-01." } ] }, "docs": "Full statistical information for a specified game, down to the team and player stat level, delivered live during the game, called for all games on a given date." }, { "info": { "name": "Box Score [Live & Final]", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/BoxScore/:gameid", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "gameid", "value": "", "type": "path", "description": "The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905" } ] }, "docs": "Full statistical information for a specified game, down to the team and player stat level, delivered live during the game, called per individual game." }, { "info": { "name": "Box Scores Delta - by Date", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/BoxScoresDelta/:date/:minutes", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "date", "value": "", "type": "path", "description": "The date of the game(s).\n
Examples: 2017-JUL-31, 2017-SEP-01." }, { "name": "minutes", "value": "", "type": "path", "description": "Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are:\n1, 2 ... all." } ] }, "docs": "This method returns all box scores for a given date, but only returns player stats that have changed in the last X minutes as specified in your API call. By definition this is a live endpoint, not final." }, { "info": { "name": "Player Season Split Stats", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerSeasonSplitStats/:season/:split", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Year of the season.\n
Examples: 2017, 2018." }, { "name": "split", "value": "", "type": "path", "description": "The desired split of stats. Currently, we support vs. Left/Right/Switch handed pitchers/hitters. Possible values are: L, R and S" } ] }, "docs": "All players' split stats for the season. Split stats are available for left, right, and switch-handed pitchers and hitters." }, { "info": { "name": "Batter vs. Pitcher Stats", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/HitterVsPitcher/:hitterid/:pitcherid", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "hitterid", "value": "", "type": "path", "description": "Unique FantasyData Player ID.\nExample:10000031." }, { "name": "pitcherid", "value": "", "type": "path", "description": "Unique FantasyData Player ID.\nExample:10000618." } ] }, "docs": "Stat records for a given hitter and a given pitcher, called by PlayerId in both cases." }, { "info": { "name": "Player Season Stats Split - by Team", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerSeasonStatsSplitByTeam/:season", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Year of the season.\n
Examples: 2017, 2018." } ] }, "docs": "All a given team's players' split stats for the season. Split stats are available for left, right, and switch-handed pitchers and hitters." }, { "info": { "name": "Player Season Stats - by Home", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerSeasonHomeStats/:season", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Year of the season.\n
Examples: 2017, 2018." } ] }, "docs": "All players' stats for the season taken only from their home games." }, { "info": { "name": "Player Season Stats - by Away", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerSeasonAwayStats/:season", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Year of the season.\n
Examples: 2017, 2018." } ] }, "docs": "All players' stats for the season taken only from their road games." }, { "info": { "name": "Team Hitting vs. Starting Pitcher", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/TeamHittersVsPitcher/:gameid/:team", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "gameid", "value": "", "type": "path", "description": "The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905" }, { "name": "team", "value": "", "type": "path", "description": "The abbreviation of the requested team.\n
Examples: SF, NYY." } ] }, "docs": "For a given game, returns a team's hitting record versus the projected or confirmed starting pitcher for the game in question." }, { "info": { "name": "Player Game Logs - by Season", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerGameStatsBySeason/:season/:playerid/:numberofgames", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "season", "value": "", "type": "path", "description": "Season to get games from. Example 2019POST, 2020" }, { "name": "playerid", "value": "", "type": "path", "description": "Unique SportsDataIO Player ID.\nExample:10001365." }, { "name": "numberofgames", "value": "", "type": "path", "description": "How many games to return. Example all, 10, 25" } ] }, "docs": "Specify a season, a player, and number of games (either an integer or all) to see all of their box score logs. Refreshed after their most recent game is complete." }, { "info": { "name": "Player Game Stats - by Date [Final]", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/PlayerGameStatsByDateFinal/:date", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "date", "value": "", "type": "path", "description": "The date of the game(s).\n
Examples: 2017-JUL-31, 2017-SEP-01." } ] }, "docs": "Returns the box score statistical record for all involved players across all teams' games on a given date after each game has concluded." }, { "info": { "name": "Box Score [Final]", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/BoxScoreFinal/:gameid", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "gameid", "value": "", "type": "path", "description": "The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905" } ] }, "docs": "Full statistical information for a specified game, down to the team and player stat level, delivered after the game is complete." }, { "info": { "name": "Box Scores - by Date [Final]", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/BoxScoresFinal/:date", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "date", "value": "", "type": "path", "description": "The date of the game(s).\n
Examples: 2017-JUL-31, 2017-SEP-01." } ] }, "docs": "Full statistical information for a specified date for each game that took place, down to the team and player stat level, delivered after the game is complete." }, { "info": { "name": "Fantasy Points - by Date", "type": "http" }, "http": { "method": "GET", "url": "https://api.sportsdata.io/v3/mlb/stats/:format/FantasyGameStatsByDate/:date", "params": [ { "name": "format", "value": "", "type": "path", "description": "Desired response format. Valid entries are JSON or XML." }, { "name": "date", "value": "", "type": "path", "description": "The date of the game(s).\n
Examples: 2017-JUL-31, 2017-SEP-01." } ] }, "docs": "Returns a simple list of fantasy points and stats for each player for a given date." } ] } ], "bundled": true }