-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
PlayerBattingStatsandPlayerPitchingStats - Columns exist but are not populated
- MLB Stats API
trackingandmetricAveragesendpoints 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
- Identify reliable data source for Statcast metrics
- Create ingestion service for Statcast data
- Populate existing schema columns with real data
- Add tests for new ingestion logic
Related
- Depends on: Advanced stats ingestion from MLB API (in progress)
- Schema:
PlayerBattingStats,PlayerPitchingStatsadvanced columns
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels