MLB (sportsdataverse.mlb)
Data sources
| Source | APIs / hosts | Functions | Auth |
|---|---|---|---|
| ESPN | cdn.espn.com, site.api.espn.com, site.web.api.espn.com +1 more | 122 | none |
| sportsdataverse-data releases | github.com | 32 | none |
| MLB Stats API | statsapi.mlb.com | 79 | none |
| Baseball Savant (Statcast) | baseballsavant.mlb.com | 43 | none |
| Fox Sports API | api.foxsports.com | 23 | none |
| Additional functions | hand-written wrappers & helpers | 100 | — |
ESPN
| Reference | Functions |
|---|---|
| ESPN site API (v2) | 24 |
| ESPN web API (v3) | 5 |
| ESPN core API (v2) | 83 |
| ESPN FPI API (fitt v3) | 1 |
| ESPN CDN API (cdn.espn.com) | 4 |
| Hand-written wrappers | 5 |
sportsdataverse-data releases
| Reference | Functions |
|---|---|
| sportsdataverse-data releases | 32 |
MLB Stats API
| Reference | Functions |
|---|---|
| MLB Stats API | 64 |
| Hand-written wrappers | 15 |
Baseball Savant (Statcast)
| Reference | Functions |
|---|---|
| MLB Statcast (Baseball Savant) | 39 |
| Hand-written wrappers | 4 |
Fox Sports API
| Reference | Functions |
|---|---|
| Hand-written wrappers | 23 |
Tools and helpers
Models and calculators
as_of_splitbuild_we_tablecount_strike_run_valueevent_run_valuemaemlb_batter_projectionmlb_command_plusmlb_expected_home_runsmlb_expected_statsmlb_pitch_classifymlb_prop_strikeoutsmlb_prop_team_runsmlb_propsmlb_pythagenpatmlb_pythagenpat_tablemlb_run_expectancy_matrixmlb_stuff_plusmlb_swing_decisionmlb_team_elomlb_team_projectionmlb_win_expectancymlb_win_probability_addedpbp_base_out_statespearson_corrprop_over_probspearman_corr
Analytics
add_sequence_featuresadvancement_opportunitiesbip_trajectory_featurescalled_strike_prob_gridcatch_prob_surfacefit_zone_modelmlb_baserunning_valuemlb_catcher_blockingmlb_catcher_framingmlb_catcher_throwingmlb_fielding_oaamlb_injury_riskmlb_pitch_eramlb_pitch_tunnelingmlb_sequence_run_valuemlb_stolen_base_valuemlb_times_through_ordermlb_umpire_biasmlb_umpire_called_strike_probpitch_featurespitcher_appearance_trendspredict_sb_successsb_attempts_from_pitchessb_success_surfacesiera_liketto_penalty_table
Dates and seasons
Examples
Worked examples — executed notebooks rendered as pages (refreshed weekly against the live APIs):
Python ↔ R parity
Each sportsdataverse function and its equivalent in the sister R package, baseballr. Same-named where possible; the R column links the package's pkgdown reference.