Skip to contents

Get ESPN NHL Season Draft Round Picks (core-v2)

Usage

espn_nhl_season_draft_round_picks(
  season = most_recent_nhl_season(),
  round_num = 1,
  limit = 100,
  ...
)

Arguments

season

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

round_num

Draft round number (default 1). Used to build the path seasons/{season}/draft/rounds/{round_num}/picks.

limit

Maximum picks to return per page (default 100).

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per draft pick, or an empty tibble when the endpoint is unavailable. The confirmed path is seasons/{season}/draft/rounds/{round_num}/picks; for NHL this returns HTTP 404 - the draft data is not served by the core-v2 sub-tree:

col_nametypesdescription
refcharacter$ref URL for the draft pick object.
pick_idcharacterPick id parsed from the $ref URL.
seasonintegerSeason year (echoed from arg).
round_numintegerRound number (echoed from arg).
countintegerTotal picks 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 an empty tibble for NHL (404 from ESPN)
  try(espn_nhl_season_draft_round_picks(season = 2025, round_num = 1))
#> ! 2026-11-13 21:27:20.523062: ESPN nhl season draft round picks for 2025 round 1 is not available (HTTP 404 is normal for NHL).
#> ! Warning: The API returned an error
#> data frame with 0 columns and 0 rows
# }