Skip to contents

Get NBA Stats API Draft History

Usage

nba_drafthistory(
  league_id = "00",
  college = "",
  overall_pick = "",
  round_pick = "",
  round_num = "",
  season = most_recent_nba_season() - 1,
  team_id = "",
  top_x = "",
  ...
)

Arguments

league_id

league_id

college

college

overall_pick

overall_pick

round_pick

round_pick

round_num

round_num

season

season

team_id

team_id

top_x

top_x

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: DraftHistory

DraftHistory

col_nametypesdescription
PERSON_IDcharacterUnique player identifier (V3 endpoints).
PLAYER_NAMEcharacterPlayer name.
SEASONcharacterSeason identifier (4-digit year or 'YYYY-YY' string).
ROUND_NUMBERcharacterNumeric round.
ROUND_PICKcharacter
OVERALL_PICKcharacter
DRAFT_TYPEcharacter
TEAM_IDcharacterUnique team identifier.
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
ORGANIZATIONcharacter
ORGANIZATION_TYPEcharacter
PLAYER_PROFILE_FLAGcharacter

Author

Saiem Gilani