crawlora-mlb 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,460 @@
1
+ require "json"
2
+ require "net/http"
3
+ require "uri"
4
+
5
+ module Crawlora
6
+ module Mlb
7
+ module Errors
8
+ class Error < StandardError
9
+ attr_reader :status, :operation_id, :body
10
+
11
+ def initialize(message, status: nil, operation_id: nil, body: nil)
12
+ super(message)
13
+ @status, @operation_id, @body = status, operation_id, body
14
+ end
15
+ end
16
+ class ClientError < Error; end
17
+ class ServerError < Error; end
18
+ class NetworkError < Error; end
19
+ end
20
+
21
+ OPERATIONS = JSON.parse(<<~'JSON').freeze
22
+ {"mlb-discovery": {"bodyParam": null, "bodyRequired": false, "id": "mlb-discovery", "method": "GET", "params": [], "path": "/mlb/discovery", "pathParams": [], "produces": ["application/json"], "queryParams": [], "security": ["ApiKeyAuth"]}, "mlb-editorial-feed": {"bodyParam": null, "bodyRequired": false, "id": "mlb-editorial-feed", "method": "GET", "params": [{"description": "MLB feed or selection slug, such as mlb-news-list or sel-vvc-mlb-stories", "in": "query", "name": "slug", "required": true, "type": "string", "x-example": "mlb-news-list"}, {"default": "EN_US", "description": "Feed locale", "enum": ["EN_US", "ES_US"], "in": "query", "name": "language", "type": "string"}, {"default": 20, "description": "Items per page (1-100)", "in": "query", "maximum": 100, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Number of items to skip (0-100000)", "in": "query", "maximum": 100000, "minimum": 0, "name": "skip", "type": "integer"}], "path": "/mlb/editorial-feed", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "slug", "required": true, "type": "string"}, {"enum": ["EN_US", "ES_US"], "in": "query", "name": "language", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "skip", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-game": {"bodyParam": null, "bodyRequired": false, "id": "mlb-game", "method": "GET", "params": [{"description": "Numeric MLB game id", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "822781"}], "path": "/mlb/game", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-game-boxscore": {"bodyParam": null, "bodyRequired": false, "id": "mlb-game-boxscore", "method": "GET", "params": [{"description": "Numeric MLB game id", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "824651"}], "path": "/mlb/game-boxscore", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-game-play-by-play": {"bodyParam": null, "bodyRequired": false, "id": "mlb-game-play-by-play", "method": "GET", "params": [{"description": "Numeric MLB game id", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "824651"}], "path": "/mlb/game-play-by-play", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-league-leaders": {"bodyParam": null, "bodyRequired": false, "id": "mlb-league-leaders", "method": "GET", "params": [{"description": "Comma-separated MLB leader category names; values are listed in mlb-discovery", "in": "query", "name": "categories", "required": true, "type": "string", "x-example": "homeRuns"}, {"description": "Four-digit season; defaults to current year", "in": "query", "name": "season", "type": "integer", "x-example": 2026}, {"description": "Stat group", "enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "type": "string"}, {"description": "MLB game type", "enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"description": "MLB league id", "enum": ["103", "104"], "in": "query", "name": "league_id", "type": "string"}, {"default": 10, "description": "Leaders per category (1-100)", "in": "query", "maximum": 100, "minimum": 1, "name": "limit", "type": "integer"}], "path": "/mlb/league-leaders", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "categories", "required": true, "type": "string"}, {"in": "query", "name": "season", "type": "integer"}, {"enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "type": "string"}, {"enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["103", "104"], "in": "query", "name": "league_id", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-league-stats": {"bodyParam": null, "bodyRequired": false, "id": "mlb-league-stats", "method": "GET", "params": [{"description": "Four-digit season; defaults to current year", "in": "query", "name": "season", "type": "integer", "x-example": 2026}, {"description": "Stat group", "enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "required": true, "type": "string", "x-example": "hitting"}, {"default": "season", "description": "Stats API stat type; defaults to season", "enum": ["projected", "projectedRos", "yearByYear", "yearByYearAdvanced", "yearByYearPlayoffs", "season", "standard", "advanced", "career", "careerRegularSeason", "careerAdvanced", "seasonAdvanced", "careerStatSplits", "careerPlayoffs", "gameLog", "playLog", "pitchLog", "pitchArsenal", "outsAboveAverage", "expectedStatistics", "sabermetrics", "sprayChart", "tracking", "vsPlayer", "vsPlayerTotal", "vsPlayer5Y", "vsTeam", "vsTeam5Y", "vsTeamTotal", "lastXGames", "byDateRange", "byDateRangeAdvanced", "byMonth", "byMonthPlayoffs", "byDayOfWeek", "byDayOfWeekPlayoffs", "homeAndAway", "homeAndAwayPlayoffs", "winLoss", "winLossPlayoffs", "rankings", "rankingsByYear", "statsSingleSeason", "statsSingleSeasonAdvanced", "hotColdZones", "availableStats", "opponentsFaced", "gameTypeStats", "firstYearStats", "lastYearStats", "statSplits", "statSplitsAdvanced", "atGameStart", "vsOpponents", "sabermetricsMultiTeam", "projected_Zips", "projected_ZipsRos", "projected_Zips2YR", "projected_Zips3YR"], "in": "query", "name": "stat_type", "type": "string"}, {"description": "MLB game type", "enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"description": "Start date for byDateRange stat types; requires end_date", "in": "query", "name": "start_date", "type": "string"}, {"description": "End date for byDateRange stat types; requires start_date", "in": "query", "name": "end_date", "type": "string"}, {"description": "Required by vsTeam stat types", "in": "query", "name": "opponent_team_id", "type": "string"}, {"description": "Required by vsPlayer stat types", "in": "query", "name": "opponent_player_id", "type": "string"}, {"description": "MLB league id", "enum": ["103", "104"], "in": "query", "name": "league_id", "type": "string"}, {"description": "Optional MLB team id; discover current team ids with mlb_teams", "in": "query", "name": "team_id", "type": "string"}, {"description": "Hitter position; use only with group=hitting", "enum": ["C", "1B", "2B", "3B", "SS", "LF", "CF", "RF", "DH", "OF", "IF"], "in": "query", "name": "position", "type": "string"}, {"description": "Qualified-player pool", "enum": ["QUALIFIED", "ALL"], "in": "query", "name": "player_pool", "type": "string"}, {"default": 10, "description": "Results to return (1-100)", "in": "query", "maximum": 100, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based result offset (0-10000)", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/league-stats", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "season", "type": "integer"}, {"enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "required": true, "type": "string"}, {"enum": ["projected", "projectedRos", "yearByYear", "yearByYearAdvanced", "yearByYearPlayoffs", "season", "standard", "advanced", "career", "careerRegularSeason", "careerAdvanced", "seasonAdvanced", "careerStatSplits", "careerPlayoffs", "gameLog", "playLog", "pitchLog", "pitchArsenal", "outsAboveAverage", "expectedStatistics", "sabermetrics", "sprayChart", "tracking", "vsPlayer", "vsPlayerTotal", "vsPlayer5Y", "vsTeam", "vsTeam5Y", "vsTeamTotal", "lastXGames", "byDateRange", "byDateRangeAdvanced", "byMonth", "byMonthPlayoffs", "byDayOfWeek", "byDayOfWeekPlayoffs", "homeAndAway", "homeAndAwayPlayoffs", "winLoss", "winLossPlayoffs", "rankings", "rankingsByYear", "statsSingleSeason", "statsSingleSeasonAdvanced", "hotColdZones", "availableStats", "opponentsFaced", "gameTypeStats", "firstYearStats", "lastYearStats", "statSplits", "statSplitsAdvanced", "atGameStart", "vsOpponents", "sabermetricsMultiTeam", "projected_Zips", "projected_ZipsRos", "projected_Zips2YR", "projected_Zips3YR"], "in": "query", "name": "stat_type", "type": "string"}, {"enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"in": "query", "name": "start_date", "type": "string"}, {"in": "query", "name": "end_date", "type": "string"}, {"in": "query", "name": "opponent_team_id", "type": "string"}, {"in": "query", "name": "opponent_player_id", "type": "string"}, {"enum": ["103", "104"], "in": "query", "name": "league_id", "type": "string"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["C", "1B", "2B", "3B", "SS", "LF", "CF", "RF", "DH", "OF", "IF"], "in": "query", "name": "position", "type": "string"}, {"enum": ["QUALIFIED", "ALL"], "in": "query", "name": "player_pool", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-player": {"bodyParam": null, "bodyRequired": false, "id": "mlb-player", "method": "GET", "params": [{"description": "Numeric MLB player id", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "592450"}], "path": "/mlb/player", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-player-stats": {"bodyParam": null, "bodyRequired": false, "id": "mlb-player-stats", "method": "GET", "params": [{"description": "Numeric MLB player id", "in": "query", "name": "id", "required": true, "type": "string", "x-example": "592450"}, {"description": "Four-digit season; defaults to current year", "in": "query", "name": "season", "type": "integer", "x-example": 2026}, {"description": "Stat group", "enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "required": true, "type": "string", "x-example": "hitting"}, {"default": "season", "description": "Stats API stat type; defaults to season", "enum": ["projected", "projectedRos", "yearByYear", "yearByYearAdvanced", "yearByYearPlayoffs", "season", "standard", "advanced", "career", "careerRegularSeason", "careerAdvanced", "seasonAdvanced", "careerStatSplits", "careerPlayoffs", "gameLog", "playLog", "pitchLog", "pitchArsenal", "outsAboveAverage", "expectedStatistics", "sabermetrics", "sprayChart", "tracking", "vsPlayer", "vsPlayerTotal", "vsPlayer5Y", "vsTeam", "vsTeam5Y", "vsTeamTotal", "lastXGames", "byDateRange", "byDateRangeAdvanced", "byMonth", "byMonthPlayoffs", "byDayOfWeek", "byDayOfWeekPlayoffs", "homeAndAway", "homeAndAwayPlayoffs", "winLoss", "winLossPlayoffs", "rankings", "rankingsByYear", "statsSingleSeason", "statsSingleSeasonAdvanced", "hotColdZones", "availableStats", "opponentsFaced", "gameTypeStats", "firstYearStats", "lastYearStats", "statSplits", "statSplitsAdvanced", "atGameStart", "vsOpponents", "sabermetricsMultiTeam", "projected_Zips", "projected_ZipsRos", "projected_Zips2YR", "projected_Zips3YR"], "in": "query", "name": "stat_type", "type": "string"}, {"description": "MLB game type", "enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"description": "Start date for byDateRange stat types; requires end_date", "in": "query", "name": "start_date", "type": "string"}, {"description": "End date for byDateRange stat types; requires start_date", "in": "query", "name": "end_date", "type": "string"}, {"description": "Required by vsTeam stat types", "in": "query", "name": "opponent_team_id", "type": "string"}, {"description": "Required by vsPlayer stat types", "in": "query", "name": "opponent_player_id", "type": "string"}], "path": "/mlb/player-stats", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "id", "required": true, "type": "string"}, {"in": "query", "name": "season", "type": "integer"}, {"enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "required": true, "type": "string"}, {"enum": ["projected", "projectedRos", "yearByYear", "yearByYearAdvanced", "yearByYearPlayoffs", "season", "standard", "advanced", "career", "careerRegularSeason", "careerAdvanced", "seasonAdvanced", "careerStatSplits", "careerPlayoffs", "gameLog", "playLog", "pitchLog", "pitchArsenal", "outsAboveAverage", "expectedStatistics", "sabermetrics", "sprayChart", "tracking", "vsPlayer", "vsPlayerTotal", "vsPlayer5Y", "vsTeam", "vsTeam5Y", "vsTeamTotal", "lastXGames", "byDateRange", "byDateRangeAdvanced", "byMonth", "byMonthPlayoffs", "byDayOfWeek", "byDayOfWeekPlayoffs", "homeAndAway", "homeAndAwayPlayoffs", "winLoss", "winLossPlayoffs", "rankings", "rankingsByYear", "statsSingleSeason", "statsSingleSeasonAdvanced", "hotColdZones", "availableStats", "opponentsFaced", "gameTypeStats", "firstYearStats", "lastYearStats", "statSplits", "statSplitsAdvanced", "atGameStart", "vsOpponents", "sabermetricsMultiTeam", "projected_Zips", "projected_ZipsRos", "projected_Zips2YR", "projected_Zips3YR"], "in": "query", "name": "stat_type", "type": "string"}, {"enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"in": "query", "name": "start_date", "type": "string"}, {"in": "query", "name": "end_date", "type": "string"}, {"in": "query", "name": "opponent_team_id", "type": "string"}, {"in": "query", "name": "opponent_player_id", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-prospect-rankings": {"bodyParam": null, "bodyRequired": false, "id": "mlb-prospect-rankings", "method": "GET", "params": [{"default": "top100", "description": "Ranking view", "enum": ["top100", "team", "position", "draft", "international"], "in": "query", "name": "view", "type": "string"}, {"default": 2026, "description": "Ranking year", "enum": [2026, 2025, 2024, 2023, 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2011, 2012], "in": "query", "name": "year", "type": "integer"}, {"description": "Required for view=team; one of the MLB Pipeline team ranking slugs. See mlb_discovery.", "in": "query", "name": "team_slug", "type": "string"}, {"description": "Required for view=position", "enum": ["1b", "2b", "ss", "3b", "c", "of", "rhp", "lhp"], "in": "query", "name": "position", "type": "string"}, {"description": "Optional organization filter for view=top100; use a team slug from mlb_discovery.", "in": "query", "name": "team_filter", "type": "string"}, {"description": "Case-insensitive player-name substring", "in": "query", "name": "q", "type": "string"}, {"default": "rank", "description": "Local sort field", "enum": ["rank", "level", "eta", "age"], "in": "query", "name": "sort", "type": "string"}, {"description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 250, "description": "Rows per page (1-250)", "in": "query", "maximum": 250, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/prospect-rankings", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["top100", "team", "position", "draft", "international"], "in": "query", "name": "view", "type": "string"}, {"enum": ["2026", "2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017", "2016", "2015", "2014", "2013", "2011", "2012"], "in": "query", "name": "year", "type": "integer"}, {"in": "query", "name": "team_slug", "type": "string"}, {"enum": ["1b", "2b", "ss", "3b", "c", "of", "rhp", "lhp"], "in": "query", "name": "position", "type": "string"}, {"in": "query", "name": "team_filter", "type": "string"}, {"in": "query", "name": "q", "type": "string"}, {"enum": ["rank", "level", "eta", "age"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-prospect-stats": {"bodyParam": null, "bodyRequired": false, "id": "mlb-prospect-stats", "method": "GET", "params": [{"default": "top100", "description": "Prospect pool", "enum": ["top100", "all"], "in": "query", "name": "list_type", "type": "string"}, {"description": "Optional MLB team id; selects that team's prospect list and overrides list_type", "in": "query", "name": "team_id", "type": "string"}, {"default": "Year2026", "description": "Prospect table period", "enum": ["today", "1day", "10day", "30day", "springTraining", "Year2019", "Year2020", "Year2021", "Year2022", "Year2023", "Year2024", "Year2025", "Year2026"], "in": "query", "name": "date_range", "type": "string"}, {"default": "batters", "description": "Player table", "enum": ["batters", "pitchers"], "in": "query", "name": "player_type", "type": "string"}, {"default": 1, "description": "Minimum PA threshold", "enum": [1, 5, 10, 25, 50, 100, 150, 200, 250], "in": "query", "name": "min_pa", "type": "integer"}, {"description": "Position filter", "enum": ["1b", "2b", "ss", "3b", "c", "of", "rhp", "lhp"], "in": "query", "name": "position", "type": "string"}, {"description": "Case-insensitive player-name substring", "in": "query", "name": "q", "type": "string"}, {"default": 100, "description": "Rows to return (1-100)", "in": "query", "maximum": 100, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/prospect-stats", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["top100", "all"], "in": "query", "name": "list_type", "type": "string"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["today", "1day", "10day", "30day", "springTraining", "Year2019", "Year2020", "Year2021", "Year2022", "Year2023", "Year2024", "Year2025", "Year2026"], "in": "query", "name": "date_range", "type": "string"}, {"enum": ["batters", "pitchers"], "in": "query", "name": "player_type", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "150", "200", "250"], "in": "query", "name": "min_pa", "type": "integer"}, {"enum": ["1b", "2b", "ss", "3b", "c", "of", "rhp", "lhp"], "in": "query", "name": "position", "type": "string"}, {"in": "query", "name": "q", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-schedule": {"bodyParam": null, "bodyRequired": false, "id": "mlb-schedule", "method": "GET", "params": [{"description": "Single date in YYYY-MM-DD format", "in": "query", "name": "date", "type": "string", "x-example": "2026-08-01"}, {"description": "Range start in YYYY-MM-DD format", "in": "query", "name": "start_date", "type": "string"}, {"description": "Range end in YYYY-MM-DD format", "in": "query", "name": "end_date", "type": "string"}, {"description": "Numeric MLB team id", "in": "query", "name": "team_id", "type": "string"}, {"description": "Game type", "enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}], "path": "/mlb/schedule", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "date", "type": "string"}, {"in": "query", "name": "start_date", "type": "string"}, {"in": "query", "name": "end_date", "type": "string"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-search": {"bodyParam": null, "bodyRequired": false, "id": "mlb-search", "method": "GET", "params": [{"description": "Search text; 3-100 characters", "in": "query", "name": "q", "required": true, "type": "string", "x-example": "Yankees"}], "path": "/mlb/search", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "q", "required": true, "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-standings": {"bodyParam": null, "bodyRequired": false, "id": "mlb-standings", "method": "GET", "params": [{"description": "Four-digit season; defaults to current year", "in": "query", "name": "season", "type": "integer", "x-example": 2026}, {"default": "regularSeason", "description": "Standings type", "enum": ["regularSeason", "wildCard", "divisionLeaders", "wildCardWithLeaders", "firstHalf", "secondHalf", "springTraining", "postseason", "byDivision", "byConference", "byLeague", "byOrganization", "currentHalf"], "in": "query", "name": "type", "type": "string"}, {"description": "Snapshot date in YYYY-MM-DD format; returns standings as of that date", "in": "query", "name": "date", "type": "string", "x-example": "2026-09-27"}], "path": "/mlb/standings", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "season", "type": "integer"}, {"enum": ["regularSeason", "wildCard", "divisionLeaders", "wildCardWithLeaders", "firstHalf", "secondHalf", "springTraining", "postseason", "byDivision", "byConference", "byLeague", "byOrganization", "currentHalf"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "date", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-statcast": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast", "method": "GET", "params": [{"default": "batter", "description": "Leaderboard row type", "enum": ["batter", "pitcher", "batter-team", "pitcher-team"], "in": "query", "name": "type", "type": "string"}, {"description": "Season; current season back 11 seasons", "in": "query", "name": "year", "type": "integer"}, {"description": "Optional MLB team id from mlb_teams", "in": "query", "name": "team_id", "type": "string"}, {"description": "Batter position", "enum": ["C", "1B", "2B", "SS", "3B", "LF", "CF", "RF", "DH"], "in": "query", "name": "position", "type": "string"}, {"default": "q", "description": "Minimum batted-ball event threshold", "enum": ["q", "1", "25", "50", "100", "150", "200", "250", "350", "450", "500", "600"], "in": "query", "name": "min_bbe", "type": "string"}, {"default": "barrels_per_pa", "description": "Sort field", "enum": ["entity_name", "bip", "launch_angle_avg", "sweet_spot_percent", "exit_velocity_max", "exit_velocity_avg", "avg_best_speed", "exit_velocity_fbld", "distance_max", "distance_hr_avg", "hard_hit_ct", "hard_hit_percent", "hard_hit_per_swing", "barrel_ct", "barrels_per_bip", "barrels_per_pa"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-leaders", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "pitcher", "batter-team", "pitcher-team"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "year", "type": "integer"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["C", "1B", "2B", "SS", "3B", "LF", "CF", "RF", "DH"], "in": "query", "name": "position", "type": "string"}, {"enum": ["q", "1", "25", "50", "100", "150", "200", "250", "350", "450", "500", "600"], "in": "query", "name": "min_bbe", "type": "string"}, {"enum": ["entity_name", "bip", "launch_angle_avg", "sweet_spot_percent", "exit_velocity_max", "exit_velocity_avg", "avg_best_speed", "exit_velocity_fbld", "distance_max", "distance_hr_avg", "hard_hit_ct", "hard_hit_percent", "hard_hit_per_swing", "barrel_ct", "barrels_per_bip", "barrels_per_pa"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-abs-challenges": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-abs-challenges", "method": "GET", "params": [{"default": "batter", "description": "Challenge board group", "enum": ["batter", "batting-team", "catcher", "pitcher", "catching-team", "team-summary", "league"], "in": "query", "name": "challenge_type", "type": "string"}, {"collectionFormat": "multi", "description": "Season values", "in": "query", "items": {"enum": ["2025", "2026"], "type": "string"}, "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "description": "Game type codes", "in": "query", "items": {"enum": ["R", "S", "F", "D", "L", "W"], "type": "string"}, "name": "game_types", "type": "array"}, {"default": "for", "description": "Challenges made or against", "enum": ["for", "against"], "in": "query", "name": "data_mode", "type": "string"}, {"default": "chal", "description": "Challenge count or run value", "enum": ["chal", "runs"], "in": "query", "name": "data_count", "type": "string"}, {"default": "1", "description": "Minimum challenges made", "enum": ["0", "1", "2", "5", "10", "20"], "in": "query", "name": "min_challenges", "type": "string"}, {"default": "0", "description": "Minimum challenges against", "enum": ["0", "1", "2", "5", "10", "20"], "in": "query", "name": "min_opponent_challenges", "type": "string"}, {"default": "mlb", "description": "Competition level", "enum": ["mlb", "aaa"], "in": "query", "name": "level", "type": "string"}, {"description": "Leverage bucket; empty selects All", "enum": ["vlow", "low", "med", "high"], "in": "query", "name": "leverage", "type": "string"}, {"description": "Pitch location; empty selects All", "enum": ["in", "out"], "in": "query", "name": "ball_strike", "type": "string"}, {"description": "Challenge breakeven band; empty selects All", "enum": ["low", "med", "high", "vhigh"], "in": "query", "name": "breakeven", "type": "string"}, {"default": "1", "description": "Separate year groups", "enum": ["0", "1"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "multi", "description": "Split dimensions", "in": "query", "items": {"enum": ["api_game_date_month_text", "game_type", "bat_position_code", "lineup_cd", "leverage_run_value_code", "is_strike_calc", "home_away", "api_pitch_type_group03", "gameday3_pitchzone_cd", "abschallenge_breakeven_code"], "type": "string"}, "name": "splits", "type": "array"}, {"collectionFormat": "multi", "description": "Challenging MLB team ids", "in": "query", "items": {"enum": ["141", "110", "139", "111", "147", "114", "118", "116", "142", "145", "108", "117", "133", "136", "140", "144", "146", "121", "120", "143", "158", "138", "112", "134", "113", "109", "119", "137", "135", "115"], "type": "string"}, "name": "challenge_team_ids", "type": "array"}, {"collectionFormat": "multi", "description": "Opponent MLB team ids", "in": "query", "items": {"enum": ["141", "110", "139", "111", "147", "114", "118", "116", "142", "145", "108", "117", "133", "136", "140", "144", "146", "121", "120", "143", "158", "138", "112", "134", "113", "109", "119", "137", "135", "115"], "type": "string"}, "name": "opponent_team_ids", "type": "array"}, {"collectionFormat": "multi", "description": "Pitch type codes", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "description": "Shadow zone codes", "in": "query", "items": {"enum": ["11", "12", "13", "14", "16", "17", "18", "19"], "type": "string"}, "name": "shadow_zones", "type": "array"}], "path": "/mlb/statcast-abs-challenges", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "batting-team", "catcher", "pitcher", "catching-team", "team-summary", "league"], "in": "query", "name": "challenge_type", "type": "string"}, {"collectionFormat": "multi", "enum": ["2025", "2026"], "in": "query", "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "enum": ["R", "S", "F", "D", "L", "W"], "in": "query", "name": "game_types", "type": "array"}, {"enum": ["for", "against"], "in": "query", "name": "data_mode", "type": "string"}, {"enum": ["chal", "runs"], "in": "query", "name": "data_count", "type": "string"}, {"enum": ["0", "1", "2", "5", "10", "20"], "in": "query", "name": "min_challenges", "type": "string"}, {"enum": ["0", "1", "2", "5", "10", "20"], "in": "query", "name": "min_opponent_challenges", "type": "string"}, {"enum": ["mlb", "aaa"], "in": "query", "name": "level", "type": "string"}, {"enum": ["vlow", "low", "med", "high"], "in": "query", "name": "leverage", "type": "string"}, {"enum": ["in", "out"], "in": "query", "name": "ball_strike", "type": "string"}, {"enum": ["low", "med", "high", "vhigh"], "in": "query", "name": "breakeven", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "multi", "enum": ["api_game_date_month_text", "game_type", "bat_position_code", "lineup_cd", "leverage_run_value_code", "is_strike_calc", "home_away", "api_pitch_type_group03", "gameday3_pitchzone_cd", "abschallenge_breakeven_code"], "in": "query", "name": "splits", "type": "array"}, {"collectionFormat": "multi", "enum": ["141", "110", "139", "111", "147", "114", "118", "116", "142", "145", "108", "117", "133", "136", "140", "144", "146", "121", "120", "143", "158", "138", "112", "134", "113", "109", "119", "137", "135", "115"], "in": "query", "name": "challenge_team_ids", "type": "array"}, {"collectionFormat": "multi", "enum": ["141", "110", "139", "111", "147", "114", "118", "116", "142", "145", "108", "117", "133", "136", "140", "144", "146", "121", "120", "143", "158", "138", "112", "134", "113", "109", "119", "137", "135", "115"], "in": "query", "name": "opponent_team_ids", "type": "array"}, {"collectionFormat": "multi", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["11", "12", "13", "14", "16", "17", "18", "19"], "in": "query", "name": "shadow_zones", "type": "array"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-active-spin": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-active-spin", "method": "GET", "params": [{"default": "2026_spin-based", "description": "Season and calculation method", "enum": ["2026_spin-based", "2026_observed", "2025_spin-based", "2025_observed", "2024_spin-based", "2024_observed", "2023_spin-based", "2023_observed", "2022_spin-based", "2022_observed", "2021_spin-based", "2021_observed", "2020_spin-based", "2020_observed", "2019_observed", "2018_observed", "2017_observed"], "in": "query", "name": "year", "type": "string"}, {"default": "50", "description": "Minimum total pitches", "enum": ["50", "100", "250", "500", "750", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min", "type": "string"}, {"description": "Pitcher throwing hand; omit for both", "enum": ["R", "L"], "in": "query", "name": "hand", "type": "string"}, {"default": "formatted_active_spin_fourseam", "description": "Local table sort field", "enum": ["name_display_last_first", "team_id", "pitch_hand", "formatted_active_spin_fourseam", "formatted_active_spin_sinker", "formatted_active_spin_cutter", "formatted_active_spin_changeup", "formatted_active_spin_splitter", "formatted_active_spin_curve", "formatted_active_spin_slider", "formatted_active_spin_sweeper", "formatted_active_spin_slurve"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-active-spin", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["2026_spin-based", "2026_observed", "2025_spin-based", "2025_observed", "2024_spin-based", "2024_observed", "2023_spin-based", "2023_observed", "2022_spin-based", "2022_observed", "2021_spin-based", "2021_observed", "2020_spin-based", "2020_observed", "2019_observed", "2018_observed", "2017_observed"], "in": "query", "name": "year", "type": "string"}, {"enum": ["50", "100", "250", "500", "750", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min", "type": "string"}, {"enum": ["R", "L"], "in": "query", "name": "hand", "type": "string"}, {"enum": ["name_display_last_first", "team_id", "pitch_hand", "formatted_active_spin_fourseam", "formatted_active_spin_sinker", "formatted_active_spin_cutter", "formatted_active_spin_changeup", "formatted_active_spin_splitter", "formatted_active_spin_curve", "formatted_active_spin_slider", "formatted_active_spin_sweeper", "formatted_active_spin_slurve"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-arm-angle": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-arm-angle", "method": "GET", "params": [{"collectionFormat": "multi", "description": "Seasons; at most three may be combined. Defaults to 2026.", "in": "query", "items": {"enum": ["2026", "2025", "2024", "2023", "2022", "2021", "2020"], "type": "string"}, "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "description": "MLB team ids; omit for all teams.", "in": "query", "items": {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "type": "string"}, "name": "teams", "type": "array"}, {"collectionFormat": "multi", "description": "Game type codes; defaults to R.", "in": "query", "items": {"enum": ["R", "F", "D", "L", "W"], "type": "string"}, "name": "game_types", "type": "array"}, {"collectionFormat": "multi", "description": "Pitch type codes; defaults to FF.", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"description": "Pitcher throwing hand; omit for both.", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"description": "Batter side; omit for both.", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Minimum total pitches; defaults to q.", "enum": ["q", "1", "5", "10", "25", "50", "100", "300", "500", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min", "type": "string"}, {"description": "Minimum pitches per group; defaults to 1.", "enum": ["1", "5", "10", "25", "50", "100", "300", "500", "1000", "1500", "2000"], "in": "query", "name": "min_group_pitches", "type": "string"}, {"collectionFormat": "multi", "description": "Up to four grouping fields.", "in": "query", "items": {"enum": ["year", "api_game_date_month_text", "api_pitch_type_group03", "game_type", "bat_side", "fld_team_id"], "type": "string"}, "name": "group_by", "type": "array"}, {"description": "Inclusive start date, YYYY-MM-DD.", "in": "query", "name": "date_start", "type": "string"}, {"description": "Inclusive end date, YYYY-MM-DD.", "in": "query", "name": "date_end", "type": "string"}, {"description": "Local table sort field; defaults to arm_angle.", "enum": ["name", "team_name", "pitch_hand", "n_pitches", "arm_angle", "release_ball_x", "relative_release_ball_x", "release_ball_z", "relative_shoulder_x", "shoulder_z"], "in": "query", "name": "sort", "type": "string"}, {"description": "Local sort direction; defaults to asc.", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500).", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset (0-5000).", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-arm-angle", "pathParams": [], "produces": ["application/json"], "queryParams": [{"collectionFormat": "multi", "enum": ["2026", "2025", "2024", "2023", "2022", "2021", "2020"], "in": "query", "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "teams", "type": "array"}, {"collectionFormat": "multi", "enum": ["R", "F", "D", "L", "W"], "in": "query", "name": "game_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["q", "1", "5", "10", "25", "50", "100", "300", "500", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "300", "500", "1000", "1500", "2000"], "in": "query", "name": "min_group_pitches", "type": "string"}, {"collectionFormat": "multi", "enum": ["year", "api_game_date_month_text", "api_pitch_type_group03", "game_type", "bat_side", "fld_team_id"], "in": "query", "name": "group_by", "type": "array"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["name", "team_name", "pitch_hand", "n_pitches", "arm_angle", "release_ball_x", "relative_release_ball_x", "release_ball_z", "relative_shoulder_x", "shoulder_z"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-arm-strength": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-arm-strength", "method": "GET", "params": [{"default": "player", "description": "Leaderboard row type", "enum": ["player", "team"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "Season or all years", "enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026", "9999"], "in": "query", "name": "year", "type": "string"}, {"description": "MLB team id", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team_id", "type": "string"}, {"description": "Position metric", "enum": ["arm_inf", "arm_of", "arm_1b", "arm_2b", "arm_3b", "arm_ss", "arm_lf", "arm_cf", "arm_rf"], "in": "query", "name": "position", "type": "string"}, {"default": "50", "description": "Minimum throws", "enum": ["50", "100", "300", "500", "1000"], "in": "query", "name": "min_throws", "type": "string"}, {"default": "max_arm_strength", "description": "Local sort field", "enum": ["fielder_name", "team_name", "total_throws", "max_arm_strength", "arm_overall", "arm_inf", "arm_of", "arm_1b", "arm_2b", "arm_3b", "arm_ss", "arm_lf", "arm_cf", "arm_rf"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-arm-strength", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["player", "team"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026", "9999"], "in": "query", "name": "year", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team_id", "type": "string"}, {"enum": ["arm_inf", "arm_of", "arm_1b", "arm_2b", "arm_3b", "arm_ss", "arm_lf", "arm_cf", "arm_rf"], "in": "query", "name": "position", "type": "string"}, {"enum": ["50", "100", "300", "500", "1000"], "in": "query", "name": "min_throws", "type": "string"}, {"enum": ["fielder_name", "team_name", "total_throws", "max_arm_strength", "arm_overall", "arm_inf", "arm_of", "arm_1b", "arm_2b", "arm_3b", "arm_ss", "arm_lf", "arm_cf", "arm_rf"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-arm-strength-player": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-arm-strength-player", "method": "GET", "params": [{"description": "Positive MLB player id", "in": "query", "name": "player_id", "required": true, "type": "string", "x-example": "694374"}, {"default": "2026", "description": "Season or all years", "enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026", "9999"], "in": "query", "name": "year", "type": "string"}], "path": "/mlb/statcast-arm-strength-player", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "player_id", "required": true, "type": "string"}, {"enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026", "9999"], "in": "query", "name": "year", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-arm-value": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-arm-value", "method": "GET", "params": [{"description": "Case- and accent-insensitive local substring on the displayed row name; up to 100 characters", "in": "query", "name": "q", "type": "string"}, {"default": "Fld", "description": "Leaderboard view", "enum": ["Run", "Fld", "Pit", "Batting Team", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "All", "description": "Baserunner situation", "enum": ["All", "r10_to_2b_210", "r10_to_3b_210", "r11_to_3b_10", "r11_to_3b_2", "r11_to_hp_10", "r11_to_hp_2", "r12_to_hp_10", "r12_to_hp_2", "r13_to_hp_0", "r13_to_hp_1"], "in": "query", "name": "key_base_out", "type": "string"}, {"default": "top", "description": "Minimum opportunities", "enum": ["top", "1", "5", "10", "20", "30", "40", "50", "75", "100", "250", "500", "1000"], "in": "query", "name": "minimum_opps", "type": "string"}, {"description": "Start season, 2016 through current season", "in": "query", "minimum": 2016, "name": "start_year", "type": "integer"}, {"description": "End season, 2016 through current season; must be >= start_year", "in": "query", "minimum": 2016, "name": "end_year", "type": "integer"}, {"default": "no", "description": "Return one row per season", "enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"description": "MLB team id from mlb_discovery, split for All Teams Split by Team, or empty for All Teams", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147", "split"], "in": "query", "name": "team_id", "type": "string"}, {"default": "1", "description": "Team-roster membership for a selected team", "enum": ["1", "0"], "in": "query", "name": "with_team_only", "type": "string"}, {"description": "Local table sort field", "enum": ["entity_name", "team_name", "start_year", "runner_runs", "fielder_runs", "runner_runs_swipe", "runner_runs_snipe", "runner_runs_freeze", "fielder_runs_swipe", "fielder_runs_snipe", "fielder_runs_freeze", "n_opp_xb", "n_att_xb", "rate_att_xb", "est_rate_att_generic_runner", "est_rate_att_generic_fielder", "rate_att_xb_diff_runner", "rate_att_xb_diff_fielder", "n_safe", "rate_safe", "rate_safe_per_attempt"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-arm-value", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "q", "type": "string"}, {"enum": ["Run", "Fld", "Pit", "Batting Team", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["All", "r10_to_2b_210", "r10_to_3b_210", "r11_to_3b_10", "r11_to_3b_2", "r11_to_hp_10", "r11_to_hp_2", "r12_to_hp_10", "r12_to_hp_2", "r13_to_hp_0", "r13_to_hp_1"], "in": "query", "name": "key_base_out", "type": "string"}, {"enum": ["top", "1", "5", "10", "20", "30", "40", "50", "75", "100", "250", "500", "1000"], "in": "query", "name": "minimum_opps", "type": "string"}, {"in": "query", "name": "start_year", "type": "integer"}, {"in": "query", "name": "end_year", "type": "integer"}, {"enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147", "split"], "in": "query", "name": "team_id", "type": "string"}, {"enum": ["1", "0"], "in": "query", "name": "with_team_only", "type": "string"}, {"enum": ["entity_name", "team_name", "start_year", "runner_runs", "fielder_runs", "runner_runs_swipe", "runner_runs_snipe", "runner_runs_freeze", "fielder_runs_swipe", "fielder_runs_snipe", "fielder_runs_freeze", "n_opp_xb", "n_att_xb", "rate_att_xb", "est_rate_att_generic_runner", "est_rate_att_generic_fielder", "rate_att_xb_diff_runner", "rate_att_xb_diff_fielder", "n_safe", "rate_safe", "rate_safe_per_attempt"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-arm-value-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-arm-value-details", "method": "GET", "params": [{"description": "Positive player id from an Arm Value player row", "in": "query", "name": "entity_id", "required": true, "type": "string", "x-example": "677800"}, {"default": "Fld", "description": "Player view", "enum": ["Run", "Fld", "Pit"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "All", "description": "Baserunner situation", "enum": ["All", "r10_to_2b_210", "r10_to_3b_210", "r11_to_3b_10", "r11_to_3b_2", "r11_to_hp_10", "r11_to_hp_2", "r12_to_hp_10", "r12_to_hp_2", "r13_to_hp_0", "r13_to_hp_1"], "in": "query", "name": "key_base_out", "type": "string"}, {"default": "top", "description": "Minimum opportunities", "enum": ["top", "1", "5", "10", "20", "30", "40", "50", "75", "100", "250", "500", "1000"], "in": "query", "name": "minimum_opps", "type": "string"}, {"description": "Start season, 2016 through current season", "in": "query", "minimum": 2016, "name": "start_year", "type": "integer"}, {"description": "End season, 2016 through current season; must be >= start_year", "in": "query", "minimum": 2016, "name": "end_year", "type": "integer"}, {"default": "no", "description": "Split leaderboard records by season", "enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"description": "MLB team id from mlb_discovery, split, or empty", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147", "split"], "in": "query", "name": "team_id", "type": "string"}, {"default": "1", "description": "Team-roster membership for a selected team", "enum": ["1", "0"], "in": "query", "name": "with_team_only", "type": "string"}], "path": "/mlb/statcast-arm-value-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "entity_id", "required": true, "type": "string"}, {"enum": ["Run", "Fld", "Pit"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["All", "r10_to_2b_210", "r10_to_3b_210", "r11_to_3b_10", "r11_to_3b_2", "r11_to_hp_10", "r11_to_hp_2", "r12_to_hp_10", "r12_to_hp_2", "r13_to_hp_0", "r13_to_hp_1"], "in": "query", "name": "key_base_out", "type": "string"}, {"enum": ["top", "1", "5", "10", "20", "30", "40", "50", "75", "100", "250", "500", "1000"], "in": "query", "name": "minimum_opps", "type": "string"}, {"in": "query", "name": "start_year", "type": "integer"}, {"in": "query", "name": "end_year", "type": "integer"}, {"enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147", "split"], "in": "query", "name": "team_id", "type": "string"}, {"enum": ["1", "0"], "in": "query", "name": "with_team_only", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-baserunning": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-baserunning", "method": "GET", "params": [{"description": "Baseball Savant table", "enum": ["baserunning-run-value", "basestealing-running-game", "baserunning"], "in": "query", "name": "board", "required": true, "type": "string", "x-example": "baserunning-run-value"}, {"description": "Board group; accepted values depend on board", "enum": ["Run", "Bat", "Batting Team", "Pitching Team", "Fld", "Pit", "League"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game scope", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"description": "Inclusive first season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_start", "type": "integer"}, {"description": "Inclusive last season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_end", "type": "integer"}, {"default": "no", "description": "Return separate year rows", "enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"description": "Board-specific row threshold", "enum": ["q", "top", "1", "5", "10", "20", "30", "40", "50", "75", "100", "250", "500", "1000", "1500", "2000"], "in": "query", "name": "n", "type": "string"}, {"description": "MLB team id or split-team rows", "enum": ["split", "108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": true, "description": "Restrict to selected team's active player rows; requires a specific team id", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": "all", "description": "Basestealing pitcher hand", "enum": ["all", "L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"default": "All", "description": "Basestealing runner outcome", "enum": ["All", "Advance", "Out", "Hold"], "in": "query", "name": "runner_moved", "type": "string"}, {"default": "All", "description": "Basestealing target base", "enum": ["All", "2B", "3B"], "in": "query", "name": "target_base", "type": "string"}, {"default": "All", "description": "Basestealing prior pickoffs", "enum": ["All", "0", "1", "2", "3"], "in": "query", "name": "prior_pk", "type": "string"}, {"default": "All", "description": "Extra Bases Taken situation", "enum": ["All", "r10_to_2b_210", "r10_to_3b_210", "r11_to_3b_10", "r11_to_3b_2", "r11_to_hp_10", "r11_to_hp_2", "r12_to_hp_10", "r12_to_hp_2", "r13_to_hp_0", "r13_to_hp_1"], "in": "query", "name": "key_base_out", "type": "string"}, {"description": "Local sort field; accepted values depend on board", "enum": ["entity_name", "team_name", "start_year", "N_runner_moved", "N_runner_moved_SBX", "N_runner_moved_XB", "runner_runs_SB2", "runner_runs_SB3", "runner_runs_SBX", "runner_runs_XB", "runner_runs_XB_freeze", "runner_runs_XB_snipe", "runner_runs_XB_swipe", "runner_runs_tot", "simple_stolen_on_running_act_SB2", "simple_stolen_on_running_act_SB3", "bk", "catcher_name", "cs", "entity_id", "fb", "fielder_name", "game_date", "n_bk", "n_cs", "n_fb", "n_init", "n_minus", "n_pk", "n_plus", "n_sb", "net_act_minus", "net_act_plus", "pitcher_name", "pk", "r_primary_lead", "r_primary_lead_sbx", "r_sec_minus_prim_lead", "r_sec_minus_prim_lead_sbx", "r_secondary_lead", "r_secondary_lead_sbx", "r_sprint_speed_top50percent", "rate_sbx", "runner_moved_cd", "runner_name", "runs_stolen_on_running_act", "sb", "sba", "simple_stolen_on_running_act", "target_base", "runner_runs", "fielder_runs", "runner_runs_swipe", "runner_runs_snipe", "runner_runs_freeze", "fielder_runs_swipe", "fielder_runs_snipe", "fielder_runs_freeze", "n_opp_xb", "rate_att_xb", "est_rate_att_generic_runner", "est_rate_att_generic_fielder", "rate_att_xb_diff_runner", "rate_att_xb_diff_fielder", "n_safe", "rate_safe", "rate_safe_per_attempt"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"description": "Case-insensitive substring in the displayed player or team name", "in": "query", "name": "search", "type": "string"}, {"default": 100, "description": "Rows per page, 1-500", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-baserunning", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["baserunning-run-value", "basestealing-running-game", "baserunning"], "in": "query", "name": "board", "required": true, "type": "string"}, {"enum": ["Run", "Bat", "Batting Team", "Pitching Team", "Fld", "Pit", "League"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "integer"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "integer"}, {"enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"enum": ["q", "top", "1", "5", "10", "20", "30", "40", "50", "75", "100", "250", "500", "1000", "1500", "2000"], "in": "query", "name": "n", "type": "string"}, {"enum": ["split", "108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"enum": ["all", "L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["All", "Advance", "Out", "Hold"], "in": "query", "name": "runner_moved", "type": "string"}, {"enum": ["All", "2B", "3B"], "in": "query", "name": "target_base", "type": "string"}, {"enum": ["All", "0", "1", "2", "3"], "in": "query", "name": "prior_pk", "type": "string"}, {"enum": ["All", "r10_to_2b_210", "r10_to_3b_210", "r11_to_3b_10", "r11_to_3b_2", "r11_to_hp_10", "r11_to_hp_2", "r12_to_hp_10", "r12_to_hp_2", "r13_to_hp_0", "r13_to_hp_1"], "in": "query", "name": "key_base_out", "type": "string"}, {"enum": ["entity_name", "team_name", "start_year", "N_runner_moved", "N_runner_moved_SBX", "N_runner_moved_XB", "runner_runs_SB2", "runner_runs_SB3", "runner_runs_SBX", "runner_runs_XB", "runner_runs_XB_freeze", "runner_runs_XB_snipe", "runner_runs_XB_swipe", "runner_runs_tot", "simple_stolen_on_running_act_SB2", "simple_stolen_on_running_act_SB3", "bk", "catcher_name", "cs", "entity_id", "fb", "fielder_name", "game_date", "n_bk", "n_cs", "n_fb", "n_init", "n_minus", "n_pk", "n_plus", "n_sb", "net_act_minus", "net_act_plus", "pitcher_name", "pk", "r_primary_lead", "r_primary_lead_sbx", "r_sec_minus_prim_lead", "r_sec_minus_prim_lead_sbx", "r_secondary_lead", "r_secondary_lead_sbx", "r_sprint_speed_top50percent", "rate_sbx", "runner_moved_cd", "runner_name", "runs_stolen_on_running_act", "sb", "sba", "simple_stolen_on_running_act", "target_base", "runner_runs", "fielder_runs", "runner_runs_swipe", "runner_runs_snipe", "runner_runs_freeze", "fielder_runs_swipe", "fielder_runs_snipe", "fielder_runs_freeze", "n_opp_xb", "rate_att_xb", "est_rate_att_generic_runner", "est_rate_att_generic_fielder", "rate_att_xb_diff_runner", "rate_att_xb_diff_fielder", "n_safe", "rate_safe", "rate_safe_per_attempt"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "search", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-bat-tracking": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-bat-tracking", "method": "GET", "params": [{"default": "batter", "description": "Table row type", "enum": ["batter", "batting-team", "pitcher", "pitching-team", "league"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "First season", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "season_start", "description": "Last season; must be >= season_start", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum swing qualifier", "enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"default": "1", "description": "Minimum swings per grouped row", "enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_group_swings", "type": "string"}, {"description": "Optional date range start in YYYY-MM-DD", "in": "query", "name": "date_start", "type": "string"}, {"description": "Optional date range end in YYYY-MM-DD", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Contact type", "enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"description": "Hard-hit filter", "enum": ["1", "0"], "in": "query", "name": "is_hard_hit", "type": "string"}, {"description": "Attack zone", "enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"description": "Pitcher hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "multi", "description": "One or more MLB team ids", "in": "query", "items": {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "type": "string"}, "name": "teams", "type": "array"}, {"collectionFormat": "multi", "description": "One or more pitch types", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "description": "One or more ball-strike counts", "in": "query", "items": {"enum": ["00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "31", "32"], "type": "string"}, "name": "counts", "type": "array"}, {"collectionFormat": "multi", "description": "Up to four grouping columns", "in": "query", "items": {"enum": ["year", "api_game_date_month_text", "bat_contact_code", "api_pitch_type_group03", "game_type", "is_hit_into_play_hardhit", "is_best_speed", "pitch_hand", "bat_side", "is_pre_ball_count_3", "is_pre_strike_count_2"], "type": "string"}, "name": "group_by", "type": "array"}, {"default": "avg_sweetspot_speed_mph_qualified", "description": "Local row sort field", "enum": ["avg_batter_x_position", "avg_batter_y_position", "avg_intercept_x_vs_batter", "avg_intercept_y_vs_batter", "avg_foot_sep0", "avg_foot_angle0", "attack_direction_pullopp", "rate_ideal_attack_angle", "attack_angle", "avg_plane_vertical_angle", "avg_sweetspot_speed_mph", "avg_sweetspot_speed_mph_qualified", "avg_is_sweetspot_speed_high", "avg_is_sweetspot_speed_high_qualified", "squared_up", "squared_up_qualified", "squared_up_per_bat_contact", "squared_up_per_swing", "squared_up_with_speed", "squared_up_with_speed_qualified", "squared_up_with_speed_per_bat_contact", "squared_up_with_speed_per_swing", "swing_length_qualified", "swords", "swings_qualified", "percent_qualified", "hit_into_play_qualified", "bat_contact", "bat_contact_qualified", "count", "delta_run_exp", "hit_into_play_per_swing", "pitcher_delta_run_exp", "strikes_swinging_qualified", "sweetspot_speed_high_qualified", "strike_swinging_per_swing", "id", "name", "batter_name", "b_name_display_first_last", "savant_batter_id", "team_id", "team_name", "side", "n_sides", "n_teams", "bat_side_formatted"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-bat-tracking", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "batting-team", "pitcher", "pitching-team", "league"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_group_swings", "type": "string"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"enum": ["1", "0"], "in": "query", "name": "is_hard_hit", "type": "string"}, {"enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "multi", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "teams", "type": "array"}, {"collectionFormat": "multi", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "31", "32"], "in": "query", "name": "counts", "type": "array"}, {"collectionFormat": "multi", "enum": ["year", "api_game_date_month_text", "bat_contact_code", "api_pitch_type_group03", "game_type", "is_hit_into_play_hardhit", "is_best_speed", "pitch_hand", "bat_side", "is_pre_ball_count_3", "is_pre_strike_count_2"], "in": "query", "name": "group_by", "type": "array"}, {"enum": ["avg_batter_x_position", "avg_batter_y_position", "avg_intercept_x_vs_batter", "avg_intercept_y_vs_batter", "avg_foot_sep0", "avg_foot_angle0", "attack_direction_pullopp", "rate_ideal_attack_angle", "attack_angle", "avg_plane_vertical_angle", "avg_sweetspot_speed_mph", "avg_sweetspot_speed_mph_qualified", "avg_is_sweetspot_speed_high", "avg_is_sweetspot_speed_high_qualified", "squared_up", "squared_up_qualified", "squared_up_per_bat_contact", "squared_up_per_swing", "squared_up_with_speed", "squared_up_with_speed_qualified", "squared_up_with_speed_per_bat_contact", "squared_up_with_speed_per_swing", "swing_length_qualified", "swords", "swings_qualified", "percent_qualified", "hit_into_play_qualified", "bat_contact", "bat_contact_qualified", "count", "delta_run_exp", "hit_into_play_per_swing", "pitcher_delta_run_exp", "strikes_swinging_qualified", "sweetspot_speed_high_qualified", "strike_swinging_per_swing", "id", "name", "batter_name", "b_name_display_first_last", "savant_batter_id", "team_id", "team_name", "side", "n_sides", "n_teams", "bat_side_formatted"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-batted-ball": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-batted-ball", "method": "GET", "params": [{"default": "batter", "description": "Row type", "enum": ["batter", "batting-team", "pitcher", "pitching-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "description": "One or more seasons", "in": "query", "items": {"enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "type": "string"}, "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "description": "One or more game type codes", "in": "query", "items": {"enum": ["R", "A", "F", "D", "L", "W"], "type": "string"}, "name": "game_types", "type": "array"}, {"collectionFormat": "multi", "description": "One or more split dimensions", "in": "query", "items": {"enum": ["api_game_date_month_text", "game_type", "api_pitch_type_group03", "bat_side", "pitch_hand"], "type": "string"}, "name": "splits", "type": "array"}, {"default": "q", "description": "Minimum batted-ball events", "enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min", "type": "string"}, {"default": "1", "description": "Minimum rows per split group", "enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_split", "type": "string"}, {"default": "1", "description": "Split seasons into separate rows", "enum": ["1", "0"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "multi", "description": "One or more MLB team ids", "in": "query", "items": {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "type": "string"}, "name": "teams", "type": "array"}, {"description": "YYYY-MM-DD date range start (2015-04-05 through today)", "in": "query", "name": "date_start", "type": "string"}, {"description": "YYYY-MM-DD date range end (2015-04-05 through today)", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Pitcher throwing hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "multi", "description": "One or more pitch type codes", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"default": false, "description": "Include the first-party league-average reference row", "in": "query", "name": "include_league_average", "type": "boolean"}, {"default": "pull_air_rate", "description": "Local table sort field", "enum": ["name", "team_name", "num_bbe", "gb_rate", "air_rate", "fb_rate", "ld_rate", "pu_rate", "pull_rate", "straight_rate", "oppo_rate", "pull_gb_rate", "straight_gb_rate", "oppo_gb_rate", "pull_air_rate", "straight_air_rate", "oppo_air_rate"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-batted-ball", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "batting-team", "pitcher", "pitching-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "enum": ["R", "A", "F", "D", "L", "W"], "in": "query", "name": "game_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["api_game_date_month_text", "game_type", "api_pitch_type_group03", "bat_side", "pitch_hand"], "in": "query", "name": "splits", "type": "array"}, {"enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_split", "type": "string"}, {"enum": ["1", "0"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "multi", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "teams", "type": "array"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "multi", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"in": "query", "name": "include_league_average", "type": "boolean"}, {"enum": ["name", "team_name", "num_bbe", "gb_rate", "air_rate", "fb_rate", "ld_rate", "pu_rate", "pull_rate", "straight_rate", "oppo_rate", "pull_gb_rate", "straight_gb_rate", "oppo_gb_rate", "pull_air_rate", "straight_air_rate", "oppo_air_rate"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-birthday-index": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-birthday-index", "method": "GET", "params": [{"default": "batter", "description": "Upcoming table", "enum": ["batter", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"default": "1", "description": "Minimum games played on the birthday", "enum": ["1", "2", "3", "5", "8", "10"], "in": "query", "name": "min_games", "type": "string"}, {"description": "Optional birthday date in M-D form; accepted dates are bounded by the current live page season window", "in": "query", "name": "date", "type": "string", "x-example": "5-2"}, {"default": false, "description": "Include inactive and deceased players in upcoming rows", "in": "query", "name": "show_inactives", "type": "boolean"}, {"description": "Local sort column. Some values are type- or date-specific and invalid combinations are rejected.", "enum": ["player_name", "is_player_active", "birth_day_noyear_sort_hidden", "age", "daysUntil", "birthday_index", "birthday_games", "birthday_pa", "birthday_hits", "birthday_hit_1b", "birthday_hit_2b", "birthday_hit_3b", "birthday_hit_hr", "birthday_strikeout", "birthday_k_percent", "birthday_walk", "birthday_bb_percent", "birthday_BA", "non_birthday_BA", "birthday_BA_diff", "birthday_OPS", "non_birthday_OPS", "birthday_OPS_diff", "birthday_wOBA", "non_birthday_wOBA", "birthday_wOBA_diff"], "in": "query", "name": "sort", "type": "string"}, {"description": "Local sort direction; omitted values use the selected column's live first-party initial direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset (0-5000)", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-birthday-index", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"enum": ["1", "2", "3", "5", "8", "10"], "in": "query", "name": "min_games", "type": "string"}, {"in": "query", "name": "date", "type": "string"}, {"in": "query", "name": "show_inactives", "type": "boolean"}, {"enum": ["player_name", "is_player_active", "birth_day_noyear_sort_hidden", "age", "daysUntil", "birthday_index", "birthday_games", "birthday_pa", "birthday_hits", "birthday_hit_1b", "birthday_hit_2b", "birthday_hit_3b", "birthday_hit_hr", "birthday_strikeout", "birthday_k_percent", "birthday_walk", "birthday_bb_percent", "birthday_BA", "non_birthday_BA", "birthday_BA_diff", "birthday_OPS", "non_birthday_OPS", "birthday_OPS_diff", "birthday_wOBA", "non_birthday_wOBA", "birthday_wOBA_diff"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-blocking": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-blocking", "method": "GET", "params": [{"default": "Cat", "description": "Leaderboard group", "enum": ["Cat", "Pit", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum opportunities; applies to Cat and Pit", "enum": ["q", "1", "50", "100", "250", "500", "1000", "2000", "3000", "4000", "5000"], "in": "query", "name": "min", "type": "string"}, {"description": "First season, 2018 through current season", "in": "query", "maximum": 2026, "minimum": 2018, "name": "start_year", "type": "integer"}, {"description": "Last season, start_year through current season", "in": "query", "maximum": 2026, "minimum": 2018, "name": "end_year", "type": "integer"}, {"default": "no", "description": "Split rows by season", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "Optional team filter: split or an MLB team id from mlb_discovery", "in": "query", "name": "team", "type": "string"}, {"description": "For a specific Cat or Pit team, include only rows for that team; defaults true", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": "diff_runner_pbwp", "description": "Local sort field from mlb_discovery", "enum": ["entity_name", "team_name", "start_year", "N", "catcher_runs", "diff_runner_pbwp", "N_runner_pbwp", "x_runner_pbwp", "diff_rate_runner_pbwp", "freq_pbwp_1_easy", "freq_pbwp_2_medium", "freq_pbwp_3_tough", "diff_runner_pbwp_1_easy", "diff_runner_pbwp_2_medium", "diff_runner_pbwp_3_tough"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-blocking", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Cat", "Pit", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "1", "50", "100", "250", "500", "1000", "2000", "3000", "4000", "5000"], "in": "query", "name": "min", "type": "string"}, {"in": "query", "name": "start_year", "type": "integer"}, {"in": "query", "name": "end_year", "type": "integer"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"enum": ["entity_name", "team_name", "start_year", "N", "catcher_runs", "diff_runner_pbwp", "N_runner_pbwp", "x_runner_pbwp", "diff_rate_runner_pbwp", "freq_pbwp_1_easy", "freq_pbwp_2_medium", "freq_pbwp_3_tough", "diff_runner_pbwp_1_easy", "diff_runner_pbwp_2_medium", "diff_runner_pbwp_3_tough"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-blocking-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-blocking-details", "method": "GET", "params": [{"description": "Entity id from a Cat, Pit, or Pitching Team leaderboard row", "in": "query", "name": "entity_id", "required": true, "type": "string", "x-example": "682626"}, {"default": "Cat", "description": "Row group", "enum": ["Cat", "Pit", "Pitching Team"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"description": "First season, 2018 through current season", "in": "query", "maximum": 2026, "minimum": 2018, "name": "start_year", "type": "integer"}, {"description": "Last season, start_year through current season", "in": "query", "maximum": 2026, "minimum": 2018, "name": "end_year", "type": "integer"}, {"default": "no", "description": "Split details by season", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "Optional team id or split selector from mlb_discovery", "in": "query", "name": "team", "type": "string"}, {"description": "For a specific Cat or Pit team, include only rows for that team; defaults true", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 100000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-blocking-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "entity_id", "required": true, "type": "string"}, {"enum": ["Cat", "Pit", "Pitching Team"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"in": "query", "name": "start_year", "type": "integer"}, {"in": "query", "name": "end_year", "type": "integer"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-framing": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-framing", "method": "GET", "params": [{"default": "catcher", "description": "Table group", "enum": ["catcher", "catching-team", "batter", "batting-team", "pitcher", "league"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"description": "Optional single MLB team id", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": "q", "description": "Minimum pitches", "enum": ["q", "100", "250", "500", "750", "1000", "1250", "1500"], "in": "query", "name": "min_pitches", "type": "string"}, {"default": 1, "description": "Minimum results", "enum": [1, 25, 50, 100, 250, 500, 750, 1000, 1250, 1500], "in": "query", "name": "min_results", "type": "integer"}, {"description": "First season", "enum": [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_start", "type": "integer"}, {"description": "Last season", "enum": [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_end", "type": "integer"}, {"description": "Inclusive start date", "format": "date", "in": "query", "name": "date_start", "type": "string"}, {"description": "Inclusive end date", "format": "date", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Pitcher hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"description": "Single pitch type", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_type", "type": "string"}, {"description": "Pitch location relative to strike zone", "enum": ["in", "out"], "in": "query", "name": "ball_strike", "type": "string"}, {"default": "original", "description": "Framing model", "enum": ["original", "final"], "in": "query", "name": "call", "type": "string"}, {"default": "rv_tot", "description": "Local sort field", "enum": ["name", "team_name", "pitches", "pitches_shadow", "rv_tot", "pct_tot", "pitches_shadow_top", "rv_shadow_top", "pct_shadow_top", "pitches_shadow_bot", "rv_shadow_bot", "pct_shadow_bot", "pitches_11", "rv_11", "pct_11", "pitches_12", "rv_12", "pct_12", "pitches_13", "rv_13", "pct_13", "pitches_14", "rv_14", "pct_14", "pitches_16", "rv_16", "pct_16", "pitches_17", "rv_17", "pct_17", "pitches_18", "rv_18", "pct_18", "pitches_19", "rv_19", "pct_19", "pitches_heart", "rv_heart", "pct_heart", "pitches_chwa", "rv_chwa", "pct_chwa", "pitches_bin_minus10", "pitches_bin_minus9", "pitches_bin_minus8", "pitches_bin_minus7", "pitches_bin_minus6", "pitches_bin_minus5", "pitches_bin_minus4", "pitches_bin_minus3", "pitches_bin_minus2", "pitches_bin_minus1", "pitches_bin_0", "pitches_bin_1", "pitches_bin_2", "pitches_bin_3", "pitches_bin_4", "pitches_bin_5", "pitches_bin_6", "pitches_bin_7", "pitches_bin_8", "pitches_bin_9", "pct_bin_minus10", "pct_bin_minus9", "pct_bin_minus8", "pct_bin_minus7", "pct_bin_minus6", "pct_bin_minus5", "pct_bin_minus4", "pct_bin_minus3", "pct_bin_minus2", "pct_bin_minus1", "pct_bin_0", "pct_bin_1", "pct_bin_2", "pct_bin_3", "pct_bin_4", "pct_bin_5", "pct_bin_6", "pct_bin_7", "pct_bin_8", "pct_bin_9"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-framing", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["catcher", "catching-team", "batter", "batting-team", "pitcher", "league"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"enum": ["q", "100", "250", "500", "750", "1000", "1250", "1500"], "in": "query", "name": "min_pitches", "type": "string"}, {"enum": ["1", "25", "50", "100", "250", "500", "750", "1000", "1250", "1500"], "in": "query", "name": "min_results", "type": "integer"}, {"enum": ["2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "integer"}, {"enum": ["2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "integer"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_type", "type": "string"}, {"enum": ["in", "out"], "in": "query", "name": "ball_strike", "type": "string"}, {"enum": ["original", "final"], "in": "query", "name": "call", "type": "string"}, {"enum": ["name", "team_name", "pitches", "pitches_shadow", "rv_tot", "pct_tot", "pitches_shadow_top", "rv_shadow_top", "pct_shadow_top", "pitches_shadow_bot", "rv_shadow_bot", "pct_shadow_bot", "pitches_11", "rv_11", "pct_11", "pitches_12", "rv_12", "pct_12", "pitches_13", "rv_13", "pct_13", "pitches_14", "rv_14", "pct_14", "pitches_16", "rv_16", "pct_16", "pitches_17", "rv_17", "pct_17", "pitches_18", "rv_18", "pct_18", "pitches_19", "rv_19", "pct_19", "pitches_heart", "rv_heart", "pct_heart", "pitches_chwa", "rv_chwa", "pct_chwa", "pitches_bin_minus10", "pitches_bin_minus9", "pitches_bin_minus8", "pitches_bin_minus7", "pitches_bin_minus6", "pitches_bin_minus5", "pitches_bin_minus4", "pitches_bin_minus3", "pitches_bin_minus2", "pitches_bin_minus1", "pitches_bin_0", "pitches_bin_1", "pitches_bin_2", "pitches_bin_3", "pitches_bin_4", "pitches_bin_5", "pitches_bin_6", "pitches_bin_7", "pitches_bin_8", "pitches_bin_9", "pct_bin_minus10", "pct_bin_minus9", "pct_bin_minus8", "pct_bin_minus7", "pct_bin_minus6", "pct_bin_minus5", "pct_bin_minus4", "pct_bin_minus3", "pct_bin_minus2", "pct_bin_minus1", "pct_bin_0", "pct_bin_1", "pct_bin_2", "pct_bin_3", "pct_bin_4", "pct_bin_5", "pct_bin_6", "pct_bin_7", "pct_bin_8", "pct_bin_9"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-framing-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-framing-details", "method": "GET", "params": [{"description": "Entity id from a Catcher Framing leaderboard row", "in": "query", "name": "entity_id", "required": true, "type": "string", "x-example": "663886"}, {"default": "catcher", "description": "Table group; league details are unavailable", "enum": ["catcher", "catching-team", "batter", "batting-team", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"description": "Optional single MLB team id", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": "q", "description": "Minimum pitches", "enum": ["q", "100", "250", "500", "750", "1000", "1250", "1500"], "in": "query", "name": "min_pitches", "type": "string"}, {"default": 1, "description": "Minimum results", "enum": [1, 25, 50, 100, 250, 500, 750, 1000, 1250, 1500], "in": "query", "name": "min_results", "type": "integer"}, {"description": "First season", "enum": [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_start", "type": "integer"}, {"description": "Last season", "enum": [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_end", "type": "integer"}, {"description": "Inclusive start date", "format": "date", "in": "query", "name": "date_start", "type": "string"}, {"description": "Inclusive end date", "format": "date", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Pitcher hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"description": "Single pitch type", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_type", "type": "string"}, {"description": "Pitch location relative to strike zone", "enum": ["in", "out"], "in": "query", "name": "ball_strike", "type": "string"}, {"default": "original", "description": "Framing model", "enum": ["original", "final"], "in": "query", "name": "call", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 100000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-framing-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "entity_id", "required": true, "type": "string"}, {"enum": ["catcher", "catching-team", "batter", "batting-team", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"enum": ["q", "100", "250", "500", "750", "1000", "1250", "1500"], "in": "query", "name": "min_pitches", "type": "string"}, {"enum": ["1", "25", "50", "100", "250", "500", "750", "1000", "1250", "1500"], "in": "query", "name": "min_results", "type": "integer"}, {"enum": ["2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "integer"}, {"enum": ["2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "integer"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_type", "type": "string"}, {"enum": ["in", "out"], "in": "query", "name": "ball_strike", "type": "string"}, {"enum": ["original", "final"], "in": "query", "name": "call", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-pop-time": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-pop-time", "method": "GET", "params": [{"default": "2026", "description": "Season from 2015 through 2026", "enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"description": "MLB team id", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team_id", "type": "string"}, {"default": "5", "description": "Minimum attempts to second base", "enum": ["1", "5", "10", "15", "20"], "in": "query", "name": "min2b", "type": "string"}, {"default": "0", "description": "Minimum attempts to third base", "enum": ["0", "1", "5", "10", "15", "20"], "in": "query", "name": "min3b", "type": "string"}, {"default": "2b_all", "description": "Sort field from mlb_discovery", "enum": ["catcher", "team", "age", "arm", "exchange", "2b_attempts", "2b_all", "2b_caught_stealing", "2b_stolen_bases", "3b_attempts", "3b_all", "3b_caught_stealing", "3b_stolen_bases"], "in": "query", "name": "sort", "type": "string"}, {"default": "asc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows to return (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-pop-time", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team_id", "type": "string"}, {"enum": ["1", "5", "10", "15", "20"], "in": "query", "name": "min2b", "type": "string"}, {"enum": ["0", "1", "5", "10", "15", "20"], "in": "query", "name": "min3b", "type": "string"}, {"enum": ["catcher", "team", "age", "arm", "exchange", "2b_attempts", "2b_all", "2b_caught_stealing", "2b_stolen_bases", "3b_attempts", "3b_all", "3b_caught_stealing", "3b_stolen_bases"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-stance": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-stance", "method": "GET", "params": [{"default": "catcher", "description": "Table entity type", "enum": ["catcher", "catching-team", "batter", "batting-team", "pitcher", "league"], "in": "query", "name": "type", "type": "string"}, {"default": "2020", "description": "First season", "enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "2026", "description": "Last season; must be >= season_start", "enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum pitches", "enum": ["q", "100", "250", "500", "750", "1000", "2500", "5000", "7500", "10000", "15000", "20000"], "in": "query", "name": "min_pitches", "type": "string"}, {"default": "1", "description": "Minimum results", "enum": ["1", "25", "50", "100", "250", "500", "750", "1000", "2500", "5000", "7500", "10000", "15000", "20000"], "in": "query", "name": "min_results", "type": "string"}, {"description": "Start date YYYY-MM-DD", "in": "query", "name": "date_start", "type": "string"}, {"description": "End date YYYY-MM-DD", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side; omit for all", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Pitcher hand; omit for all", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"description": "Knee posture", "enum": ["9999", "4", "1", "2", "3"], "in": "query", "name": "knee_code", "type": "string"}, {"collectionFormat": "multi", "description": "One or more MLB team ids", "in": "query", "items": {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "type": "string"}, "name": "teams", "type": "array"}, {"collectionFormat": "multi", "description": "One or more pitch types", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "description": "Up to four grouping dimensions; none disables grouping", "in": "query", "items": {"enum": ["none", "year", "api_game_date_month_text", "game_type", "knee_code_overview", "pitch_hand", "bat_side", "api_pitch_type_group03", "knee_code"], "type": "string"}, "name": "group_by", "type": "array"}, {"default": "pct_one_down", "description": "Local row sort field", "enum": ["name", "id", "team_id", "team_name", "year", "pitches", "skeletal_pitches", "n_both_down", "n_both_up", "n_inside_down", "n_l_down", "n_leg_extended", "n_one_down", "n_outside_down", "n_r_down", "n_teams", "pct_both_down", "pct_both_up", "pct_inside_down", "pct_l_down", "pct_leg_extended", "pct_one_down", "pct_outside_down", "pct_r_down", "one_knee_blocking", "one_knee_blocking_162", "one_knee_csaa", "one_knee_csp", "one_knee_framing", "one_knee_framing_162", "one_knee_pbwp", "one_knee_pitching", "one_knee_pitching_162", "one_knee_ron_num", "one_knee_ron_pbwp", "one_knee_sba_csaa", "one_knee_sba_num", "one_knee_shadow_cs", "one_knee_shadow_num", "one_knee_throwing", "one_knee_throwing_162", "other_blocking", "other_blocking_162", "other_csaa", "other_csp", "other_framing", "other_framing_162", "other_pbwp", "other_pitching", "other_pitching_162", "other_ron_num", "other_ron_pbwp", "other_sba_csaa", "other_sba_num", "other_shadow_cs", "other_shadow_num", "other_throwing", "other_throwing_162", "total_blocking", "total_framing", "total_frv", "total_throwing", "total_untracked"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-stance", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["catcher", "catching-team", "batter", "batting-team", "pitcher", "league"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Any", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "100", "250", "500", "750", "1000", "2500", "5000", "7500", "10000", "15000", "20000"], "in": "query", "name": "min_pitches", "type": "string"}, {"enum": ["1", "25", "50", "100", "250", "500", "750", "1000", "2500", "5000", "7500", "10000", "15000", "20000"], "in": "query", "name": "min_results", "type": "string"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["9999", "4", "1", "2", "3"], "in": "query", "name": "knee_code", "type": "string"}, {"collectionFormat": "multi", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "teams", "type": "array"}, {"collectionFormat": "multi", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["none", "year", "api_game_date_month_text", "game_type", "knee_code_overview", "pitch_hand", "bat_side", "api_pitch_type_group03", "knee_code"], "in": "query", "name": "group_by", "type": "array"}, {"enum": ["name", "id", "team_id", "team_name", "year", "pitches", "skeletal_pitches", "n_both_down", "n_both_up", "n_inside_down", "n_l_down", "n_leg_extended", "n_one_down", "n_outside_down", "n_r_down", "n_teams", "pct_both_down", "pct_both_up", "pct_inside_down", "pct_l_down", "pct_leg_extended", "pct_one_down", "pct_outside_down", "pct_r_down", "one_knee_blocking", "one_knee_blocking_162", "one_knee_csaa", "one_knee_csp", "one_knee_framing", "one_knee_framing_162", "one_knee_pbwp", "one_knee_pitching", "one_knee_pitching_162", "one_knee_ron_num", "one_knee_ron_pbwp", "one_knee_sba_csaa", "one_knee_sba_num", "one_knee_shadow_cs", "one_knee_shadow_num", "one_knee_throwing", "one_knee_throwing_162", "other_blocking", "other_blocking_162", "other_csaa", "other_csp", "other_framing", "other_framing_162", "other_pbwp", "other_pitching", "other_pitching_162", "other_ron_num", "other_ron_pbwp", "other_sba_csaa", "other_sba_num", "other_shadow_cs", "other_shadow_num", "other_throwing", "other_throwing_162", "total_blocking", "total_framing", "total_frv", "total_throwing", "total_untracked"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-throwing": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-throwing", "method": "GET", "params": [{"default": "Cat", "description": "Table group", "enum": ["Cat", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "First season", "enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "2026", "description": "Last season; must be >= season_start", "enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum steal attempts", "enum": ["q", "1", "5", "10", "20", "30", "40", "50", "75", "100"], "in": "query", "name": "minimum", "type": "string"}, {"default": "All", "description": "Throw target", "enum": ["2B", "3B", "All"], "in": "query", "name": "target_base", "type": "string"}, {"default": "no", "description": "Split results by season", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "Empty for all teams, split for team stints, or an MLB team id", "enum": ["split", "108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": true, "description": "For a selected team, include only catchers on that team", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": "n_cs_aa", "description": "Local sort field", "enum": ["entity_name", "start_year", "n", "cs_raa", "n_cs_aa", "n_cs", "rate_cs", "n_xcs", "rate_xcs", "rate_cs_aa", "seasonal_sprint_speed", "distance_to_target", "pop_time", "exchange_time", "arm_strength", "n_xcs_with_flight_over_xcs", "n_xcs_with_exchange_over_xcs", "n_xcs_with_accuracy_over_xcs", "n_xcs_with_ground_other_over_xcs", "n_xcs_with_onfly_other_over_xcs", "n_xcs_with_untracked_other_over_xcs"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-throwing", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Cat", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "1", "5", "10", "20", "30", "40", "50", "75", "100"], "in": "query", "name": "minimum", "type": "string"}, {"enum": ["2B", "3B", "All"], "in": "query", "name": "target_base", "type": "string"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"enum": ["split", "108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"enum": ["entity_name", "start_year", "n", "cs_raa", "n_cs_aa", "n_cs", "rate_cs", "n_xcs", "rate_xcs", "rate_cs_aa", "seasonal_sprint_speed", "distance_to_target", "pop_time", "exchange_time", "arm_strength", "n_xcs_with_flight_over_xcs", "n_xcs_with_exchange_over_xcs", "n_xcs_with_accuracy_over_xcs", "n_xcs_with_ground_other_over_xcs", "n_xcs_with_onfly_other_over_xcs", "n_xcs_with_untracked_other_over_xcs"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-catcher-throwing-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-catcher-throwing-details", "method": "GET", "params": [{"description": "Positive catcher id from a Cat row", "in": "query", "name": "entity_id", "required": true, "type": "integer", "x-example": 521692}, {"default": 2026, "description": "Season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "year", "type": "integer"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum steal attempts", "enum": ["q", "1", "5", "10", "20", "30", "40", "50", "75", "100"], "in": "query", "name": "minimum", "type": "string"}, {"default": "All", "description": "Throw target", "enum": ["2B", "3B", "All"], "in": "query", "name": "target_base", "type": "string"}, {"default": "no", "description": "Split rows by season", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "Empty, split, or team id from the corresponding leaderboard row", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": true, "description": "Team roster membership filter", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 100000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-catcher-throwing-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "entity_id", "required": true, "type": "integer"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "integer"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "1", "5", "10", "20", "30", "40", "50", "75", "100"], "in": "query", "name": "minimum", "type": "string"}, {"enum": ["2B", "3B", "All"], "in": "query", "name": "target_base", "type": "string"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-expected": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-expected", "method": "GET", "params": [{"default": "batter", "description": "Leaderboard view", "enum": ["batter", "pitcher", "batter-team", "pitcher-team"], "in": "query", "name": "type", "type": "string"}, {"description": "Season from 2015 through the current season", "in": "query", "name": "year", "type": "integer"}, {"description": "Optional MLB team id from mlb_teams", "in": "query", "name": "team_id", "type": "string"}, {"description": "Batter position; only supported for type=batter", "enum": ["C", "1B", "2B", "SS", "3B", "LF", "CF", "RF", "DH"], "in": "query", "name": "position", "type": "string"}, {"default": "bip", "description": "Minimum qualifier type", "enum": ["bip", "pa"], "in": "query", "name": "filter_type", "type": "string"}, {"default": "q", "description": "Minimum BIP/PA threshold", "enum": ["q", "1", "25", "50", "100", "150", "200", "250", "350", "450", "500", "600"], "in": "query", "name": "minimum", "type": "string"}, {"default": "est_woba", "description": "Sort field", "enum": ["entity_name", "entity_team_name", "pa", "bip", "ba", "est_ba", "ba_minus_est_ba_diff", "slg", "est_slg", "slg_minus_est_slg_diff", "woba", "est_woba", "woba_minus_est_woba_diff", "wobacon", "est_wobacon", "wobacon_minus_est_wobacon_diff", "exit_velocity_avg", "hard_hit_percent", "barrels_per_bip", "barrels_per_pa"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-expected", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "pitcher", "batter-team", "pitcher-team"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "year", "type": "integer"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["C", "1B", "2B", "SS", "3B", "LF", "CF", "RF", "DH"], "in": "query", "name": "position", "type": "string"}, {"enum": ["bip", "pa"], "in": "query", "name": "filter_type", "type": "string"}, {"enum": ["q", "1", "25", "50", "100", "150", "200", "250", "350", "450", "500", "600"], "in": "query", "name": "minimum", "type": "string"}, {"enum": ["entity_name", "entity_team_name", "pa", "bip", "ba", "est_ba", "ba_minus_est_ba_diff", "slg", "est_slg", "slg_minus_est_slg_diff", "woba", "est_woba", "woba_minus_est_woba_diff", "wobacon", "est_wobacon", "wobacon_minus_est_wobacon_diff", "exit_velocity_avg", "hard_hit_percent", "barrels_per_bip", "barrels_per_pa"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-fielding-run-value": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-fielding-run-value", "method": "GET", "params": [{"default": "fielder", "description": "Table type", "enum": ["fielder", "fielding-team", "batter", "batting-team", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "First season", "enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "season_start", "description": "Last season; must be >= season_start", "enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Any", "Regular", "Playoff"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Total minimum; 0.1 only for fielder and fielding-team", "enum": ["q", "0.1", "1", "10", "25", "50", "100", "200", "500", "750", "1000", "2500", "5000"], "in": "query", "name": "minimum", "type": "string"}, {"default": "1", "description": "Minimum within each split; 0.1 only for fielder and fielding-team", "enum": ["0.1", "1", "10", "25", "50", "100", "200", "500", "750", "1000", "2500", "5000"], "in": "query", "name": "minimum_split", "type": "string"}, {"default": "0", "description": "Position / position group", "enum": ["0", "11", "12", "111", "112", "121", "13", "2", "3", "4", "5", "6", "7", "8", "9"], "in": "query", "name": "position", "type": "string"}, {"collectionFormat": "multi", "description": "Repeated MLB team ids", "in": "query", "items": {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "type": "string"}, "name": "team_id", "type": "array"}, {"collectionFormat": "multi", "description": "Repeated split dimensions", "in": "query", "items": {"enum": ["year", "api_game_date_month_text", "position", "game_type"], "type": "string"}, "name": "group_by", "type": "array"}, {"description": "Start date, YYYY-MM-DD, from 2018-03-29 through today", "in": "query", "name": "date_start", "type": "string"}, {"description": "End date, YYYY-MM-DD, from 2018-03-29 through today", "in": "query", "name": "date_end", "type": "string"}, {"default": "total_runs", "description": "Local sort field", "enum": ["name", "team_name", "total_runs", "inf_of_runs", "range_runs", "arm_runs", "dp_runs", "fielding_runs_prevented_on_rec1b", "catching_runs", "framing_runs", "throwing_runs", "blocking_runs", "outs_total", "outs_2", "outs_3", "outs_4", "outs_5", "outs_6", "outs_7", "outs_8", "outs_9", "tot_pa", "year", "api_game_date_month_mm", "api_game_date_month_text", "pos_id", "game_type"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset (0-5000)", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-fielding-run-value", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["fielder", "fielding-team", "batter", "batting-team", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Any", "Regular", "Playoff"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "0.1", "1", "10", "25", "50", "100", "200", "500", "750", "1000", "2500", "5000"], "in": "query", "name": "minimum", "type": "string"}, {"enum": ["0.1", "1", "10", "25", "50", "100", "200", "500", "750", "1000", "2500", "5000"], "in": "query", "name": "minimum_split", "type": "string"}, {"enum": ["0", "11", "12", "111", "112", "121", "13", "2", "3", "4", "5", "6", "7", "8", "9"], "in": "query", "name": "position", "type": "string"}, {"collectionFormat": "multi", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team_id", "type": "array"}, {"collectionFormat": "multi", "enum": ["year", "api_game_date_month_text", "position", "game_type"], "in": "query", "name": "group_by", "type": "array"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["name", "team_name", "total_runs", "inf_of_runs", "range_runs", "arm_runs", "dp_runs", "fielding_runs_prevented_on_rec1b", "catching_runs", "framing_runs", "throwing_runs", "blocking_runs", "outs_total", "outs_2", "outs_3", "outs_4", "outs_5", "outs_6", "outs_7", "outs_8", "outs_9", "tot_pa", "year", "api_game_date_month_mm", "api_game_date_month_text", "pos_id", "game_type"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-first-base-receiving": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-first-base-receiving", "method": "GET", "params": [{"default": "fielder_3", "description": "Leaderboard group", "enum": ["fielder_3", "throw_fielder_id", "pitching-team", "batting-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "description": "Season values", "in": "query", "items": {"enum": ["2021", "2022", "2023", "2024", "2025", "2026"], "type": "string"}, "name": "season[]", "type": "array"}, {"collectionFormat": "multi", "description": "Game types", "in": "query", "items": {"enum": ["R", "F", "D", "L", "W"], "type": "string"}, "name": "gameType[]", "type": "array"}, {"default": "q", "description": "Minimum opportunities", "enum": ["q", "1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "min", "type": "string"}, {"default": "1", "description": "Minimum opportunities within each group", "enum": ["1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "minSplit", "type": "string"}, {"default": "1", "description": "Year split selector", "enum": ["0", "1"], "in": "query", "name": "splitYear", "type": "string"}, {"collectionFormat": "multi", "description": "Group dimensions", "in": "query", "items": {"enum": ["throw_height_code", "throw_location_code_full", "runners_on_cd"], "type": "string"}, "name": "split[]", "type": "array"}, {"collectionFormat": "multi", "description": "MLB team ids", "in": "query", "items": {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "type": "string"}, "name": "team[]", "type": "array"}, {"description": "Inclusive start date (YYYY-MM-DD)", "in": "query", "name": "dateStart", "type": "string"}, {"description": "Inclusive end date (YYYY-MM-DD)", "in": "query", "name": "dateEnd", "type": "string"}, {"description": "First baseman batting hand", "enum": ["L", "R"], "in": "query", "name": "fielder_3_hand", "type": "string"}, {"description": "Minimum fielder height, inches", "enum": ["70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80"], "in": "query", "name": "min_height_in_inches", "type": "string"}, {"description": "Field-out flag", "enum": ["0", "1"], "in": "query", "name": "is_hit_into_play_field_out", "type": "string"}, {"collectionFormat": "multi", "description": "Base occupancy codes", "in": "query", "items": {"enum": ["0", "1", "2", "3", "4", "5", "6", "7"], "type": "string"}, "name": "runners_on_cd[]", "type": "array"}, {"collectionFormat": "multi", "description": "Throwing position ids", "in": "query", "items": {"enum": ["4", "5", "6"], "type": "string"}, "name": "throw_pos_id[]", "type": "array"}, {"collectionFormat": "multi", "description": "Throw heights", "in": "query", "items": {"enum": ["1_Low", "2_Mid", "3_High"], "type": "string"}, "name": "throw_height_code[]", "type": "array"}, {"collectionFormat": "multi", "description": "Throw outcomes", "in": "query", "items": {"enum": ["A. On Target", "B. Scoop", "C. Bounce", "D. Low", "E. Wide", "F. High"], "type": "string"}, "name": "throw_location_code_full[]", "type": "array"}, {"collectionFormat": "multi", "description": "Time bins", "in": "query", "items": {"enum": ["-1", "0", "1", "2", "3", "4", "5"], "type": "string"}, "name": "bin_time_X10[]", "type": "array"}, {"default": "total_oaa", "description": "Local sort field", "enum": ["entity_name", "total_oaa", "oaa_on_target", "oaa_bounce", "oaa_scoop", "oaa_low", "oaa_high", "oaa_wide", "n_on_target", "n_bounce", "n_scoop", "n_low", "n_high", "n_wide", "outs_on_target", "outs_bounce", "outs_scoop", "outs_low", "outs_high", "outs_wide", "n_outs", "n_plays", "avg_expected_rate_out"], "in": "query", "name": "sortColumn", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sortDirection", "type": "string"}, {"default": 100, "description": "Rows per page, 1-500", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-first-base-receiving", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["fielder_3", "throw_fielder_id", "pitching-team", "batting-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "enum": ["2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["R", "F", "D", "L", "W"], "in": "query", "name": "gameType[]", "type": "array"}, {"enum": ["q", "1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "min", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "minSplit", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "splitYear", "type": "string"}, {"collectionFormat": "multi", "enum": ["throw_height_code", "throw_location_code_full", "runners_on_cd"], "in": "query", "name": "split[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team[]", "type": "array"}, {"in": "query", "name": "dateStart", "type": "string"}, {"in": "query", "name": "dateEnd", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "fielder_3_hand", "type": "string"}, {"enum": ["70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80"], "in": "query", "name": "min_height_in_inches", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "is_hit_into_play_field_out", "type": "string"}, {"collectionFormat": "multi", "enum": ["0", "1", "2", "3", "4", "5", "6", "7"], "in": "query", "name": "runners_on_cd[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["4", "5", "6"], "in": "query", "name": "throw_pos_id[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["1_Low", "2_Mid", "3_High"], "in": "query", "name": "throw_height_code[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["A. On Target", "B. Scoop", "C. Bounce", "D. Low", "E. Wide", "F. High"], "in": "query", "name": "throw_location_code_full[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["-1", "0", "1", "2", "3", "4", "5"], "in": "query", "name": "bin_time_X10[]", "type": "array"}, {"enum": ["entity_name", "total_oaa", "oaa_on_target", "oaa_bounce", "oaa_scoop", "oaa_low", "oaa_high", "oaa_wide", "n_on_target", "n_bounce", "n_scoop", "n_low", "n_high", "n_wide", "outs_on_target", "outs_bounce", "outs_scoop", "outs_low", "outs_high", "outs_wide", "n_outs", "n_plays", "avg_expected_rate_out"], "in": "query", "name": "sortColumn", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sortDirection", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-first-base-receiving-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-first-base-receiving-details", "method": "GET", "params": [{"description": "Positive MLB player id", "in": "query", "name": "player_id", "required": true, "type": "integer", "x-example": 683737}, {"default": "fielder_3", "description": "Leaderboard group", "enum": ["fielder_3", "throw_fielder_id", "pitching-team", "batting-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "description": "Season values", "in": "query", "items": {"enum": ["2021", "2022", "2023", "2024", "2025", "2026"], "type": "string"}, "name": "season[]", "type": "array"}, {"collectionFormat": "multi", "description": "Game types", "in": "query", "items": {"enum": ["R", "F", "D", "L", "W"], "type": "string"}, "name": "gameType[]", "type": "array"}, {"default": "q", "description": "Minimum opportunities", "enum": ["q", "1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "min", "type": "string"}, {"default": "1", "description": "Grouped opportunity threshold", "enum": ["1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "minSplit", "type": "string"}, {"collectionFormat": "multi", "description": "Group dimensions", "in": "query", "items": {"enum": ["throw_height_code", "throw_location_code_full", "runners_on_cd"], "type": "string"}, "name": "split[]", "type": "array"}, {"default": "1", "description": "Year split selector", "enum": ["0", "1"], "in": "query", "name": "splitYear", "type": "string"}, {"collectionFormat": "multi", "description": "MLB team ids", "in": "query", "items": {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "type": "string"}, "name": "team[]", "type": "array"}, {"description": "Inclusive start date (YYYY-MM-DD)", "in": "query", "name": "dateStart", "type": "string"}, {"description": "Inclusive end date (YYYY-MM-DD)", "in": "query", "name": "dateEnd", "type": "string"}, {"description": "First baseman batting hand", "enum": ["L", "R"], "in": "query", "name": "fielder_3_hand", "type": "string"}, {"description": "Minimum fielder height", "enum": ["70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80"], "in": "query", "name": "min_height_in_inches", "type": "string"}, {"description": "Field-out flag", "enum": ["0", "1"], "in": "query", "name": "is_hit_into_play_field_out", "type": "string"}, {"collectionFormat": "multi", "description": "Base occupancy codes", "in": "query", "items": {"enum": ["0", "1", "2", "3", "4", "5", "6", "7"], "type": "string"}, "name": "runners_on_cd[]", "type": "array"}, {"collectionFormat": "multi", "description": "Throwing position ids", "in": "query", "items": {"enum": ["4", "5", "6"], "type": "string"}, "name": "throw_pos_id[]", "type": "array"}, {"collectionFormat": "multi", "description": "Throw heights", "in": "query", "items": {"enum": ["1_Low", "2_Mid", "3_High"], "type": "string"}, "name": "throw_height_code[]", "type": "array"}, {"collectionFormat": "multi", "description": "Throw outcomes", "in": "query", "items": {"enum": ["A. On Target", "B. Scoop", "C. Bounce", "D. Low", "E. Wide", "F. High"], "type": "string"}, "name": "throw_location_code_full[]", "type": "array"}, {"collectionFormat": "multi", "description": "Time bins", "in": "query", "items": {"enum": ["-1", "0", "1", "2", "3", "4", "5"], "type": "string"}, "name": "bin_time_X10[]", "type": "array"}, {"default": 100, "description": "Rows per page, 1-500", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 100000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-first-base-receiving-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "player_id", "required": true, "type": "integer"}, {"enum": ["fielder_3", "throw_fielder_id", "pitching-team", "batting-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "enum": ["2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["R", "F", "D", "L", "W"], "in": "query", "name": "gameType[]", "type": "array"}, {"enum": ["q", "1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "min", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "75", "100", "200", "300", "400", "500", "750", "1000"], "in": "query", "name": "minSplit", "type": "string"}, {"collectionFormat": "multi", "enum": ["throw_height_code", "throw_location_code_full", "runners_on_cd"], "in": "query", "name": "split[]", "type": "array"}, {"enum": ["0", "1"], "in": "query", "name": "splitYear", "type": "string"}, {"collectionFormat": "multi", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "111", "113", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team[]", "type": "array"}, {"in": "query", "name": "dateStart", "type": "string"}, {"in": "query", "name": "dateEnd", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "fielder_3_hand", "type": "string"}, {"enum": ["70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80"], "in": "query", "name": "min_height_in_inches", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "is_hit_into_play_field_out", "type": "string"}, {"collectionFormat": "multi", "enum": ["0", "1", "2", "3", "4", "5", "6", "7"], "in": "query", "name": "runners_on_cd[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["4", "5", "6"], "in": "query", "name": "throw_pos_id[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["1_Low", "2_Mid", "3_High"], "in": "query", "name": "throw_height_code[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["A. On Target", "B. Scoop", "C. Bounce", "D. Low", "E. Wide", "F. High"], "in": "query", "name": "throw_location_code_full[]", "type": "array"}, {"collectionFormat": "multi", "enum": ["-1", "0", "1", "2", "3", "4", "5"], "in": "query", "name": "bin_time_X10[]", "type": "array"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-home-runs": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-home-runs", "method": "GET", "params": [{"default": "Batter", "description": "Table type", "enum": ["Batter", "Pitcher"], "in": "query", "name": "player_type", "type": "string"}, {"default": "2026", "description": "Season", "enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"description": "MLB team id; blank selects all teams", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team", "type": "string"}, {"default": "0", "description": "Minimum home run total", "enum": ["0", "5", "10", "15", "20", "25"], "in": "query", "name": "min", "type": "string"}, {"default": "adj_xhr", "description": "Trajectory mode", "enum": ["adj_xhr", "xhr"], "in": "query", "name": "cat", "type": "string"}, {"default": "xhr", "description": "Local sort column", "enum": ["player", "team", "year", "cat", "avg_hr_trot", "doubters", "mostly_gone", "no_doubters", "no_doubter_per", "hr_total", "xhr", "xhr_diff"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-home-runs", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Batter", "Pitcher"], "in": "query", "name": "player_type", "type": "string"}, {"enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team", "type": "string"}, {"enum": ["0", "5", "10", "15", "20", "25"], "in": "query", "name": "min", "type": "string"}, {"enum": ["adj_xhr", "xhr"], "in": "query", "name": "cat", "type": "string"}, {"enum": ["player", "team", "year", "cat", "avg_hr_trot", "doubters", "mostly_gone", "no_doubters", "no_doubter_per", "hr_total", "xhr", "xhr_diff"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-home-runs-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-home-runs-details", "method": "GET", "params": [{"description": "Positive MLB player id from mlb-statcast-home-runs", "in": "query", "name": "player_id", "required": true, "type": "string", "x-example": "691718"}, {"default": "Batter", "description": "Table type", "enum": ["Batter", "Pitcher"], "in": "query", "name": "player_type", "type": "string"}, {"default": "2026", "description": "Season", "enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"default": "adj_xhr", "description": "Trajectory mode", "enum": ["adj_xhr", "xhr"], "in": "query", "name": "cat", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-home-runs-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "player_id", "required": true, "type": "string"}, {"enum": ["Batter", "Pitcher"], "in": "query", "name": "player_type", "type": "string"}, {"enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"enum": ["adj_xhr", "xhr"], "in": "query", "name": "cat", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-oaa": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-oaa", "method": "GET", "params": [{"default": "Fielder", "description": "Leaderboard view", "enum": ["Fielder", "Fielding_Team", "Batter", "Batting_Team", "Pitcher"], "in": "query", "name": "type", "type": "string"}, {"description": "Start season from 2016 through the current season", "in": "query", "name": "start_year", "type": "integer"}, {"description": "End season from 2016 through the current season", "in": "query", "name": "end_year", "type": "integer"}, {"default": "no", "description": "Return one row per season in a year range", "enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"description": "Optional MLB team id from mlb_teams", "in": "query", "name": "team_id", "type": "string"}, {"default": "year", "description": "Time range", "enum": ["year", "4", "5", "6", "7", "8", "9"], "in": "query", "name": "range", "type": "string"}, {"default": "q", "description": "Minimum attempts", "enum": ["q", "10", "25", "50", "75", "100", "150", "200", "250"], "in": "query", "name": "minimum", "type": "string"}, {"description": "Position filter", "enum": ["if", "of", "3", "4", "5", "6", "7", "8", "9"], "in": "query", "name": "position", "type": "string"}, {"description": "Comma-separated detailed fielder role ids. Values: 32,30,31,77,71,70,72,78,43,42,40,41,46,87,81,82,89,64,62,60,61,98,91,90,92,99,51,50,52", "in": "query", "name": "roles", "type": "string"}, {"default": "outs_above_average", "description": "Sort field", "enum": ["entity_name", "display_team_name", "primary_pos_formatted", "fielding_runs_prevented", "outs_above_average", "outs_above_average_infront", "outs_above_average_lateral", "outs_above_average_behind", "actual_success_rate", "adj_estimated_success_rate", "diff_success_rate", "n"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-oaa", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Fielder", "Fielding_Team", "Batter", "Batting_Team", "Pitcher"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "start_year", "type": "integer"}, {"in": "query", "name": "end_year", "type": "integer"}, {"enum": ["no", "yes"], "in": "query", "name": "split", "type": "string"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["year", "4", "5", "6", "7", "8", "9"], "in": "query", "name": "range", "type": "string"}, {"enum": ["q", "10", "25", "50", "75", "100", "150", "200", "250"], "in": "query", "name": "minimum", "type": "string"}, {"enum": ["if", "of", "3", "4", "5", "6", "7", "8", "9"], "in": "query", "name": "position", "type": "string"}, {"in": "query", "name": "roles", "type": "string"}, {"enum": ["entity_name", "display_team_name", "primary_pos_formatted", "fielding_runs_prevented", "outs_above_average", "outs_above_average_infront", "outs_above_average_lateral", "outs_above_average_behind", "actual_success_rate", "adj_estimated_success_rate", "diff_success_rate", "n"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-park-factors": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-park-factors", "method": "GET", "params": [{"default": "year", "description": "Park Factors table mode", "enum": ["year", "venue", "distance", "distance-all", "raw", "dimensions"], "in": "query", "name": "type", "type": "string"}, {"description": "Mode-specific season; see endpoint markdown and mlb_discovery for exact values", "in": "query", "name": "year", "type": "string"}, {"description": "Optional batter side for year, venue, or raw mode", "enum": ["R", "L"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Park condition for year and venue modes", "enum": ["All", "Day", "Night", "Roof Closed", "Open Air"], "in": "query", "name": "condition", "type": "string"}, {"default": "3", "description": "Rolling year count for year and venue modes", "enum": ["1", "2", "3"], "in": "query", "name": "rolling", "type": "string"}, {"description": "Venue mode metric", "enum": ["index_wOBA", "index_wOBAcon", "index_xwOBAcon", "index_BACON", "index_xBAcon", "index_hardhit", "index_runs", "index_OBP", "index_Hits", "index_1B", "index_2B", "index_3B", "index_HR", "index_BB", "index_SO"], "in": "query", "name": "stat", "type": "string"}, {"description": "Park population selector", "enum": ["mlb", "all"], "in": "query", "name": "parks", "type": "string"}, {"description": "Local row field present in the selected mode's data", "in": "query", "name": "sort", "type": "string"}, {"description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-park-factors", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["year", "venue", "distance", "distance-all", "raw", "dimensions"], "in": "query", "name": "type", "type": "string"}, {"in": "query", "name": "year", "type": "string"}, {"enum": ["R", "L"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["All", "Day", "Night", "Roof Closed", "Open Air"], "in": "query", "name": "condition", "type": "string"}, {"enum": ["1", "2", "3"], "in": "query", "name": "rolling", "type": "string"}, {"enum": ["index_wOBA", "index_wOBAcon", "index_xwOBAcon", "index_BACON", "index_xBAcon", "index_hardhit", "index_runs", "index_OBP", "index_Hits", "index_1B", "index_2B", "index_3B", "index_HR", "index_BB", "index_SO"], "in": "query", "name": "stat", "type": "string"}, {"enum": ["mlb", "all"], "in": "query", "name": "parks", "type": "string"}, {"in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-percentile": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-percentile", "method": "GET", "params": [{"default": "batter", "description": "Table type", "enum": ["batter", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "Season", "enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"description": "MLB team id; blank selects all teams", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team", "type": "string"}, {"collectionFormat": "multi", "description": "Repeated field-comparator-value filter from the type-specific field set in mlb_discovery; value range 0-100", "in": "query", "items": {"type": "string"}, "name": "pctl", "type": "array"}, {"description": "Local sort field from the type-specific set in mlb_discovery", "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-percentile", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "pitcher"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team", "type": "string"}, {"collectionFormat": "multi", "in": "query", "name": "pctl", "type": "array"}, {"in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-arsenal": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-arsenal", "method": "GET", "params": [{"default": "pitcher", "description": "Row type", "enum": ["pitcher", "batter"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "Season", "enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"description": "MLB team id from mlb_teams", "in": "query", "name": "team_id", "type": "string"}, {"description": "Pitch code; blank means all pitch types", "enum": ["FF", "CH", "CU", "FC", "KN", "SC", "SI", "SL", "SV", "FS", "ST", "CUKC", "SIFT"], "in": "query", "name": "pitch_type", "type": "string"}, {"default": "1", "description": "Minimum plate appearances", "enum": ["1", "10", "25", "50", "100", "150", "200", "250", "350", "450", "500", "600"], "in": "query", "name": "min_pa", "type": "string"}, {"default": "q", "description": "Minimum pitches; q means qualified", "enum": ["q", "1", "10", "50", "100", "200", "300", "500", "750"], "in": "query", "name": "min_pitches", "type": "string"}, {"default": "run_value_per_100", "description": "Local sort field", "enum": ["player_name", "team_name_alt", "pitch_name", "run_value_per_100", "run_value", "pitches", "pitch_usage", "pa", "ba", "slg", "woba", "whiff_percent", "k_percent", "put_away", "est_ba", "est_slg", "est_woba", "hard_hit_percent"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-pitch-arsenal", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["pitcher", "batter"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"in": "query", "name": "team_id", "type": "string"}, {"enum": ["FF", "CH", "CU", "FC", "KN", "SC", "SI", "SL", "SV", "FS", "ST", "CUKC", "SIFT"], "in": "query", "name": "pitch_type", "type": "string"}, {"enum": ["1", "10", "25", "50", "100", "150", "200", "250", "350", "450", "500", "600"], "in": "query", "name": "min_pa", "type": "string"}, {"enum": ["q", "1", "10", "50", "100", "200", "300", "500", "750"], "in": "query", "name": "min_pitches", "type": "string"}, {"enum": ["player_name", "team_name_alt", "pitch_name", "run_value_per_100", "run_value", "pitches", "pitch_usage", "pa", "ba", "slg", "woba", "whiff_percent", "k_percent", "put_away", "est_ba", "est_slg", "est_woba", "hard_hit_percent"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-arsenal-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-arsenal-details", "method": "GET", "params": [{"description": "Positive MLB player id from mlb-statcast-pitch-arsenal", "in": "query", "name": "player_id", "required": true, "type": "string", "x-example": "592332"}, {"default": "pitcher", "description": "Row type", "enum": ["pitcher", "batter"], "in": "query", "name": "player_type", "type": "string"}, {"description": "Pitch type from the selected row", "enum": ["FF", "CH", "CU", "FC", "KN", "SC", "SI", "SL", "SV", "FS", "ST", "CUKC", "SIFT"], "in": "query", "name": "pitch_type", "required": true, "type": "string", "x-example": "FF"}, {"default": "2026", "description": "Season", "enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-pitch-arsenal-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "player_id", "required": true, "type": "string"}, {"enum": ["pitcher", "batter"], "in": "query", "name": "player_type", "type": "string"}, {"enum": ["FF", "CH", "CU", "FC", "KN", "SC", "SI", "SL", "SV", "FS", "ST", "CUKC", "SIFT"], "in": "query", "name": "pitch_type", "required": true, "type": "string"}, {"enum": ["2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-arsenals": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-arsenals", "method": "GET", "params": [{"default": "2026", "description": "Season", "enum": ["2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"default": "avg_speed", "description": "Metric", "enum": ["avg_speed", "n_", "avg_spin"], "in": "query", "name": "type", "type": "string"}, {"description": "Throwing hand; omit for all pitchers", "enum": ["R", "L"], "in": "query", "name": "hand", "type": "string"}, {"default": "q", "description": "Minimum pitches", "enum": ["q", "100", "250", "500", "750", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min_pitches", "type": "string"}, {"description": "Current MLB team abbreviation; applied locally", "enum": ["ATH", "ATL", "AZ", "BAL", "BOS", "CHC", "CIN", "CLE", "COL", "CWS", "DET", "HOU", "KC", "LAA", "LAD", "MIA", "MIL", "MIN", "NYM", "NYY", "PHI", "PIT", "SD", "SEA", "SF", "STL", "TB", "TEX", "TOR", "WSH"], "in": "query", "name": "team", "type": "string"}, {"default": "four_seam", "description": "Local sort column", "enum": ["player_name", "four_seam", "sinker", "cutter", "slider", "changeup", "curve", "splitter", "sweeper", "slurve"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-pitch-arsenals", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "year", "type": "string"}, {"enum": ["avg_speed", "n_", "avg_spin"], "in": "query", "name": "type", "type": "string"}, {"enum": ["R", "L"], "in": "query", "name": "hand", "type": "string"}, {"enum": ["q", "100", "250", "500", "750", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min_pitches", "type": "string"}, {"enum": ["ATH", "ATL", "AZ", "BAL", "BOS", "CHC", "CIN", "CLE", "COL", "CWS", "DET", "HOU", "KC", "LAA", "LAD", "MIA", "MIL", "MIN", "NYM", "NYY", "PHI", "PIT", "SD", "SEA", "SF", "STL", "TB", "TEX", "TOR", "WSH"], "in": "query", "name": "team", "type": "string"}, {"enum": ["player_name", "four_seam", "sinker", "cutter", "slider", "changeup", "curve", "splitter", "sweeper", "slurve"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-movement": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-movement", "method": "GET", "params": [{"default": "2026", "description": "Season", "enum": ["2026", "2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017"], "in": "query", "name": "year", "type": "string"}, {"default": "FF", "description": "Pitch class", "enum": ["FF", "CH", "CU", "FC", "FO", "KN", "SC", "SI", "SL", "SV", "FS", "ST", "ALL"], "in": "query", "name": "pitch_type", "type": "string"}, {"description": "Pitcher throwing hand; omit for both", "enum": ["R", "L"], "in": "query", "name": "hand", "type": "string"}, {"default": "q", "description": "Minimum pitch count", "enum": ["q", "50", "100", "250", "500", "750", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min", "type": "string"}, {"default": "pitcher_break_z", "description": "Local table sort field", "enum": ["pitcher_name", "team_name_abbrev", "pitch_hand", "pitch_type_name", "pitches_thrown", "avg_speed", "pitcher_break_z", "diff_z", "pitcher_break_x_hidden", "diff_x", "pitcher_break_z_induced", "diff_z_induced_standard", "diff_x_standard"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-pitch-movement", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["2026", "2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017"], "in": "query", "name": "year", "type": "string"}, {"enum": ["FF", "CH", "CU", "FC", "FO", "KN", "SC", "SI", "SL", "SV", "FS", "ST", "ALL"], "in": "query", "name": "pitch_type", "type": "string"}, {"enum": ["R", "L"], "in": "query", "name": "hand", "type": "string"}, {"enum": ["q", "50", "100", "250", "500", "750", "1000", "1500", "2000", "2500", "3000"], "in": "query", "name": "min", "type": "string"}, {"enum": ["pitcher_name", "team_name_abbrev", "pitch_hand", "pitch_type_name", "pitches_thrown", "avg_speed", "pitcher_break_z", "diff_z", "pitcher_break_x_hidden", "diff_x", "pitcher_break_z_induced", "diff_z_induced_standard", "diff_x_standard"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-tempo": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-tempo", "method": "GET", "params": [{"default": "Pit", "description": "Table group", "enum": ["Pit", "Bat", "Pitching Team", "Batting Team", "League"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "First season", "enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "season_start", "description": "Last season; must be >= season_start", "enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum pitch count", "enum": ["q", "1", "10", "50", "100", "250", "500", "1000", "2000", "5000"], "in": "query", "name": "n", "type": "string"}, {"description": "Optional MLB team id", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team", "type": "string"}, {"default": "no", "description": "Compare seasons separately", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "Team membership mode; requires team", "enum": ["0", "1"], "in": "query", "name": "with_team_only", "type": "string"}, {"description": "Case-insensitive local entity-name filter", "in": "query", "name": "q", "type": "string"}, {"default": "median_seconds_empty", "description": "Local sort field", "enum": ["entity_name", "start_year", "tot_n_empty", "median_seconds_empty", "empty_equiv", "freq_hot_empty", "freq_cold_empty", "tot_n_onbase", "median_seconds_onbase", "onbase_equiv", "freq_hot_onbase", "freq_cold_onbase"], "in": "query", "name": "sort", "type": "string"}, {"default": "asc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-pitch-tempo", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Pit", "Bat", "Pitching Team", "Batting Team", "League"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "1", "10", "50", "100", "250", "500", "1000", "2000", "5000"], "in": "query", "name": "n", "type": "string"}, {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team", "type": "string"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "with_team_only", "type": "string"}, {"in": "query", "name": "q", "type": "string"}, {"enum": ["entity_name", "start_year", "tot_n_empty", "median_seconds_empty", "empty_equiv", "freq_hot_empty", "freq_cold_empty", "tot_n_onbase", "median_seconds_onbase", "onbase_equiv", "freq_hot_onbase", "freq_cold_onbase"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-tempo-player": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-tempo-player", "method": "GET", "params": [{"description": "Numeric entity id from a Pitch Tempo row", "in": "query", "name": "entity_id", "required": true, "type": "string", "x-example": "608718"}, {"default": "Pit", "description": "Entity type", "enum": ["Pit", "Bat"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "First season", "enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "season_start", "description": "Last season; must be >= season_start", "enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}], "path": "/mlb/statcast-pitch-tempo-player", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "entity_id", "required": true, "type": "string"}, {"enum": ["Pit", "Bat"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-pitch-timer": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-pitch-timer", "method": "GET", "params": [{"default": "Team", "description": "Entity group", "enum": ["Pit", "Bat", "Cat", "Team", "Opp"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "Season", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season", "type": "string"}, {"default": "1", "description": "Minimum pitches", "enum": ["1", "5", "25", "50", "100", "250", "500", "1000"], "in": "query", "name": "min_pitches", "type": "string"}, {"default": "0", "description": "Include entities without infractions", "enum": ["0", "1"], "in": "query", "name": "include_zeroes", "type": "string"}, {"description": "Local case-insensitive entity-name substring filter", "in": "query", "name": "q", "type": "string"}, {"default": "violating", "description": "Chart ordering metadata", "enum": ["violating", "violated", "net", "ballsAgainst", "ballsFor", "strikesAgainst", "strikesFor", "division"], "in": "query", "name": "chart_sort", "type": "string"}, {"default": "N_time_violations", "description": "Local table sort field", "enum": ["entity_name", "N_pitches", "N_time_violations", "N_pitcher_pitch_timer", "N_batter_pitch_timer", "N_batter_timeout", "N_catcher_pitch_timer", "N_defensive_shift", "rate"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-pitch-timer", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Pit", "Bat", "Cat", "Team", "Opp"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season", "type": "string"}, {"enum": ["1", "5", "25", "50", "100", "250", "500", "1000"], "in": "query", "name": "min_pitches", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "include_zeroes", "type": "string"}, {"in": "query", "name": "q", "type": "string"}, {"enum": ["violating", "violated", "net", "ballsAgainst", "ballsFor", "strikesAgainst", "strikesFor", "division"], "in": "query", "name": "chart_sort", "type": "string"}, {"enum": ["entity_name", "N_pitches", "N_time_violations", "N_pitcher_pitch_timer", "N_batter_pitch_timer", "N_batter_timeout", "N_catcher_pitch_timer", "N_defensive_shift", "rate"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-player-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-player-details", "method": "GET", "params": [{"description": "Positive MLB player id from a batter or pitcher row", "in": "query", "name": "player_id", "required": true, "type": "string", "x-example": "650333"}, {"default": "batter", "description": "Player row type", "enum": ["batter", "pitcher"], "in": "query", "name": "player_type", "type": "string"}, {"description": "Season from 2015 through the current season", "in": "query", "name": "year", "type": "integer"}], "path": "/mlb/statcast-player-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "player_id", "required": true, "type": "string"}, {"enum": ["batter", "pitcher"], "in": "query", "name": "player_type", "type": "string"}, {"in": "query", "name": "year", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-rolling": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-rolling", "method": "GET", "params": [{"default": "xwoba", "description": "Displayed metric", "enum": ["xwoba", "woba", "ba", "xba", "slg", "xslg"], "in": "query", "name": "metric", "type": "string"}, {"description": "Optional player role; omit for both", "enum": ["Batter", "Pitcher"], "in": "query", "name": "role", "type": "string"}, {"description": "Optional rolling plate-appearance window; omit for all", "enum": ["50", "100", "250"], "in": "query", "name": "window_pa", "type": "string"}, {"default": 100, "description": "Rows per group (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset per group (0-5000)", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-rolling", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["xwoba", "woba", "ba", "xba", "slg", "xslg"], "in": "query", "name": "metric", "type": "string"}, {"enum": ["Batter", "Pitcher"], "in": "query", "name": "role", "type": "string"}, {"enum": ["50", "100", "250"], "in": "query", "name": "window_pa", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-run-value": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-run-value", "method": "GET", "params": [{"default": "Batter", "description": "Row group", "enum": ["Batter", "Pitcher"], "in": "query", "name": "group", "type": "string"}, {"default": "2026", "description": "Season, All, or Career", "enum": ["All", "Career", "2026", "2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017", "2016", "2015", "2014", "2013", "2012", "2011", "2010", "2009", "2008"], "in": "query", "name": "year", "type": "string"}, {"description": "MLB numeric team id; omit for all teams", "in": "query", "name": "team", "type": "string"}, {"default": "q", "description": "Minimum plate appearances", "enum": ["q", "10", "25", "50", "75", "100", "150", "200", "250", "500", "600", "700", "800", "900", "1000", "1500"], "in": "query", "name": "min", "type": "string"}, {"default": "Neutral", "description": "Run-value method", "enum": ["Neutral", "Leveraged"], "in": "query", "name": "leverage", "type": "string"}, {"default": "All", "description": "Table view", "enum": ["All", "Swing-Take", "Pitch Type", "Attack Region", "Bat-side"], "in": "query", "name": "type", "type": "string"}, {"description": "Conditional subtype: Swing/Take; pitch name; or Heart/Shadow/Chase/Waste", "enum": ["Swing", "Take", "4-Seam Fastball", "Changeup", "Curveball", "Cutter", "Knuckleball", "Screwball", "Sinker", "Slider", "Slurve", "Split-Finger", "Sweeper", "Heart", "Shadow", "Chase", "Waste"], "in": "query", "name": "sub_type", "type": "string"}, {"default": "runs_all", "description": "Local table sort field; supported set varies by view", "enum": ["player_name", "team_name_abbrev", "year", "pa", "pitches", "runs_heart", "runs_shadow", "runs_chase", "runs_waste", "runs_all", "runs_ff", "runs_si", "runs_fc", "runs_ch", "runs_fs", "runs_cu", "runs_sl", "runs_st", "runs_sv", "runs_kn", "runs_sc", "delta_runs"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-run-value", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Batter", "Pitcher"], "in": "query", "name": "group", "type": "string"}, {"enum": ["All", "Career", "2026", "2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017", "2016", "2015", "2014", "2013", "2012", "2011", "2010", "2009", "2008"], "in": "query", "name": "year", "type": "string"}, {"in": "query", "name": "team", "type": "string"}, {"enum": ["q", "10", "25", "50", "75", "100", "150", "200", "250", "500", "600", "700", "800", "900", "1000", "1500"], "in": "query", "name": "min", "type": "string"}, {"enum": ["Neutral", "Leveraged"], "in": "query", "name": "leverage", "type": "string"}, {"enum": ["All", "Swing-Take", "Pitch Type", "Attack Region", "Bat-side"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Swing", "Take", "4-Seam Fastball", "Changeup", "Curveball", "Cutter", "Knuckleball", "Screwball", "Sinker", "Slider", "Slurve", "Split-Finger", "Sweeper", "Heart", "Shadow", "Chase", "Waste"], "in": "query", "name": "sub_type", "type": "string"}, {"enum": ["player_name", "team_name_abbrev", "year", "pa", "pitches", "runs_heart", "runs_shadow", "runs_chase", "runs_waste", "runs_all", "runs_ff", "runs_si", "runs_fc", "runs_ch", "runs_fs", "runs_cu", "runs_sl", "runs_st", "runs_sv", "runs_kn", "runs_sc", "delta_runs"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-running-game": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-running-game", "method": "GET", "params": [{"default": "Pit", "description": "Leaderboard group", "enum": ["Pit", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game scope", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "all", "description": "Pitcher's throwing hand", "enum": ["all", "L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"default": "All", "description": "Runner movement outcome", "enum": ["All", "Advance", "Out", "Hold"], "in": "query", "name": "runner_moved", "type": "string"}, {"default": "All", "description": "Target base", "enum": ["All", "2B", "3B"], "in": "query", "name": "target_base", "type": "string"}, {"default": "All", "description": "Prior pickoff/disengagement count", "enum": ["All", "0", "1", "2", "3"], "in": "query", "name": "prior_pk", "type": "string"}, {"default": "q", "description": "Minimum pitcher opportunities", "enum": ["q", "1", "50", "100", "200", "500", "1000", "1500", "2000"], "in": "query", "name": "n", "type": "string"}, {"description": "Inclusive first season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_start", "type": "integer"}, {"description": "Inclusive last season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_end", "type": "integer"}, {"default": "no", "description": "Return separate year rows", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "MLB team id, or split team stints", "enum": ["split", "108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": true, "description": "Restrict pitcher rows to the selected team; only valid with one specific team id", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": "simple_prevented_on_running_attr", "description": "Local table sort field", "enum": ["entity_name", "team_name", "start_year", "pitch_hand", "key_pitch_hand", "runs_prevented_on_running_attr", "simple_prevented_on_running_attr", "net_attr_plus", "net_attr_minus", "n_init", "rate_sbx", "n_plus", "n_minus", "r_sec_minus_prim_lead", "r_sec_minus_prim_lead_sbx", "n_sb", "n_cs", "n_pk", "n_bk", "n_fb", "r_primary_lead", "r_secondary_lead", "r_primary_lead_sbx", "r_secondary_lead_sbx"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Local sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"description": "Case-insensitive substring of the displayed player or team name", "in": "query", "name": "search", "type": "string"}, {"default": 100, "description": "Rows per page, 1-500", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based row offset", "in": "query", "maximum": 10000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-running-game", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Pit", "Pitching Team", "League"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["all", "L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["All", "Advance", "Out", "Hold"], "in": "query", "name": "runner_moved", "type": "string"}, {"enum": ["All", "2B", "3B"], "in": "query", "name": "target_base", "type": "string"}, {"enum": ["All", "0", "1", "2", "3"], "in": "query", "name": "prior_pk", "type": "string"}, {"enum": ["q", "1", "50", "100", "200", "500", "1000", "1500", "2000"], "in": "query", "name": "n", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "integer"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "integer"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"enum": ["split", "108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"enum": ["entity_name", "team_name", "start_year", "pitch_hand", "key_pitch_hand", "runs_prevented_on_running_attr", "simple_prevented_on_running_attr", "net_attr_plus", "net_attr_minus", "n_init", "rate_sbx", "n_plus", "n_minus", "r_sec_minus_prim_lead", "r_sec_minus_prim_lead_sbx", "n_sb", "n_cs", "n_pk", "n_bk", "n_fb", "r_primary_lead", "r_secondary_lead", "r_primary_lead_sbx", "r_secondary_lead_sbx"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "search", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-running-game-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-running-game-details", "method": "GET", "params": [{"description": "Positive player or team entity id from the Running Game leaderboard", "in": "query", "name": "entity_id", "required": true, "type": "integer", "x-example": 695549}, {"default": "Pit", "description": "Detail group", "enum": ["Pit", "Pitching Team"], "in": "query", "name": "type", "type": "string"}, {"default": "Regular", "description": "Game scope", "enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"default": "all", "description": "Pitcher's throwing hand", "enum": ["all", "L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"default": "All", "description": "Runner movement outcome", "enum": ["All", "Advance", "Out", "Hold"], "in": "query", "name": "runner_moved", "type": "string"}, {"default": "All", "description": "Target base", "enum": ["All", "2B", "3B"], "in": "query", "name": "target_base", "type": "string"}, {"default": "All", "description": "Prior pickoff/disengagement count", "enum": ["All", "0", "1", "2", "3"], "in": "query", "name": "prior_pk", "type": "string"}, {"default": "q", "description": "Minimum pitcher opportunities", "enum": ["q", "1", "50", "100", "200", "500", "1000", "1500", "2000"], "in": "query", "name": "n", "type": "string"}, {"description": "Inclusive first season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_start", "type": "integer"}, {"description": "Inclusive last season", "enum": [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026], "in": "query", "name": "season_end", "type": "integer"}, {"default": "no", "description": "Return separate year rows", "enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"description": "One MLB team id; use the row's team id for split-team rows", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"default": true, "description": "Restrict player rows to selected team; only valid with a specific team and Pit type", "in": "query", "name": "with_team_only", "type": "boolean"}, {"default": 100, "description": "Play rows per page, 1-500", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"description": "Zero-based play-row offset", "in": "query", "maximum": 100000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-running-game-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "entity_id", "required": true, "type": "integer"}, {"enum": ["Pit", "Pitching Team"], "in": "query", "name": "type", "type": "string"}, {"enum": ["Regular", "Playoff", "All"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["all", "L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["All", "Advance", "Out", "Hold"], "in": "query", "name": "runner_moved", "type": "string"}, {"enum": ["All", "2B", "3B"], "in": "query", "name": "target_base", "type": "string"}, {"enum": ["All", "0", "1", "2", "3"], "in": "query", "name": "prior_pk", "type": "string"}, {"enum": ["q", "1", "50", "100", "200", "500", "1000", "1500", "2000"], "in": "query", "name": "n", "type": "string"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "integer"}, {"enum": ["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "integer"}, {"enum": ["yes", "no"], "in": "query", "name": "split", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team", "type": "string"}, {"in": "query", "name": "with_team_only", "type": "boolean"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-sprint-speed": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-sprint-speed", "method": "GET", "params": [{"default": "2026", "description": "First season", "enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "min_season", "type": "string"}, {"default": "min_season", "description": "Last season; must be >= min_season", "enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "max_season", "type": "string"}, {"description": "Position code; omitted is All Positions", "enum": ["all", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"], "in": "query", "name": "position", "type": "string"}, {"description": "MLB team id", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team_id", "type": "string"}, {"default": "10", "description": "Minimum competitive runs", "enum": ["0", "5", "10", "25", "50", "75", "100", "150", "200", "250"], "in": "query", "name": "minimum_runs", "type": "string"}, {"default": "sprint_speed", "description": "Local sort field", "enum": ["player", "team", "position", "age", "competitive_runs", "bolts", "home_to_first", "sprint_speed"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-sprint-speed", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "min_season", "type": "string"}, {"enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"], "in": "query", "name": "max_season", "type": "string"}, {"enum": ["all", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"], "in": "query", "name": "position", "type": "string"}, {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "140", "139", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "team_id", "type": "string"}, {"enum": ["0", "5", "10", "25", "50", "75", "100", "150", "200", "250"], "in": "query", "name": "minimum_runs", "type": "string"}, {"enum": ["player", "team", "position", "age", "competitive_runs", "bolts", "home_to_first", "sprint_speed"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-sprint-speed-teams": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-sprint-speed-teams", "method": "GET", "params": [{"default": "2026", "description": "Season or all seasons", "enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "all"], "in": "query", "name": "season", "type": "string"}, {"description": "Optional first-party team selector abbreviation", "enum": ["LAA", "HOU", "OAK", "TOR", "ATL", "MIL", "STL", "CHC", "ARI", "LAD", "SF", "CLE", "SEA", "MIA", "NYM", "WSH", "BAL", "SD", "PHI", "PIT", "TEX", "TB", "BOS", "CIN", "COL", "KC", "DET", "MIN", "CWS", "NYY"], "in": "query", "name": "team", "type": "string"}, {"default": "average_sprint_speed", "description": "Local sort field", "enum": ["season", "team", "players", "competitive_runs", "average_sprint_speed", "fastest_sprint_speed", "slowest_sprint_speed", "bolts", "average_home_to_first"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-sprint-speed-teams", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "all"], "in": "query", "name": "season", "type": "string"}, {"enum": ["LAA", "HOU", "OAK", "TOR", "ATL", "MIL", "STL", "CHC", "ARI", "LAD", "SF", "CLE", "SEA", "MIA", "NYM", "WSH", "BAL", "SD", "PHI", "PIT", "TEX", "TB", "BOS", "CIN", "COL", "KC", "DET", "MIN", "CWS", "NYY"], "in": "query", "name": "team", "type": "string"}, {"enum": ["season", "team", "players", "competitive_runs", "average_sprint_speed", "fastest_sprint_speed", "slowest_sprint_speed", "bolts", "average_home_to_first"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-swing-path": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-swing-path", "method": "GET", "params": [{"default": "batter", "description": "Row type", "enum": ["batter", "batting-team", "league"], "in": "query", "name": "type", "type": "string"}, {"default": "2026", "description": "First season", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"default": "season_start", "description": "Last season; must be >= season_start", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"default": "Regular", "description": "Game type", "enum": ["Any", "Exhibition", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"default": "q", "description": "Minimum swing threshold", "enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"default": "1", "description": "Minimum swings per group", "enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_group_swings", "type": "string"}, {"description": "Optional MLB team id", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team_id", "type": "string"}, {"description": "Optional range start in YYYY-MM-DD", "in": "query", "name": "date_start", "type": "string"}, {"description": "Optional range end in YYYY-MM-DD", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Contact type", "enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"description": "Hard-hit filter", "enum": ["1", "0"], "in": "query", "name": "is_hard_hit", "type": "string"}, {"description": "Attack zone", "enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"description": "Pitcher hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"default": "avg_sweetspot_speed_mph", "description": "Local sort field", "enum": ["name", "team_name", "avg_sweetspot_speed_mph", "avg_plane_vertical_angle", "attack_angle", "attack_direction_pullopp", "rate_ideal_attack_angle", "avg_intercept_y_vs_plate", "avg_intercept_y_vs_batter", "avg_batter_y_position", "avg_batter_x_position", "avg_foot_sep0", "avg_foot_angle0", "n_swings"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-swing-path", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "batting-team", "league"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_start", "type": "string"}, {"enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "season_end", "type": "string"}, {"enum": ["Any", "Exhibition", "Playoff", "Regular"], "in": "query", "name": "game_type", "type": "string"}, {"enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_group_swings", "type": "string"}, {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "team_id", "type": "string"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"enum": ["1", "0"], "in": "query", "name": "is_hard_hit", "type": "string"}, {"enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"enum": ["name", "team_name", "avg_sweetspot_speed_mph", "avg_plane_vertical_angle", "attack_angle", "attack_direction_pullopp", "rate_ideal_attack_angle", "avg_intercept_y_vs_plate", "avg_intercept_y_vs_batter", "avg_batter_y_position", "avg_batter_x_position", "avg_foot_sep0", "avg_foot_angle0", "n_swings"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-swing-timing": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-swing-timing", "method": "GET", "params": [{"default": "batter", "description": "Row type", "enum": ["batter", "batting-team", "pitcher", "pitching-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "description": "One or more seasons", "in": "query", "items": {"enum": ["2023", "2024", "2025", "2026"], "type": "string"}, "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "description": "One or more game types", "in": "query", "items": {"enum": ["R", "A", "F", "D", "L", "W"], "type": "string"}, "name": "game_types", "type": "array"}, {"collectionFormat": "multi", "description": "One or more split dimensions", "in": "query", "items": {"enum": ["api_pitch_type_group03", "api_pitch_type_group09", "api_game_date_month_text", "bat_contact_code", "game_type", "is_hit_into_play_hardhit", "is_best_speed", "timing_x_tiedupflail", "timing_y_earlylate", "timing_z_overunder", "pitch_hand", "bat_side", "is_pre_ball_count_3", "is_pre_strike_count_2", "pitchzone_height_code", "is_starter_pitcher"], "type": "string"}, "name": "splits", "type": "array"}, {"default": "q", "description": "Minimum swing threshold", "enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"default": "1", "description": "Minimum swings per split group", "enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_split", "type": "string"}, {"default": "1", "description": "Split years into separate rows", "enum": ["1", "0"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "multi", "description": "One or more MLB team ids", "in": "query", "items": {"enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "type": "string"}, "name": "teams", "type": "array"}, {"description": "Optional range start in YYYY-MM-DD", "in": "query", "name": "date_start", "type": "string"}, {"description": "Optional range end in YYYY-MM-DD", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Contact type", "enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"description": "Attack zone", "enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"description": "Pitcher hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "multi", "description": "One or more pitch type codes", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "description": "One or more ball-strike counts", "in": "query", "items": {"enum": ["00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "31", "32"], "type": "string"}, "name": "counts", "type": "array"}, {"collectionFormat": "multi", "description": "Tied-up, centered, or flailed", "in": "query", "items": {"enum": ["Tiedup", "Centered", "Flail"], "type": "string"}, "name": "swing_timing_x", "type": "array"}, {"collectionFormat": "multi", "description": "Early, on-time, or late", "in": "query", "items": {"enum": ["Early", "OnTime", "Late"], "type": "string"}, "name": "swing_timing_y", "type": "array"}, {"collectionFormat": "multi", "description": "Under, lined-up, or over", "in": "query", "items": {"enum": ["Under", "Linedup", "Over"], "type": "string"}, "name": "swing_timing_z", "type": "array"}, {"collectionFormat": "multi", "description": "Positive timing flags", "in": "query", "items": {"enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "type": "string"}, "name": "flags", "type": "array"}, {"collectionFormat": "multi", "description": "Excluded timing flags", "in": "query", "items": {"enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "type": "string"}, "name": "not_flags", "type": "array"}, {"default": "n_swings", "description": "Local sort field", "enum": ["name", "team_name", "pitch_hand_type", "bat_side_type", "n_swings", "competitive_swings", "strikes_swinging", "miss_distance", "flails", "centers", "tied_ups", "earlys", "on_times", "lates", "unders", "lined_ups", "overs", "delta_run_exp", "whiff_rate", "competitive_percent", "perfect_percent", "flawed_percent"], "in": "query", "name": "sort", "type": "string"}, {"default": "desc", "description": "Sort direction", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-swing-timing", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["batter", "batting-team", "pitcher", "pitching-team", "league"], "in": "query", "name": "type", "type": "string"}, {"collectionFormat": "multi", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "seasons", "type": "array"}, {"collectionFormat": "multi", "enum": ["R", "A", "F", "D", "L", "W"], "in": "query", "name": "game_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["api_pitch_type_group03", "api_pitch_type_group09", "api_game_date_month_text", "bat_contact_code", "game_type", "is_hit_into_play_hardhit", "is_best_speed", "timing_x_tiedupflail", "timing_y_earlylate", "timing_z_overunder", "pitch_hand", "bat_side", "is_pre_ball_count_3", "is_pre_strike_count_2", "pitchzone_height_code", "is_starter_pitcher"], "in": "query", "name": "splits", "type": "array"}, {"enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_split", "type": "string"}, {"enum": ["1", "0"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "multi", "enum": ["108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "158"], "in": "query", "name": "teams", "type": "array"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "multi", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"collectionFormat": "multi", "enum": ["00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "31", "32"], "in": "query", "name": "counts", "type": "array"}, {"collectionFormat": "multi", "enum": ["Tiedup", "Centered", "Flail"], "in": "query", "name": "swing_timing_x", "type": "array"}, {"collectionFormat": "multi", "enum": ["Early", "OnTime", "Late"], "in": "query", "name": "swing_timing_y", "type": "array"}, {"collectionFormat": "multi", "enum": ["Under", "Linedup", "Over"], "in": "query", "name": "swing_timing_z", "type": "array"}, {"collectionFormat": "multi", "enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "in": "query", "name": "flags", "type": "array"}, {"collectionFormat": "multi", "enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "in": "query", "name": "not_flags", "type": "array"}, {"enum": ["name", "team_name", "pitch_hand_type", "bat_side_type", "n_swings", "competitive_swings", "strikes_swinging", "miss_distance", "flails", "centers", "tied_ups", "earlys", "on_times", "lates", "unders", "lined_ups", "overs", "delta_run_exp", "whiff_rate", "competitive_percent", "perfect_percent", "flawed_percent"], "in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-swing-timing-details": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-swing-timing-details", "method": "GET", "params": [{"description": "Unique row id from mlb-statcast-swing-timing, including any selected split values", "in": "query", "name": "row_id", "required": true, "type": "string", "x-example": "666018_FF_2026"}, {"description": "Player row type", "enum": ["batter", "pitcher"], "in": "query", "name": "type", "required": true, "type": "string", "x-example": "batter"}, {"collectionFormat": "csv", "description": "Season filters", "in": "query", "items": {"enum": ["2023", "2024", "2025", "2026"], "type": "string"}, "name": "seasons", "type": "array"}, {"collectionFormat": "csv", "description": "Game-type filters", "in": "query", "items": {"enum": ["R", "A", "F", "D", "L", "W"], "type": "string"}, "name": "game_types", "type": "array"}, {"collectionFormat": "csv", "description": "Split dimensions", "in": "query", "items": {"enum": ["api_pitch_type_group03", "api_pitch_type_group09", "api_game_date_month_text", "bat_contact_code", "game_type", "is_hit_into_play_hardhit", "is_best_speed", "timing_x_tiedupflail", "timing_y_earlylate", "timing_z_overunder", "pitch_hand", "bat_side", "is_pre_ball_count_3", "is_pre_strike_count_2", "pitchzone_height_code", "is_starter_pitcher"], "type": "string"}, "name": "splits", "type": "array"}, {"default": "q", "description": "Minimum swings", "enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"default": "1", "description": "Minimum group swings", "enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_split", "type": "string"}, {"default": "1", "description": "Include year in the row grouping", "enum": ["0", "1"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "csv", "description": "MLB team ids", "in": "query", "items": {"enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "113", "111", "115", "118", "116", "142", "145", "147"], "type": "string"}, "name": "teams", "type": "array"}, {"description": "Filter start date in YYYY-MM-DD format", "in": "query", "name": "date_start", "type": "string"}, {"description": "Filter end date in YYYY-MM-DD format", "in": "query", "name": "date_end", "type": "string"}, {"description": "Batter side", "enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"description": "Contact type", "enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"description": "Attack zone", "enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"description": "Pitcher hand", "enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "csv", "description": "Pitch type codes", "in": "query", "items": {"enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "type": "string"}, "name": "pitch_types", "type": "array"}, {"collectionFormat": "csv", "description": "Ball-strike counts", "in": "query", "items": {"enum": ["00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "31", "32"], "type": "string"}, "name": "counts", "type": "array"}, {"collectionFormat": "csv", "description": "Tied-up/flail axis values", "in": "query", "items": {"enum": ["Tiedup", "Centered", "Flail"], "type": "string"}, "name": "swing_timing_x", "type": "array"}, {"collectionFormat": "csv", "description": "Early/late axis values", "in": "query", "items": {"enum": ["Early", "OnTime", "Late"], "type": "string"}, "name": "swing_timing_y", "type": "array"}, {"collectionFormat": "csv", "description": "Over/under axis values", "in": "query", "items": {"enum": ["Under", "Linedup", "Over"], "type": "string"}, "name": "swing_timing_z", "type": "array"}, {"collectionFormat": "csv", "description": "Positive swing timing flags", "in": "query", "items": {"enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "type": "string"}, "name": "flags", "type": "array"}, {"collectionFormat": "csv", "description": "Excluded swing timing flags", "in": "query", "items": {"enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "type": "string"}, "name": "not_flags", "type": "array"}], "path": "/mlb/statcast-swing-timing-details", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "row_id", "required": true, "type": "string"}, {"enum": ["batter", "pitcher"], "in": "query", "name": "type", "required": true, "type": "string"}, {"collectionFormat": "csv", "enum": ["2023", "2024", "2025", "2026"], "in": "query", "name": "seasons", "type": "array"}, {"collectionFormat": "csv", "enum": ["R", "A", "F", "D", "L", "W"], "in": "query", "name": "game_types", "type": "array"}, {"collectionFormat": "csv", "enum": ["api_pitch_type_group03", "api_pitch_type_group09", "api_game_date_month_text", "bat_contact_code", "game_type", "is_hit_into_play_hardhit", "is_best_speed", "timing_x_tiedupflail", "timing_y_earlylate", "timing_z_overunder", "pitch_hand", "bat_side", "is_pre_ball_count_3", "is_pre_strike_count_2", "pitchzone_height_code", "is_starter_pitcher"], "in": "query", "name": "splits", "type": "array"}, {"enum": ["q", "1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_swings", "type": "string"}, {"enum": ["1", "5", "10", "25", "50", "100", "200", "500", "1000"], "in": "query", "name": "min_split", "type": "string"}, {"enum": ["0", "1"], "in": "query", "name": "split_year", "type": "string"}, {"collectionFormat": "csv", "enum": ["108", "117", "133", "141", "144", "158", "138", "112", "109", "119", "137", "114", "136", "146", "121", "120", "110", "135", "143", "134", "113", "111", "115", "118", "116", "142", "145", "147"], "in": "query", "name": "teams", "type": "array"}, {"in": "query", "name": "date_start", "type": "string"}, {"in": "query", "name": "date_end", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "bat_side", "type": "string"}, {"enum": ["2", "4", "9"], "in": "query", "name": "contact_type", "type": "string"}, {"enum": ["0", "1", "1.1", "2", "3"], "in": "query", "name": "attack_zone", "type": "string"}, {"enum": ["L", "R"], "in": "query", "name": "pitch_hand", "type": "string"}, {"collectionFormat": "csv", "enum": ["FF", "SI", "FC", "CH", "FS", "FO", "SC", "CU", "SL", "ST", "SV", "KN"], "in": "query", "name": "pitch_types", "type": "array"}, {"collectionFormat": "csv", "enum": ["00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "31", "32"], "in": "query", "name": "counts", "type": "array"}, {"collectionFormat": "csv", "enum": ["Tiedup", "Centered", "Flail"], "in": "query", "name": "swing_timing_x", "type": "array"}, {"collectionFormat": "csv", "enum": ["Early", "OnTime", "Late"], "in": "query", "name": "swing_timing_y", "type": "array"}, {"collectionFormat": "csv", "enum": ["Under", "Linedup", "Over"], "in": "query", "name": "swing_timing_z", "type": "array"}, {"collectionFormat": "csv", "enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "in": "query", "name": "flags", "type": "array"}, {"collectionFormat": "csv", "enum": ["is_timing_xyz_flawed", "is_timing_xyz_perfect"], "in": "query", "name": "not_flags", "type": "array"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-top-performers": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-top-performers", "method": "GET", "params": [{"description": "Season from 2015 through the current season; defaults to the current season", "in": "query", "name": "year", "type": "integer"}], "path": "/mlb/statcast-top-performers", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "year", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-statcast-year-to-year": {"bodyParam": null, "bodyRequired": false, "id": "mlb-statcast-year-to-year", "method": "GET", "params": [{"default": "Batter", "description": "Table group", "enum": ["Batter", "Pitcher", "Batter Team", "Pitcher Team"], "in": "query", "name": "group", "type": "string"}, {"default": "hard_hit_percent", "description": "Statistic type", "enum": ["ba", "xba", "obp", "xobp", "slg", "xslg", "iso", "xiso", "babip", "woba", "xwoba", "wobacon", "xwobacon", "bacon", "xbacon", "hard_hit_percent", "exit_velocity_avg", "sweet_spot_percent", "barrel_batted_rate", "launch_angle_avg", "avg_swing_speed", "attack_angle", "ideal_angle_rate", "attack_direction", "vertical_swing_path", "avg_swing_length", "fastball_velo", "breaking_velo", "offspeed_velo", "barrels", "popups_percent", "flyballs_percent", "linedrives_percent", "groundballs_percent", "pull_percent", "straightaway_percent", "opposite_percent", "poorlyweak_percent", "pull_percent_airballs", "poorlytopped_percent", "poorlyunder_percent", "flareburner_percent", "solidcontact_percent", "hr_flyballs_percent", "popups", "flyballs", "linedrives", "groundballs", "in_zone_percent", "out_zone_percent", "edge_percent", "z_swing_percent", "oz_swing_percent", "iz_contact_percent", "oz_contact_percent", "whiff_percent", "f_strike_percent", "f_swing_percent", "swing_percent", "meatball_swing_percent", "meatball_percent", "z_swing_miss_percent", "oz_swing_miss_percent", "in_zone", "out_zone", "edge", "in_zone_swing", "out_zone_swing", "in_zone_swing_miss", "out_zone_swing_miss", "pitch_count", "pa", "ab", "hit", "single", "double", "triple", "home_run", "walk", "strikeout", "k_percent", "bb_percent", "hbp", "batted_ball", "pitch_usage_fastball", "pitch_usage_offspeed", "pitch_usage_breaking", "pitch_count_fastball", "pitch_count_offspeed", "pitch_count_breaking"], "in": "query", "name": "type", "type": "string"}, {"default": "2025", "description": "Comparison start year; compares this season with the following year", "enum": ["2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017"], "in": "query", "name": "year", "type": "string"}, {"description": "Local sortable column; name_display_last_first, year_YYYY, TYPE_YYYY, or TYPE_diff_YYYY. Defaults to the selected metric's difference for the selected comparison year.", "in": "query", "name": "sort", "type": "string"}, {"description": "Sort direction; defaults to Batter descending and Pitcher ascending", "enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"default": 100, "description": "Rows per page (1-500)", "in": "query", "maximum": 500, "minimum": 1, "name": "limit", "type": "integer"}, {"default": 0, "description": "Zero-based row offset (0-5000)", "in": "query", "maximum": 5000, "minimum": 0, "name": "offset", "type": "integer"}], "path": "/mlb/statcast-year-to-year", "pathParams": [], "produces": ["application/json"], "queryParams": [{"enum": ["Batter", "Pitcher", "Batter Team", "Pitcher Team"], "in": "query", "name": "group", "type": "string"}, {"enum": ["ba", "xba", "obp", "xobp", "slg", "xslg", "iso", "xiso", "babip", "woba", "xwoba", "wobacon", "xwobacon", "bacon", "xbacon", "hard_hit_percent", "exit_velocity_avg", "sweet_spot_percent", "barrel_batted_rate", "launch_angle_avg", "avg_swing_speed", "attack_angle", "ideal_angle_rate", "attack_direction", "vertical_swing_path", "avg_swing_length", "fastball_velo", "breaking_velo", "offspeed_velo", "barrels", "popups_percent", "flyballs_percent", "linedrives_percent", "groundballs_percent", "pull_percent", "straightaway_percent", "opposite_percent", "poorlyweak_percent", "pull_percent_airballs", "poorlytopped_percent", "poorlyunder_percent", "flareburner_percent", "solidcontact_percent", "hr_flyballs_percent", "popups", "flyballs", "linedrives", "groundballs", "in_zone_percent", "out_zone_percent", "edge_percent", "z_swing_percent", "oz_swing_percent", "iz_contact_percent", "oz_contact_percent", "whiff_percent", "f_strike_percent", "f_swing_percent", "swing_percent", "meatball_swing_percent", "meatball_percent", "z_swing_miss_percent", "oz_swing_miss_percent", "in_zone", "out_zone", "edge", "in_zone_swing", "out_zone_swing", "in_zone_swing_miss", "out_zone_swing_miss", "pitch_count", "pa", "ab", "hit", "single", "double", "triple", "home_run", "walk", "strikeout", "k_percent", "bb_percent", "hbp", "batted_ball", "pitch_usage_fastball", "pitch_usage_offspeed", "pitch_usage_breaking", "pitch_count_fastball", "pitch_count_offspeed", "pitch_count_breaking"], "in": "query", "name": "type", "type": "string"}, {"enum": ["2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017"], "in": "query", "name": "year", "type": "string"}, {"in": "query", "name": "sort", "type": "string"}, {"enum": ["asc", "desc"], "in": "query", "name": "sort_dir", "type": "string"}, {"in": "query", "name": "limit", "type": "integer"}, {"in": "query", "name": "offset", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-team-roster": {"bodyParam": null, "bodyRequired": false, "id": "mlb-team-roster", "method": "GET", "params": [{"description": "Numeric MLB team id", "in": "query", "name": "team_id", "required": true, "type": "string", "x-example": "147"}, {"description": "Four-digit season; defaults to current year", "in": "query", "name": "season", "type": "integer", "x-example": 2026}, {"default": "active", "description": "Roster type", "enum": ["40Man", "fullSeason", "fullRoster", "nonRosterInvitees", "active", "allTime", "depthChart", "gameday", "coach"], "in": "query", "name": "roster_type", "type": "string"}], "path": "/mlb/team-roster", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "team_id", "required": true, "type": "string"}, {"in": "query", "name": "season", "type": "integer"}, {"enum": ["40Man", "fullSeason", "fullRoster", "nonRosterInvitees", "active", "allTime", "depthChart", "gameday", "coach"], "in": "query", "name": "roster_type", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-team-stats": {"bodyParam": null, "bodyRequired": false, "id": "mlb-team-stats", "method": "GET", "params": [{"description": "Numeric MLB team id", "in": "query", "name": "team_id", "required": true, "type": "string", "x-example": "147"}, {"description": "Four-digit season", "in": "query", "name": "season", "type": "integer"}, {"description": "Statistics group", "enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "required": true, "type": "string", "x-example": "hitting"}, {"default": "season", "description": "Stats API stat type; defaults to season", "enum": ["projected", "projectedRos", "yearByYear", "yearByYearAdvanced", "yearByYearPlayoffs", "season", "standard", "advanced", "career", "careerRegularSeason", "careerAdvanced", "seasonAdvanced", "careerStatSplits", "careerPlayoffs", "gameLog", "playLog", "pitchLog", "pitchArsenal", "outsAboveAverage", "expectedStatistics", "sabermetrics", "sprayChart", "tracking", "vsPlayer", "vsPlayerTotal", "vsPlayer5Y", "vsTeam", "vsTeam5Y", "vsTeamTotal", "lastXGames", "byDateRange", "byDateRangeAdvanced", "byMonth", "byMonthPlayoffs", "byDayOfWeek", "byDayOfWeekPlayoffs", "homeAndAway", "homeAndAwayPlayoffs", "winLoss", "winLossPlayoffs", "rankings", "rankingsByYear", "statsSingleSeason", "statsSingleSeasonAdvanced", "hotColdZones", "availableStats", "opponentsFaced", "gameTypeStats", "firstYearStats", "lastYearStats", "statSplits", "statSplitsAdvanced", "atGameStart", "vsOpponents", "sabermetricsMultiTeam", "projected_Zips", "projected_ZipsRos", "projected_Zips2YR", "projected_Zips3YR"], "in": "query", "name": "stat_type", "type": "string"}, {"description": "MLB game type", "enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"description": "Start date for byDateRange stat types; requires end_date", "in": "query", "name": "start_date", "type": "string"}, {"description": "End date for byDateRange stat types; requires start_date", "in": "query", "name": "end_date", "type": "string"}, {"description": "Required by vsTeam stat types", "in": "query", "name": "opponent_team_id", "type": "string"}, {"description": "Required by vsPlayer stat types", "in": "query", "name": "opponent_player_id", "type": "string"}], "path": "/mlb/team-stats", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "team_id", "required": true, "type": "string"}, {"in": "query", "name": "season", "type": "integer"}, {"enum": ["hitting", "pitching", "fielding", "catching", "running", "game", "team", "streak"], "in": "query", "name": "group", "required": true, "type": "string"}, {"enum": ["projected", "projectedRos", "yearByYear", "yearByYearAdvanced", "yearByYearPlayoffs", "season", "standard", "advanced", "career", "careerRegularSeason", "careerAdvanced", "seasonAdvanced", "careerStatSplits", "careerPlayoffs", "gameLog", "playLog", "pitchLog", "pitchArsenal", "outsAboveAverage", "expectedStatistics", "sabermetrics", "sprayChart", "tracking", "vsPlayer", "vsPlayerTotal", "vsPlayer5Y", "vsTeam", "vsTeam5Y", "vsTeamTotal", "lastXGames", "byDateRange", "byDateRangeAdvanced", "byMonth", "byMonthPlayoffs", "byDayOfWeek", "byDayOfWeekPlayoffs", "homeAndAway", "homeAndAwayPlayoffs", "winLoss", "winLossPlayoffs", "rankings", "rankingsByYear", "statsSingleSeason", "statsSingleSeasonAdvanced", "hotColdZones", "availableStats", "opponentsFaced", "gameTypeStats", "firstYearStats", "lastYearStats", "statSplits", "statSplitsAdvanced", "atGameStart", "vsOpponents", "sabermetricsMultiTeam", "projected_Zips", "projected_ZipsRos", "projected_Zips2YR", "projected_Zips3YR"], "in": "query", "name": "stat_type", "type": "string"}, {"enum": ["S", "R", "F", "D", "L", "W", "C", "P", "A", "I", "E"], "in": "query", "name": "game_type", "type": "string"}, {"in": "query", "name": "start_date", "type": "string"}, {"in": "query", "name": "end_date", "type": "string"}, {"in": "query", "name": "opponent_team_id", "type": "string"}, {"in": "query", "name": "opponent_player_id", "type": "string"}], "security": ["ApiKeyAuth"]}, "mlb-teams": {"bodyParam": null, "bodyRequired": false, "id": "mlb-teams", "method": "GET", "params": [{"description": "Four-digit season; defaults to current year", "in": "query", "name": "season", "type": "integer", "x-example": 2026}], "path": "/mlb/teams", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "season", "type": "integer"}], "security": ["ApiKeyAuth"]}, "mlb-transactions": {"bodyParam": null, "bodyRequired": false, "id": "mlb-transactions", "method": "GET", "params": [{"description": "Range start in YYYY-MM-DD format", "in": "query", "name": "start_date", "required": true, "type": "string", "x-example": "2026-07-25"}, {"description": "Range end in YYYY-MM-DD format", "in": "query", "name": "end_date", "required": true, "type": "string", "x-example": "2026-08-01"}, {"description": "Numeric MLB team id", "in": "query", "name": "team_id", "type": "string"}, {"description": "Numeric MLB player id", "in": "query", "name": "player_id", "type": "string"}], "path": "/mlb/transactions", "pathParams": [], "produces": ["application/json"], "queryParams": [{"in": "query", "name": "start_date", "required": true, "type": "string"}, {"in": "query", "name": "end_date", "required": true, "type": "string"}, {"in": "query", "name": "team_id", "type": "string"}, {"in": "query", "name": "player_id", "type": "string"}], "security": ["ApiKeyAuth"]}}
23
+ JSON
24
+ OPERATION_IDS = JSON.parse(<<~'JSON').freeze
25
+ ["mlb-discovery", "mlb-editorial-feed", "mlb-game", "mlb-game-boxscore", "mlb-game-play-by-play", "mlb-league-leaders", "mlb-league-stats", "mlb-player", "mlb-player-stats", "mlb-prospect-rankings", "mlb-prospect-stats", "mlb-schedule", "mlb-search", "mlb-standings", "mlb-statcast", "mlb-statcast-abs-challenges", "mlb-statcast-active-spin", "mlb-statcast-arm-angle", "mlb-statcast-arm-strength", "mlb-statcast-arm-strength-player", "mlb-statcast-arm-value", "mlb-statcast-arm-value-details", "mlb-statcast-baserunning", "mlb-statcast-bat-tracking", "mlb-statcast-batted-ball", "mlb-statcast-birthday-index", "mlb-statcast-catcher-blocking", "mlb-statcast-catcher-blocking-details", "mlb-statcast-catcher-framing", "mlb-statcast-catcher-framing-details", "mlb-statcast-catcher-pop-time", "mlb-statcast-catcher-stance", "mlb-statcast-catcher-throwing", "mlb-statcast-catcher-throwing-details", "mlb-statcast-expected", "mlb-statcast-fielding-run-value", "mlb-statcast-first-base-receiving", "mlb-statcast-first-base-receiving-details", "mlb-statcast-home-runs", "mlb-statcast-home-runs-details", "mlb-statcast-oaa", "mlb-statcast-park-factors", "mlb-statcast-percentile", "mlb-statcast-pitch-arsenal", "mlb-statcast-pitch-arsenal-details", "mlb-statcast-pitch-arsenals", "mlb-statcast-pitch-movement", "mlb-statcast-pitch-tempo", "mlb-statcast-pitch-tempo-player", "mlb-statcast-pitch-timer", "mlb-statcast-player-details", "mlb-statcast-rolling", "mlb-statcast-run-value", "mlb-statcast-running-game", "mlb-statcast-running-game-details", "mlb-statcast-sprint-speed", "mlb-statcast-sprint-speed-teams", "mlb-statcast-swing-path", "mlb-statcast-swing-timing", "mlb-statcast-swing-timing-details", "mlb-statcast-top-performers", "mlb-statcast-year-to-year", "mlb-team-roster", "mlb-team-stats", "mlb-teams", "mlb-transactions"]
26
+ JSON
27
+ OPERATION_COUNT = OPERATION_IDS.length
28
+
29
+ class Client
30
+ attr_reader :base_url
31
+
32
+ def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-mlb-ruby/0.1.0", transport: nil)
33
+ @api_key = api_key
34
+ @base_url = base_url.to_s.sub(%r{/+$}, "")
35
+ @timeout = Float(timeout)
36
+ @user_agent = user_agent
37
+ @transport = transport
38
+ @closed = false
39
+ end
40
+
41
+ def request(operation_id, params = {}, response_type: :auto)
42
+ raise Errors::ClientError, "client is closed" if @closed
43
+ operation_id = operation_id.to_s
44
+ operation = OPERATIONS[operation_id]
45
+ raise Errors::ClientError.new("unknown operation: #{operation_id}", operation_id: operation_id) unless operation
46
+ raise Errors::ClientError.new("Crawlora API key is required", operation_id: operation_id) if @api_key.nil? || @api_key.to_s.empty?
47
+ normalized = params.each_with_object({}) { |(key, value), out| out[key.to_s] = value }
48
+ payload = request_body(operation, normalized)
49
+ url = build_url(operation, normalized)
50
+ uri = URI.parse(url)
51
+ request = operation["method"] == "POST" ? Net::HTTP::Post.new(uri) : Net::HTTP::Get.new(uri)
52
+ unless payload.nil?
53
+ request.body = payload
54
+ request["Content-Type"] = "application/json"
55
+ end
56
+ request["x-api-key"] = @api_key
57
+ request["User-Agent"] = @user_agent
58
+ request["Accept"] = operation["produces"].include?("text/plain") ? "application/json, text/plain" : "application/json"
59
+ begin
60
+ if @transport
61
+ response = if operation["method"] == "POST"
62
+ @transport.call(url, request.to_hash, @timeout, "POST", payload)
63
+ else
64
+ @transport.call(url, request.to_hash, @timeout)
65
+ end
66
+ status = Integer(response.fetch(:status) { response.fetch("status") })
67
+ body = response.fetch(:body) { response.fetch("body", "") }
68
+ headers = response.fetch(:headers) { response.fetch("headers", {}) }
69
+ content_type = headers["content-type"] || headers["Content-Type"]
70
+ else
71
+ http = Net::HTTP.new(uri.host, uri.port)
72
+ http.use_ssl = uri.scheme == "https"
73
+ http.open_timeout = @timeout
74
+ http.read_timeout = @timeout
75
+ response = http.start { |connection| connection.request(request) }
76
+ status = response.code.to_i
77
+ body = response.body
78
+ content_type = response["content-type"]
79
+ end
80
+ rescue Timeout::Error, SocketError, SystemCallError, IOError, EOFError, Net::HTTPBadResponse, Net::ProtocolError, OpenSSL::SSL::SSLError => error
81
+ raise Errors::NetworkError.new("Crawlora request failed: #{error.message}", operation_id: operation_id)
82
+ end
83
+ unless status >= 200 && status < 300
84
+ klass = status >= 500 ? Errors::ServerError : Errors::ClientError
85
+ raise klass.new("Crawlora returned HTTP #{status}", status: status, operation_id: operation_id, body: body)
86
+ end
87
+ parse_response(body, content_type, operation, normalized, response_type)
88
+ end
89
+
90
+ def close
91
+ @closed = true
92
+ end
93
+
94
+ def closed?
95
+ @closed
96
+ end
97
+
98
+ def with
99
+ return self unless block_given?
100
+ yield self
101
+ ensure
102
+ close if block_given?
103
+ end
104
+
105
+ def self.operation_count
106
+ OPERATION_COUNT
107
+ end
108
+
109
+ def self.operation_ids
110
+ OPERATION_IDS
111
+ end
112
+
113
+ def self.operations
114
+ OPERATIONS
115
+ end
116
+
117
+ define_method('discovery') do |**params|
118
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
119
+ request('mlb-discovery', params, response_type: response_type)
120
+ end
121
+ define_method('editorial_feed') do |**params|
122
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
123
+ request('mlb-editorial-feed', params, response_type: response_type)
124
+ end
125
+ define_method('game') do |**params|
126
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
127
+ request('mlb-game', params, response_type: response_type)
128
+ end
129
+ define_method('game_boxscore') do |**params|
130
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
131
+ request('mlb-game-boxscore', params, response_type: response_type)
132
+ end
133
+ define_method('game_play_by_play') do |**params|
134
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
135
+ request('mlb-game-play-by-play', params, response_type: response_type)
136
+ end
137
+ define_method('league_leaders') do |**params|
138
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
139
+ request('mlb-league-leaders', params, response_type: response_type)
140
+ end
141
+ define_method('league_stats') do |**params|
142
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
143
+ request('mlb-league-stats', params, response_type: response_type)
144
+ end
145
+ define_method('player') do |**params|
146
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
147
+ request('mlb-player', params, response_type: response_type)
148
+ end
149
+ define_method('player_stats') do |**params|
150
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
151
+ request('mlb-player-stats', params, response_type: response_type)
152
+ end
153
+ define_method('prospect_rankings') do |**params|
154
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
155
+ request('mlb-prospect-rankings', params, response_type: response_type)
156
+ end
157
+ define_method('prospect_stats') do |**params|
158
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
159
+ request('mlb-prospect-stats', params, response_type: response_type)
160
+ end
161
+ define_method('schedule') do |**params|
162
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
163
+ request('mlb-schedule', params, response_type: response_type)
164
+ end
165
+ define_method('search') do |**params|
166
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
167
+ request('mlb-search', params, response_type: response_type)
168
+ end
169
+ define_method('standings') do |**params|
170
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
171
+ request('mlb-standings', params, response_type: response_type)
172
+ end
173
+ define_method('statcast_abs_challenges') do |**params|
174
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
175
+ request('mlb-statcast-abs-challenges', params, response_type: response_type)
176
+ end
177
+ define_method('statcast_active_spin') do |**params|
178
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
179
+ request('mlb-statcast-active-spin', params, response_type: response_type)
180
+ end
181
+ define_method('statcast_arm_angle') do |**params|
182
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
183
+ request('mlb-statcast-arm-angle', params, response_type: response_type)
184
+ end
185
+ define_method('statcast_arm_strength') do |**params|
186
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
187
+ request('mlb-statcast-arm-strength', params, response_type: response_type)
188
+ end
189
+ define_method('statcast_arm_strength_player') do |**params|
190
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
191
+ request('mlb-statcast-arm-strength-player', params, response_type: response_type)
192
+ end
193
+ define_method('statcast_arm_value') do |**params|
194
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
195
+ request('mlb-statcast-arm-value', params, response_type: response_type)
196
+ end
197
+ define_method('statcast_arm_value_details') do |**params|
198
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
199
+ request('mlb-statcast-arm-value-details', params, response_type: response_type)
200
+ end
201
+ define_method('statcast_baserunning') do |**params|
202
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
203
+ request('mlb-statcast-baserunning', params, response_type: response_type)
204
+ end
205
+ define_method('statcast_bat_tracking') do |**params|
206
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
207
+ request('mlb-statcast-bat-tracking', params, response_type: response_type)
208
+ end
209
+ define_method('statcast_batted_ball') do |**params|
210
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
211
+ request('mlb-statcast-batted-ball', params, response_type: response_type)
212
+ end
213
+ define_method('statcast_birthday_index') do |**params|
214
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
215
+ request('mlb-statcast-birthday-index', params, response_type: response_type)
216
+ end
217
+ define_method('statcast_catcher_blocking') do |**params|
218
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
219
+ request('mlb-statcast-catcher-blocking', params, response_type: response_type)
220
+ end
221
+ define_method('statcast_catcher_blocking_details') do |**params|
222
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
223
+ request('mlb-statcast-catcher-blocking-details', params, response_type: response_type)
224
+ end
225
+ define_method('statcast_catcher_framing') do |**params|
226
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
227
+ request('mlb-statcast-catcher-framing', params, response_type: response_type)
228
+ end
229
+ define_method('statcast_catcher_framing_details') do |**params|
230
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
231
+ request('mlb-statcast-catcher-framing-details', params, response_type: response_type)
232
+ end
233
+ define_method('statcast_catcher_pop_time') do |**params|
234
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
235
+ request('mlb-statcast-catcher-pop-time', params, response_type: response_type)
236
+ end
237
+ define_method('statcast_catcher_stance') do |**params|
238
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
239
+ request('mlb-statcast-catcher-stance', params, response_type: response_type)
240
+ end
241
+ define_method('statcast_catcher_throwing') do |**params|
242
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
243
+ request('mlb-statcast-catcher-throwing', params, response_type: response_type)
244
+ end
245
+ define_method('statcast_catcher_throwing_details') do |**params|
246
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
247
+ request('mlb-statcast-catcher-throwing-details', params, response_type: response_type)
248
+ end
249
+ define_method('statcast_expected') do |**params|
250
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
251
+ request('mlb-statcast-expected', params, response_type: response_type)
252
+ end
253
+ define_method('statcast_fielding_run_value') do |**params|
254
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
255
+ request('mlb-statcast-fielding-run-value', params, response_type: response_type)
256
+ end
257
+ define_method('statcast_first_base_receiving') do |**params|
258
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
259
+ request('mlb-statcast-first-base-receiving', params, response_type: response_type)
260
+ end
261
+ define_method('statcast_first_base_receiving_details') do |**params|
262
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
263
+ request('mlb-statcast-first-base-receiving-details', params, response_type: response_type)
264
+ end
265
+ define_method('statcast_home_runs') do |**params|
266
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
267
+ request('mlb-statcast-home-runs', params, response_type: response_type)
268
+ end
269
+ define_method('statcast_home_runs_details') do |**params|
270
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
271
+ request('mlb-statcast-home-runs-details', params, response_type: response_type)
272
+ end
273
+ define_method('statcast') do |**params|
274
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
275
+ request('mlb-statcast', params, response_type: response_type)
276
+ end
277
+ define_method('statcast_oaa') do |**params|
278
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
279
+ request('mlb-statcast-oaa', params, response_type: response_type)
280
+ end
281
+ define_method('statcast_park_factors') do |**params|
282
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
283
+ request('mlb-statcast-park-factors', params, response_type: response_type)
284
+ end
285
+ define_method('statcast_percentile') do |**params|
286
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
287
+ request('mlb-statcast-percentile', params, response_type: response_type)
288
+ end
289
+ define_method('statcast_pitch_arsenal') do |**params|
290
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
291
+ request('mlb-statcast-pitch-arsenal', params, response_type: response_type)
292
+ end
293
+ define_method('statcast_pitch_arsenal_details') do |**params|
294
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
295
+ request('mlb-statcast-pitch-arsenal-details', params, response_type: response_type)
296
+ end
297
+ define_method('statcast_pitch_arsenals') do |**params|
298
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
299
+ request('mlb-statcast-pitch-arsenals', params, response_type: response_type)
300
+ end
301
+ define_method('statcast_pitch_movement') do |**params|
302
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
303
+ request('mlb-statcast-pitch-movement', params, response_type: response_type)
304
+ end
305
+ define_method('statcast_pitch_tempo') do |**params|
306
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
307
+ request('mlb-statcast-pitch-tempo', params, response_type: response_type)
308
+ end
309
+ define_method('statcast_pitch_tempo_player') do |**params|
310
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
311
+ request('mlb-statcast-pitch-tempo-player', params, response_type: response_type)
312
+ end
313
+ define_method('statcast_pitch_timer') do |**params|
314
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
315
+ request('mlb-statcast-pitch-timer', params, response_type: response_type)
316
+ end
317
+ define_method('statcast_player_details') do |**params|
318
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
319
+ request('mlb-statcast-player-details', params, response_type: response_type)
320
+ end
321
+ define_method('statcast_rolling') do |**params|
322
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
323
+ request('mlb-statcast-rolling', params, response_type: response_type)
324
+ end
325
+ define_method('statcast_run_value') do |**params|
326
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
327
+ request('mlb-statcast-run-value', params, response_type: response_type)
328
+ end
329
+ define_method('statcast_running_game') do |**params|
330
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
331
+ request('mlb-statcast-running-game', params, response_type: response_type)
332
+ end
333
+ define_method('statcast_running_game_details') do |**params|
334
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
335
+ request('mlb-statcast-running-game-details', params, response_type: response_type)
336
+ end
337
+ define_method('statcast_sprint_speed') do |**params|
338
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
339
+ request('mlb-statcast-sprint-speed', params, response_type: response_type)
340
+ end
341
+ define_method('statcast_sprint_speed_teams') do |**params|
342
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
343
+ request('mlb-statcast-sprint-speed-teams', params, response_type: response_type)
344
+ end
345
+ define_method('statcast_swing_path') do |**params|
346
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
347
+ request('mlb-statcast-swing-path', params, response_type: response_type)
348
+ end
349
+ define_method('statcast_swing_timing') do |**params|
350
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
351
+ request('mlb-statcast-swing-timing', params, response_type: response_type)
352
+ end
353
+ define_method('statcast_swing_timing_details') do |**params|
354
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
355
+ request('mlb-statcast-swing-timing-details', params, response_type: response_type)
356
+ end
357
+ define_method('statcast_top_performers') do |**params|
358
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
359
+ request('mlb-statcast-top-performers', params, response_type: response_type)
360
+ end
361
+ define_method('statcast_year_to_year') do |**params|
362
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
363
+ request('mlb-statcast-year-to-year', params, response_type: response_type)
364
+ end
365
+ define_method('team_roster') do |**params|
366
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
367
+ request('mlb-team-roster', params, response_type: response_type)
368
+ end
369
+ define_method('team_stats') do |**params|
370
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
371
+ request('mlb-team-stats', params, response_type: response_type)
372
+ end
373
+ define_method('teams') do |**params|
374
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
375
+ request('mlb-teams', params, response_type: response_type)
376
+ end
377
+ define_method('transactions') do |**params|
378
+ response_type = params.delete(:response_type) || params.delete(:_response_type) || :auto
379
+ request('mlb-transactions', params, response_type: response_type)
380
+ end
381
+
382
+ private
383
+
384
+ # POST operations take their JSON body under the body parameter name or "body".
385
+ def request_body(operation, params)
386
+ name = operation["bodyParam"]
387
+ return nil if name.nil?
388
+ value = params.key?(name) ? params[name] : params["body"]
389
+ if value.nil?
390
+ raise Errors::ClientError.new("missing request body: #{name}", operation_id: operation["id"]) if operation["bodyRequired"]
391
+ return nil
392
+ end
393
+ value.is_a?(String) ? value : JSON.generate(value)
394
+ end
395
+
396
+ def build_url(operation, params)
397
+ known = operation["params"].map { |param| param["name"] }
398
+ known << "body" if operation["bodyParam"]
399
+ unknown = params.keys - known
400
+ raise Errors::ClientError.new("unknown parameters: #{unknown.join(', ')}", operation_id: operation["id"]) unless unknown.empty?
401
+ path = operation["path"].dup
402
+ operation["params"].select { |param| param["in"] == "path" }.each do |param|
403
+ value = params[param["name"]]
404
+ raise Errors::ClientError.new("missing path parameter: #{param['name']}", operation_id: operation["id"]) if value.nil?
405
+ path.sub!("{" + param["name"] + "}", percent_encode(value.to_s))
406
+ end
407
+ pairs = []
408
+ operation["queryParams"].each do |param|
409
+ name = param["name"]
410
+ value = params.key?(name) ? params[name] : param["default"]
411
+ if value.nil?
412
+ raise Errors::ClientError.new("missing query parameter: #{name}", operation_id: operation["id"]) if param["required"]
413
+ next
414
+ end
415
+ enum_values = param["enum"] || (param["items"] && param["items"]["enum"])
416
+ if enum_values && !(value.is_a?(Array) ? value : [value]).all? { |item| enum_values.map(&:to_s).include?(item.to_s) }
417
+ raise Errors::ClientError.new("invalid value for #{name}", operation_id: operation["id"])
418
+ end
419
+ if value.is_a?(Array)
420
+ format = param["collectionFormat"] || "csv"
421
+ if format == "multi"
422
+ value.each { |item| pairs << [name, scalar(item)] }
423
+ else
424
+ separator = {"csv" => ",", "ssv" => " ", "tsv" => "\t", "pipes" => "|"}[format] || ","
425
+ pairs << [name, value.map { |item| scalar(item) }.join(separator)]
426
+ end
427
+ else
428
+ pairs << [name, scalar(value)]
429
+ end
430
+ end
431
+ query = pairs.map { |name, value| "#{percent_encode(name)}=#{percent_encode(value)}" }.join("&")
432
+ @base_url + path + (query.empty? ? "" : "?" + query)
433
+ end
434
+
435
+ def scalar(value)
436
+ value == true ? "true" : (value == false ? "false" : value.to_s)
437
+ end
438
+
439
+ def percent_encode(value)
440
+ URI::DEFAULT_PARSER.escape(value.to_s, /[^A-Za-z0-9\-._~]/)
441
+ end
442
+
443
+ def parse_response(body, content_type, operation, params, response_type)
444
+ type = response_type.to_s
445
+ raise Errors::ClientError.new("response_type must be auto, json, or text", operation_id: operation["id"]) unless %w[auto json text].include?(type)
446
+ format = operation["params"].find { |param| param["name"] == "format" }
447
+ text_formats = format && format["enum"] ? format["enum"].reject { |value| %w[json application/json].include?(value.to_s.downcase) } : []
448
+ raw_format = params["format"] && text_formats.include?(params["format"].to_s)
449
+ json_format = format && format["enum"] && format["enum"].any? { |value| %w[json application/json].include?(value.to_s.downcase) } && %w[json application/json].include?(params["format"].to_s.downcase)
450
+ is_json = json_format || content_type.to_s.downcase.include?("json") || operation["produces"] == ["application/json"]
451
+ return body if type == "text" || raw_format || (type == "auto" && !is_json)
452
+ JSON.parse(body)
453
+ rescue JSON::ParserError => error
454
+ raise Errors::Error.new("invalid JSON response from Crawlora: #{error.message}", operation_id: operation["id"], body: body)
455
+ end
456
+
457
+ public
458
+ end
459
+ end
460
+ end