NHL (sportsdataverse.nhl)
Data sources
| Source | APIs / hosts | Functions | Auth |
|---|---|---|---|
| ESPN | cdn.espn.com, site.api.espn.com, site.web.api.espn.com +1 more | 119 | none |
| sportsdataverse-data releases | github.com | 32 | none |
| NHL Web API | api-web.nhle.com | 28 | none |
| NHL EDGE | api-web.nhle.com | 35 | none |
| NHL Stats REST | api.nhle.com | 21 | none |
| NHL Records | records.nhl.com | 50 | none |
| Fox Sports API | api.foxsports.com | 25 | none |
| Additional functions | hand-written wrappers & helpers | 87 | — |
ESPN
| Reference | Functions |
|---|---|
| ESPN site API (v2) | 24 |
| ESPN web API (v3) | 5 |
| ESPN core API (v2) | 82 |
| ESPN FPI API (fitt v3) | 1 |
| ESPN CDN API (cdn.espn.com) | 1 |
| Hand-written wrappers | 6 |
sportsdataverse-data releases
| Reference | Functions |
|---|---|
| sportsdataverse-data releases | 27 |
| Hand-written wrappers | 5 |
NHL Web API
| Reference | Functions |
|---|---|
| NHL Web API | 27 |
| Hand-written wrappers | 1 |
NHL EDGE
| Reference | Functions |
|---|---|
| NHL EDGE API | 35 |
NHL Stats REST
| Reference | Functions |
|---|---|
| NHL Stats REST API | 21 |
NHL Records
| Reference | Functions |
|---|---|
| NHL Records API | 44 |
| Hand-written wrappers | 6 |
Fox Sports API
| Reference | Functions |
|---|---|
| Hand-written wrappers | 25 |
Tools and helpers
Play-by-play processing
Models and calculators
ImpactConfigLeagueConstantsadd_shot_geometryadjust_rate_opponentas_of_ratings_splitbooster_cache_dirbrier_scorebuild_designbuild_stintscalibration_tableensure_xg_modelsget_constantsload_xg_modelslog_loss_scoremaenhl_expected_assistsnhl_goalie_gsaxnhl_skater_rapmnhl_skater_warnhl_team_ratingsnhl_unit_ratingsnhl_xgprepare_xg_featuresspearman_corrteam_fullname_to_abbrteam_game_xg_ratesweighted_ridge
Analytics
expected_goalsin_game_featuresnhl_edge_skating_valuenhl_faceoff_valuenhl_game_totalnhl_in_game_win_probnhl_penalty_valuenhl_player_propsnhl_predict_gamesnhl_special_teams_valuenhl_zone_transitionspredict_marginpredict_totalwin_prob_from_margin
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, fastRhockey. Same-named where possible; the R column links the package's pkgdown reference.