Skip to contents

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

Usage

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

Arguments

player_id

Integer NHL player ID (e.g., 8478402 for Connor McDavid).

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 fastRhockey_data tibble of shot locations, or NULL on failure / empty response.

Examples

# \donttest{
  try(nhl_edge_skater_shot_location_detail(player_id = 8478402))
#> ── NHL Edge Skater Shot Location Detail ─────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-05-11 18:38:26 UTC
#> # A tibble: 17 × 7
#>    area                  sog goals shooting_pctg sog_percentile goals_percentile
#>    <chr>               <int> <int>         <dbl>          <dbl>            <dbl>
#>  1 Behind the Net          1     0           0            0.887            0    
#>  2 Beyond Red Line         0     0           0            0                0    
#>  3 Center Point            0     0           0            0                0    
#>  4 Crease                  1     0           0            0.688            0    
#>  5 High Slot               4     0           0            0.941            0    
#>  6 L Circle                4     0           0            0.914            0    
#>  7 L Corner                0     0           0            0                0    
#>  8 L Net Side              0     0           0            0                0    
#>  9 L Point                 0     0           0            0                0    
#> 10 Low Slot                3     0           0            0.466            0    
#> 11 Offensive Neutral …     1     0           0            0.747            0    
#> 12 Outside L               2     0           0            0.869            0    
#> 13 Outside R               2     1           0.5          0.828            0.946
#> 14 R Circle                1     0           0            0.430            0    
#> 15 R Corner                0     0           0            0                0    
#> 16 R Net Side              1     0           0            0.765            0    
#> 17 R Point                 0     0           0            0                0    
#> # ℹ 1 more variable: shooting_pctg_percentile <dbl>
# }