Skip to contents

Returns a list of all seasons from the Stats REST API.

Usage

nhl_stats_seasons(lang = "en")

Arguments

lang

Character language code. Default "en".

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
idintegerSeason identifier (YYYYYYYY).
all_star_game_in_useintegerWhether an All-Star Game was held this season.
conferences_in_useintegerWhether conferences were in use this season.
divisions_in_useintegerWhether divisions were in use this season.
end_datecharacterSeason end date.
entry_draft_in_useintegerWhether an entry draft was in use this season.
formatted_season_idcharacterHuman-readable season string (e.g. "2023-24").
minimum_playoff_minutes_for_goalie_stats_leadersintegerMinimum playoff minutes to qualify for goalie stats leaders.
minimum_regular_games_for_goalie_stats_leadersintegerMinimum regular-season games to qualify for goalie stats leaders.
nhl_stanley_cup_ownerintegerWhether the NHL owned the Stanley Cup this season.
number_of_gamesintegerNumber of games per team this season.
olympics_participationintegerWhether NHL players participated in the Olympics this season.
point_for_ot_loss_in_useintegerWhether the overtime-loss point was in use this season.
preseason_startdatecharacterPreseason start date.
regular_season_end_datecharacterRegular-season end date.
row_in_useintegerWhether the regulation/overtime/shootout format was in use.
season_ordinalintegerOrdinal sequence number of the season.
start_datecharacterSeason start date.
supplemental_draft_in_useintegerWhether a supplemental draft was in use this season.
ties_in_useintegerWhether ties were in use this season.
total_playoff_gamesintegerTotal number of playoff games this season.
total_regular_season_gamesintegerTotal number of regular-season games this season.
wildcard_in_useintegerWhether the wild-card playoff format was in use this season.

Examples

# \donttest{
  try(nhl_stats_seasons())
#> ── NHL Stats Seasons ────────────────────────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-06-13 04:22:08 UTC
#> # A tibble: 108 × 23
#>          id all_star_game_in_use conferences_in_use divisions_in_use end_date   
#>       <int>                <int>              <int>            <int> <chr>      
#>  1 19531954                    1                  0                0 1954-04-16…
#>  2 20162017                    1                  1                1 2017-06-11…
#>  3 19421943                    0                  0                0 1943-04-08…
#>  4 19231924                    0                  0                0 1924-03-25…
#>  5 19441945                    0                  0                0 1945-04-22…
#>  6 19451946                    0                  0                0 1946-04-09…
#>  7 19981999                    1                  1                1 1999-06-19…
#>  8 19691970                    1                  0                1 1970-05-10…
#>  9 19321933                    0                  0                1 1933-04-13…
#> 10 19461947                    1                  0                0 1947-04-19…
#> # ℹ 98 more rows
#> # ℹ 18 more variables: entry_draft_in_use <int>, formatted_season_id <chr>,
#> #   minimum_playoff_minutes_for_goalie_stats_leaders <int>,
#> #   minimum_regular_games_for_goalie_stats_leaders <int>,
#> #   nhl_stanley_cup_owner <int>, number_of_games <int>,
#> #   olympics_participation <int>, point_for_ot_loss_in_use <int>,
#> #   preseason_startdate <chr>, regular_season_end_date <chr>, …
# }