Skip to contents

Get ESPN NHL Season Group Children (core-v2)

Usage

espn_nhl_season_group_children(
  season = most_recent_nhl_season(),
  season_type = 2,
  group_id,
  ...
)

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. Defaults to 2.

group_id

ESPN group identifier (integer or character). Pass a conference-level group_id from espn_nhl_season_groups() to retrieve its child divisions.

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per child group (division under a conference). Conference-level groups typically have 2 division children each:

col_nametypesdescription
refcharacter$ref URL for the child group object.
child_group_idcharacterChild group id parsed from the $ref URL.
seasonintegerSeason year (echoed from arg).
season_typeintegerSeason type code (echoed from arg).
group_idintegerParent group id (echoed from arg).
countintegerTotal children in the collection.
page_countintegerTotal pages in the collection.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try({
    grps <- espn_nhl_season_groups(season = 2026, season_type = 2)
    espn_nhl_season_group_children(season = 2026, season_type = 2,
                                    group_id = grps$group_id[1])
  })
#> ── NHL Season Group Children data from ESPN core-v2 ─────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:21 UTC
#> # A tibble: 2 × 7
#>   ref                child_group_id season season_type group_id count page_count
#>   <chr>              <chr>           <int>       <int>    <int> <int>      <int>
#> 1 http://sports.cor… 32               2026           2        7     2          1
#> 2 http://sports.cor… 33               2026           2        7     2          1
# }