Skip to contents

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

Usage

nhl_edge_team_skating_speed_detail(team_id, season = NULL, game_type = 2)

Arguments

team_id

Integer NHL team ID (e.g., 10 for Toronto Maple Leafs).

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.
game_datecharacterGame date.
game_typeintegerGame type code (2 = regular, 3 = playoffs).
is_home_teamlogicalWhether the player's team was the home team.
time_in_periodcharacterTime in the period the top speed was recorded.
player_idintegerUnique player identifier.
player_slugcharacterPlayer URL slug.
player_first_name_defaultcharacterPlayer first name.
player_last_name_defaultcharacterPlayer last name.
skating_speed_imperialnumericTop skating speed in miles per hour.
skating_speed_metricnumericTop skating speed in kilometers per hour.
period_descriptor_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (REG, OT, SO).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.
home_team_common_name_defaultcharacterHome team common name.
home_team_place_name_with_preposition_defaultcharacterHome team place name with preposition.
home_team_place_name_with_preposition_frcharacterHome team place name with preposition (French).
home_team_team_logo_lightcharacterHome team light logo URL.
home_team_team_logo_darkcharacterHome team dark logo URL.
away_team_common_name_defaultcharacterAway team common name.
away_team_place_name_with_preposition_defaultcharacterAway team place name with preposition.
away_team_place_name_with_preposition_frcharacterAway team place name with preposition (French).
away_team_team_logo_lightcharacterAway team light logo URL.
away_team_team_logo_darkcharacterAway team dark logo URL.

Examples

# \donttest{
  try(nhl_edge_team_skating_speed_detail(team_id = 10))
#> ── NHL Edge Team Skating Speed Detail ───────────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-02 03:51:00 UTC
#> # A tibble: 10 × 30
#>    game_center_link    game_date game_type is_home_team time_in_period player_id
#>    <chr>               <chr>         <int> <lgl>        <chr>              <int>
#>  1 /gamecenter/nyr-vs… 2026-10-…         2 TRUE         04:58            8478458
#>  2 /gamecenter/tor-vs… 2026-10-…         2 FALSE        16:15            8478458
#>  3 /gamecenter/tor-vs… 2026-10-…         2 FALSE        02:05            8486067
#>  4 /gamecenter/sjs-vs… 2026-10-…         2 TRUE         05:25            8478458
#>  5 /gamecenter/tor-vs… 2026-10-…         2 FALSE        03:00            8479520
#>  6 /gamecenter/sjs-vs… 2026-10-…         2 TRUE         09:37            8479968
#>  7 /gamecenter/tor-vs… 2026-10-…         2 FALSE        04:23            8479520
#>  8 /gamecenter/tor-vs… 2026-10-…         2 FALSE        04:17            8480893
#>  9 /gamecenter/buf-vs… 2026-10-…         2 TRUE         09:34            8479772
#> 10 /gamecenter/tor-vs… 2026-10-…         2 FALSE        03:13            8486067
#> # ℹ 24 more variables: player_slug <chr>, player_first_name_default <chr>,
#> #   player_last_name_default <chr>, player_last_name_cs <chr>,
#> #   player_last_name_fi <chr>, player_last_name_sk <chr>,
#> #   player_last_name_de <chr>, player_last_name_es <chr>,
#> #   player_last_name_sv <chr>, skating_speed_imperial <dbl>,
#> #   skating_speed_metric <dbl>, period_descriptor_number <int>,
#> #   period_descriptor_period_type <chr>, …
# }