Skip to contents

Returns the NHL Entry Draft listing from the NHL Records API (https://records.nhl.com/site/api/draft). Supports Cayenne filtering and pagination.

Usage

nhl_records_draft(cayenne_exp = NULL, limit = NULL, start = NULL)

Arguments

cayenne_exp

Optional Cayenne filter expression string (e.g. "draftYear=2015").

limit

Optional integer page size.

start

Optional integer pagination offset.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
idintegerUnique draft record identifier.
age_in_daysintegerPlayer age in days.
age_in_days_for_yearintegerPlayer age in days for the draft year.
age_in_yearsintegerPlayer age in years.
amateur_club_namecharacterAmateur club the player played for.
amateur_leaguecharacterAmateur league the player played in.
birth_datecharacterPlayer birth date.
birth_placecharacterPlayer birth place.
country_codecharacterPlayer country code.
cs_player_idintegerCentral Scouting player identifier.
draft_datecharacterDate the player was drafted.
draft_master_idintegerDraft master record identifier.
draft_yearintegerYear of the draft.
drafted_by_team_idintegerIdentifier of the drafting team.
first_namecharacterPlayer first name.
heightintegerPlayer height in inches.
last_namecharacterPlayer last name.
noteslogicalNotes flag for the pick.
overall_pick_numberintegerOverall pick number in the draft.
pick_in_roundintegerPick number within the round.
player_idintegerUnique player identifier.
player_namecharacterPlayer full name.
positioncharacterPlayer position.
removed_outrightcharacterRemoved-outright indicator.
removed_outright_whylogicalReason the pick was removed outright.
round_numberintegerDraft round number.
shoots_catchescharacterPlayer shooting/catching hand.
supplemental_draftcharacterSupplemental draft indicator.
team_pick_historycharacterHistory of the team's pick.
tri_codecharacterThree-letter team code.
weightintegerPlayer weight in pounds.

Examples

# \donttest{
  try(nhl_records_draft(cayenne_exp = "draftYear=2020", limit = 5))
#> ── NHL Records Draft ────────────────────────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-06-13 03:25:30 UTC
#> # A tibble: 5 × 31
#>      id age_in_days age_in_days_for_year age_in_years amateur_club_name
#>   <int>       <int>                <int>        <int> <chr>            
#> 1 18392        6935                  361           18 Rimouski         
#> 2 18393        6623                   48           18 Sudbury          
#> 3 18394        6839                  265           18 Mannheim         
#> 4 18395        6767                  192           18 Frolunda         
#> 5 18396        6665                   90           18 USA U-18         
#> # ℹ 26 more variables: amateur_league <chr>, birth_date <chr>,
#> #   birth_place <chr>, country_code <chr>, cs_player_id <int>,
#> #   draft_date <chr>, draft_master_id <int>, draft_year <int>,
#> #   drafted_by_team_id <int>, first_name <chr>, height <int>, last_name <chr>,
#> #   notes <lgl>, overall_pick_number <int>, pick_in_round <int>,
#> #   player_id <int>, player_name <chr>, position <chr>, removed_outright <chr>,
#> #   removed_outright_why <lgl>, round_number <int>, shoots_catches <chr>, …
# }