Skip to contents

Get ESPN NHL Season Type (core-v2)

Usage

espn_nhl_season_type(season = most_recent_nhl_season(), season_type = 2, ...)

Arguments

season

Season end-year (e.g. 2026). Defaults to most_recent_nhl_season().

season_type

Season type code: 1=pre-season, 2=regular season, 3=post-season, 4=off-season. Defaults to 2.

...

Reserved for forward compatibility.

Value

A one-row fastRhockey_data tibble with season-type metadata:

col_nametypesdescription
seasonintegerSeason year (echoed from arg).
season_typeintegerSeason type code (echoed from arg).
idcharacterSeason type identifier.
typeintegerSeason type numeric code.
namecharacterSeason type name (e.g. "Regular Season").
abbreviationcharacterSeason type abbreviation (e.g. "reg").
slugcharacterSeason type slug (e.g. "regular-season").
yearintegerSeason year from the API.
start_datecharacterSeason type start date (ISO 8601).
end_datecharacterSeason type end date (ISO 8601).
has_groupslogicalWhether this season type has groups.
has_standingslogicalWhether this season type has standings.
has_legslogicalWhether this season type has legs.
groups_refcharacter$ref URL for the groups collection.
weeks_refcharacter$ref URL for the weeks collection.
corrections_refcharacter$ref URL for corrections.
leaders_refcharacter$ref URL for leaders.
type_refcharacter$ref URL for this season-type object.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nhl_season_type(season = 2026, season_type = 2))
#> ── NHL Season Type data from ESPN core-v2 ───────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:23 UTC
#> # A tibble: 1 × 18
#>   season season_type id     type name        abbreviation slug   year start_date
#>    <int>       <int> <chr> <int> <chr>       <chr>        <chr> <int> <chr>     
#> 1   2026           2 2         2 Regular Se… reg          regu…  2026 2025-10-0…
#> # ℹ 9 more variables: end_date <chr>, has_groups <lgl>, has_standings <lgl>,
#> #   has_legs <lgl>, groups_ref <chr>, weeks_ref <chr>, corrections_ref <chr>,
#> #   leaders_ref <chr>, type_ref <chr>
# }