
Get ESPN NHL Season Athletes (core-v2)
Source:R/espn_nhl_season_collections.R
espn_nhl_season_athletes.RdGet ESPN NHL Season Athletes (core-v2)
Usage
espn_nhl_season_athletes(
season = most_recent_nhl_season(),
limit = 100,
page = 1,
...
)Arguments
- season
Season end-year (e.g.
2026). Defaults tomost_recent_nhl_season().- limit
Number of athletes per page (default
100). The NHL season athlete list exceeds 11,000 entries across ~2,300 pages; usepageto iterate.- page
Page number (1-indexed, default
1). Check the returnedpage_countcolumn to determine how many pages are available.- ...
Reserved for forward compatibility.
Value
A fastRhockey_data tibble with one row per athlete reference for
the requested page:
| col_name | types | description |
| ref | character | $ref URL for the athlete-in-season object. |
| athlete_id | character | ESPN athlete id parsed from the $ref URL. |
| season | integer | Season year (echoed from arg). |
| page | integer | Page number (echoed from arg). |
| count | integer | Total athletes in the collection. |
| page_count | integer | Total pages in the collection. |
See also
family_espn_nhl lists every function in this family.
Examples
# \donttest{
try(espn_nhl_season_athletes(season = 2026, limit = 10, page = 1))
#> ── NHL Season Athletes data from ESPN core-v2 ───────────── fastRhockey 1.1.0 ──
#> ℹ Data updated: 2026-11-13 21:27:19 UTC
#> # A tibble: 10 × 6
#> ref athlete_id season page count page_count
#> <chr> <chr> <int> <int> <int> <int>
#> 1 http://sports.core.api.espn.com/v2/… 1 2026 1 11976 1198
#> 2 http://sports.core.api.espn.com/v2/… 2 2026 1 11976 1198
#> 3 http://sports.core.api.espn.com/v2/… 3 2026 1 11976 1198
#> 4 http://sports.core.api.espn.com/v2/… 4 2026 1 11976 1198
#> 5 http://sports.core.api.espn.com/v2/… 5 2026 1 11976 1198
#> 6 http://sports.core.api.espn.com/v2/… 6 2026 1 11976 1198
#> 7 http://sports.core.api.espn.com/v2/… 7 2026 1 11976 1198
#> 8 http://sports.core.api.espn.com/v2/… 8 2026 1 11976 1198
#> 9 http://sports.core.api.espn.com/v2/… 9 2026 1 11976 1198
#> 10 http://sports.core.api.espn.com/v2/… 10 2026 1 11976 1198
# }