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-06-13 07:19:58 UTC
#> # A tibble: 10 × 17
#>    game_center_link             save_pctg game_date player_on_home_team decision
#>    <chr>                            <dbl> <chr>     <lgl>               <chr>   
#>  1 /gamecenter/vgk-vs-car/2026…     0.75  2026-06-… FALSE               NA      
#>  2 /gamecenter/car-vs-vgk/2026…     0.885 2026-06-… TRUE                W       
#>  3 /gamecenter/car-vs-vgk/2026…     0.783 2026-06-… TRUE                L       
#>  4 /gamecenter/car-vs-mtl/2026…     0.958 2026-05-… TRUE                W       
#>  5 /gamecenter/mtl-vs-car/2026…     1     2026-05-… FALSE               W       
#>  6 /gamecenter/mtl-vs-car/2026…     0.846 2026-05-… FALSE               W       
#>  7 /gamecenter/car-vs-mtl/2026…     0.833 2026-05-… TRUE                W       
#>  8 /gamecenter/car-vs-mtl/2026…     0.762 2026-05-… TRUE                L       
#>  9 /gamecenter/phi-vs-car/2026…     0.882 2026-05-… FALSE               W       
#> 10 /gamecenter/phi-vs-car/2026…     0.947 2026-05-… FALSE               W       
#> # ℹ 12 more variables: home_team_abbrev <chr>,
#> #   home_team_common_name_default <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>, …
# }