Skip to contents

Get ESPN NHL Season Power Index (core-v2)

Usage

espn_nhl_season_powerindex(
  season = most_recent_nhl_season(),
  team_id = NULL,
  ...
)

Arguments

season

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

team_id

Optional ESPN team identifier (character or numeric). When provided, fetches power-index data for a single team. Defaults to NULL (collection for all teams).

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per power-index entry, or an empty tibble when no data is available. Note: ESPN does not publish power-index data for NHL - this endpoint consistently returns empty results for hockey:

col_nametypesdescription
refcharacter$ref URL for the power-index object.
powerindex_idcharacterPower-index id parsed from the $ref URL.
seasonintegerSeason year (echoed from arg).
team_idcharacterTeam id (echoed from arg, if supplied).
countintegerTotal entries 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{
  # NOTE: Returns empty tibble for NHL (ESPN does not publish powerindex for hockey)
  try(espn_nhl_season_powerindex(season = 2026))
#> ! 2026-11-13 21:27:22.975667: ESPN nhl season powerindex for 2026 not available (not published for NHL).
#> ! Warning: The API returned an error
#> data frame with 0 columns and 0 rows
# }