
NHL Edge Skater Skating Distance Detail
Source:R/nhl_edge_skater_skating_distance_detail.R
nhl_edge_skater_skating_distance_detail.RdReturns the NHL Edge skating-distance detail payload for a
single skater (distance covered, strides, etc.). Wraps
https://api-web.nhle.com/v1/edge/skater-skating-distance-detail/{playerId}/....
When season is NULL (default) the /now endpoint is used to
fetch the current season.
Arguments
- player_id
Integer NHL player ID (e.g.,
8478402for Connor McDavid).- season
Optional 4-digit end-year (e.g.,
2025for the 2024-25 season), an 8-character API season (e.g.,"20242025"), orNULL(default) for the current season via the/nowendpoint.- game_type
Integer game type. 1 = preseason, 2 = regular season (default), 3 = playoffs.
Value
A data frame (fastRhockey_data) with the following columns:
| col_name | types | description |
| game_center_link | character | Link to the NHL game center page. |
| game_date | character | Game date. |
| player_on_home_team | logical | Whether the player was on the home team. |
| toi_all | integer | Total time on ice across all strengths (seconds). |
| toi_even | integer | Time on ice at even strength (seconds). |
| toi_pk | integer | Time on ice on the penalty kill (seconds). |
| toi_pp | integer | Time on ice on the power play (seconds). |
| distance_skated_all_imperial | numeric | Distance skated at all strengths in miles. |
| distance_skated_all_metric | numeric | Distance skated at all strengths in kilometers. |
| distance_skated_even_imperial | numeric | Distance skated at even strength in miles. |
| distance_skated_even_metric | numeric | Distance skated at even strength in kilometers. |
| distance_skated_pk_imperial | numeric | Distance skated on the penalty kill in miles. |
| distance_skated_pk_metric | numeric | Distance skated on the penalty kill in kilometers. |
| home_team_abbrev | character | Home team abbreviation. |
| home_team_slug | character | Home team URL slug. |
| home_team_common_name_default | character | Home team common name. |
| home_team_place_name_with_preposition_default | character | Home team place name with preposition (English). |
| home_team_place_name_with_preposition_fr | character | Home team place name with preposition (French). |
| home_team_team_logo_light | character | Home team light logo URL. |
| home_team_team_logo_dark | character | Home team dark logo URL. |
| away_team_abbrev | character | Away team abbreviation. |
| away_team_slug | character | Away team URL slug. |
| away_team_common_name_default | character | Away team common name. |
| away_team_place_name_with_preposition_default | character | Away team place name with preposition (English). |
| away_team_place_name_with_preposition_fr | character | Away team place name with preposition (French). |
| away_team_team_logo_light | character | Away team light logo URL. |
| away_team_team_logo_dark | character | Away team dark logo URL. |
| distance_skated_pp_imperial | numeric | Distance skated on the power play in miles. |
| distance_skated_pp_metric | numeric | Distance skated on the power play in kilometers. |
Examples
# \donttest{
try(nhl_edge_skater_skating_distance_detail(player_id = 8478402))
#> ── NHL Edge Skater Skating Distance Detail ──────────────── fastRhockey 1.0.0 ──
#> ℹ Data updated: 2026-06-13 03:25:07 UTC
#> # A tibble: 6 × 29
#> game_center_link game_date player_on_home_team toi_all toi_even toi_pk toi_pp
#> <chr> <chr> <lgl> <int> <int> <int> <int>
#> 1 /gamecenter/edm-… 2026-04-… FALSE 1489 1407 82 NA
#> 2 /gamecenter/ana-… 2026-04-… TRUE 1449 1118 NA 331
#> 3 /gamecenter/edm-… 2026-04-… FALSE 1172 999 113 60
#> 4 /gamecenter/edm-… 2026-04-… FALSE 1430 1201 54 175
#> 5 /gamecenter/ana-… 2026-04-… TRUE 1447 924 110 413
#> 6 /gamecenter/ana-… 2026-04-… TRUE 1490 1214 51 225
#> # ℹ 22 more variables: distance_skated_all_imperial <dbl>,
#> # distance_skated_all_metric <dbl>, distance_skated_even_imperial <dbl>,
#> # distance_skated_even_metric <dbl>, distance_skated_pk_imperial <dbl>,
#> # distance_skated_pk_metric <dbl>, home_team_abbrev <chr>,
#> # home_team_slug <chr>, home_team_common_name_default <chr>,
#> # home_team_place_name_with_preposition_default <chr>,
#> # home_team_place_name_with_preposition_fr <chr>, …
# }