Summary
The MLB Stats API provides sabermetric stats (WAR, wOBA, wRC+, FIP, xFIP) and expected statistics (xBA, xSLG, xwOBA), but does not include Statcast-specific metrics. These need to be sourced from Baseball Savant.
Missing Metrics
Batting
- Exit Velocity (avg)
- Launch Angle (avg)
- Barrel %
- Hard Hit %
- Sprint Speed
- Sweet Spot %
Pitching
- Exit Velocity Against (avg)
- Spin Rate (avg by pitch type)
- Extension
- Vertical/Horizontal Movement
Current State
- Schema already has columns for these metrics in
PlayerBattingStats and PlayerPitchingStats
- Columns exist but are not populated
- MLB Stats API
tracking and metricAverages endpoints return empty/error responses
Proposed Solution
Investigate Baseball Savant data sources:
- CSV Downloads: https://baseballsavant.mlb.com/leaderboard/custom provides downloadable CSVs
- Statcast Search API: May have endpoints for individual player data
- Third-party libraries: Some wrapper libraries may provide access
Acceptance Criteria
Related
- Depends on: Advanced stats ingestion from MLB API (in progress)
- Schema:
PlayerBattingStats, PlayerPitchingStats advanced columns
Summary
The MLB Stats API provides sabermetric stats (WAR, wOBA, wRC+, FIP, xFIP) and expected statistics (xBA, xSLG, xwOBA), but does not include Statcast-specific metrics. These need to be sourced from Baseball Savant.
Missing Metrics
Batting
Pitching
Current State
PlayerBattingStatsandPlayerPitchingStatstrackingandmetricAveragesendpoints return empty/error responsesProposed Solution
Investigate Baseball Savant data sources:
Acceptance Criteria
Related
PlayerBattingStats,PlayerPitchingStatsadvanced columns