Skip to contents

Get ESPN NHL Season Groups (core-v2)

Usage

espn_nhl_season_groups(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 fastRhockey_data tibble with one row per group (conference or division):

col_nametypesdescription
refcharacter$ref URL for the group object.
group_idintegerGroup id parsed from the $ref URL.
seasonintegerSeason year (echoed from arg).
season_typeintegerSeason type code (echoed from arg).

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nhl_season_groups(season = 2026, season_type = 2))
#> ── NHL Season Groups data from ESPN core-v2 ─────────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:22 UTC
#> # A tibble: 2 × 4
#>   ref                                                group_id season season_type
#>   <chr>                                                 <int>  <int>       <int>
#> 1 http://sports.core.api.espn.com/v2/sports/hockey/…        7   2026           2
#> 2 http://sports.core.api.espn.com/v2/sports/hockey/…        8   2026           2
# }