Skip to contents

Returns the NHL Edge save-percentage detail payload for a single goalie. Wraps https://api-web.nhle.com/v1/edge/goalie-save-percentage-detail/{playerId}/.... When season is NULL (default) the /now endpoint is used to fetch the current season.

Usage

nhl_edge_goalie_save_percentage_detail(player_id, season = NULL, game_type = 2)

Arguments

player_id

Integer NHL player ID (e.g., 8475883 for Andrei Vasilevskiy).

season

Optional 4-digit end-year (e.g., 2025 for the 2024-25 season), an 8-character API season (e.g., "20242025"), or NULL (default) for the current season via the /now endpoint.

game_type

Integer game type. 1 = preseason, 2 = regular season (default), 3 = playoffs.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
game_center_linkcharacterLink to the NHL game center page for the game.
save_pctgnumericSave percentage for the game.
game_datecharacterGame date.
decisioncharacterGoalie decision (win, loss, or overtime/shootout loss).
player_on_home_teamlogicalWhether the goalie played for the home team.
home_team_abbrevcharacterHome team abbreviation.
home_team_common_name_defaultcharacterHome team common name (default locale).
home_team_common_name_frcharacterHome team common name (French locale).
home_team_place_name_with_preposition_defaultcharacterHome team place name with preposition (default locale).
home_team_place_name_with_preposition_frcharacterHome team place name with preposition (French locale).
home_team_team_logo_lightcharacterHome team light-mode logo URL.
home_team_team_logo_darkcharacterHome team dark-mode logo URL.
away_team_abbrevcharacterAway team abbreviation.
away_team_common_name_defaultcharacterAway team common name (default locale).
away_team_place_name_with_preposition_defaultcharacterAway team place name with preposition (default locale).
away_team_place_name_with_preposition_frcharacterAway team place name with preposition (French locale).
away_team_team_logo_lightcharacterAway team light-mode logo URL.
away_team_team_logo_darkcharacterAway team dark-mode logo URL.

Returns NULL on failure / empty response.

Examples

# \donttest{
  try(nhl_edge_goalie_save_percentage_detail(player_id = 8475883))
#> ── NHL Edge Goalie Save Percentage Detail ───────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-07-12 18:41:33 UTC
#> # A tibble: 10 × 18
#>    game_center_link             save_pctg game_date decision player_on_home_team
#>    <chr>                            <dbl> <chr>     <chr>    <lgl>              
#>  1 /gamecenter/uta-vs-car/2026…     0.963 2026-04-… W        FALSE              
#>  2 /gamecenter/chi-vs-car/2026…     0.92  2026-04-… W        FALSE              
#>  3 /gamecenter/ott-vs-car/2026…     0.833 2026-04-… L        FALSE              
#>  4 /gamecenter/car-vs-cbj/2026…     0.9   2026-04-… W        TRUE               
#>  5 /gamecenter/car-vs-mtl/2026…     0.833 2026-03-… L        TRUE               
#>  6 /gamecenter/mtl-vs-car/2026…     0.778 2026-03-… L        FALSE              
#>  7 /gamecenter/pit-vs-car/2026…     0.947 2026-03-… W        FALSE              
#>  8 /gamecenter/car-vs-pit/2026…     0.857 2026-03-… W        TRUE               
#>  9 /gamecenter/tbl-vs-car/2026…     0.895 2026-03-… W        FALSE              
#> 10 /gamecenter/car-vs-pit/2026…     0.857 2026-03-… W        TRUE               
#> # ℹ 13 more variables: home_team_abbrev <chr>,
#> #   home_team_common_name_default <chr>, home_team_common_name_fr <chr>,
#> #   home_team_place_name_with_preposition_default <chr>,
#> #   home_team_place_name_with_preposition_fr <chr>,
#> #   home_team_team_logo_light <chr>, home_team_team_logo_dark <chr>,
#> #   away_team_abbrev <chr>, away_team_common_name_default <chr>,
#> #   away_team_place_name_with_preposition_default <chr>, …
# }