
Get ESPN NHL Season Draft (core-v2)
Source:R/espn_nhl_season_collections.R
espn_nhl_season_draft.RdGet ESPN NHL Season Draft (core-v2)
Usage
espn_nhl_season_draft(season = most_recent_nhl_season(), ...)Arguments
- season
Season end-year (e.g.
2025). Defaults tomost_recent_nhl_season().- ...
Reserved for forward compatibility.
Value
A fastRhockey_data tibble with draft round references, or an
empty tibble when the endpoint is unavailable (HTTP 404 is normal for
NHL - the draft sub-tree is not served by this core-v2 path):
| col_name | types | description |
| ref | character | $ref URL for the draft round object (if returned). |
| draft_id | character | Draft/round id parsed from the $ref URL. |
| season | integer | Season year (echoed from arg). |
See also
family_espn_nhl lists every function in this family.
Examples
# \donttest{
# NOTE: Returns an empty tibble for NHL (404 from ESPN)
try(espn_nhl_season_draft(season = 2025))
#> ! 2026-11-13 21:27:20.322798: ESPN nhl season draft for 2025 is not available (HTTP 404 is normal for NHL).
#> ! Warning: The API returned an error
#> data frame with 0 columns and 0 rows
# }