Skip to contents

Returns the NHL Edge top-10 "iron-man / mileage" skating distance leaderboard for a given positions, strength, and sort_by combination. Wraps https://api-web.nhle.com/v1/edge/skater-distance-top-10/{positions}/{strength}/{sortBy}/.... When season is NULL (default) the /now endpoint is used to fetch the current season.

Usage

nhl_edge_skater_distance_top_10(
  positions,
  strength,
  sort_by,
  season = NULL,
  game_type = 2
)

Arguments

positions

Character positions filter accepted by the Edge API (e.g., "F" for forwards, "D" for defensemen).

strength

Character strength filter accepted by the Edge API (e.g., "all", "ev", "pp", "sh").

sort_by

Character sort-by key accepted by the Edge API (e.g., "total").

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 with the top-10 leaderboard, or NULL on failure / empty response.

Examples

# \donttest{
  try(nhl_edge_skater_distance_top_10(
      positions = "F",
      strength = "all",
      sort_by = "total"
  ))
#> ── NHL Edge Skater Distance Top 10 ──────────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-05-11 18:38:25 UTC
#> # A tibble: 10 × 64
#>    player_slug             player_headshot player_position player_sweater_number
#>    <chr>                   <chr>           <chr>                           <int>
#>  1 jack-eichel-8478403     https://assets… C                                   9
#>  2 kirill-kaprizov-8478864 https://assets… L                                  97
#>  3 nick-suzuki-8480018     https://assets… C                                  14
#>  4 leo-carlsson-8484153    https://assets… C                                  91
#>  5 mitch-marner-8478483    https://assets… R                                  93
#>  6 matt-boldy-8481557      https://assets… L                                  12
#>  7 christian-dvorak-84779… https://assets… C                                  22
#>  8 juraj-slafkovský-84835… https://assets… L                                  20
#>  9 travis-konecny-8478439  https://assets… R                                  11
#> 10 cole-caufield-8481540   https://assets… R                                  13
#> # ℹ 60 more variables: player_first_name_default <chr>,
#> #   player_first_name_cs <chr>, player_first_name_de <chr>,
#> #   player_first_name_es <chr>, player_first_name_fi <chr>,
#> #   player_first_name_sk <chr>, player_first_name_sv <chr>,
#> #   player_last_name_default <chr>, player_team_abbrev <chr>,
#> #   player_team_slug <chr>, player_team_common_name_default <chr>,
#> #   player_team_place_name_with_preposition_default <chr>, …
# }