Skip to contents

Retrieves G-League player index data via the NBA Stats API player index endpoint.

Usage

nbagl_players(
  college = "",
  country = "",
  draft_pick = "",
  draft_round = "",
  draft_year = "",
  height = "",
  historical = 1,
  league_id = "20",
  player_position = "",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  team_id = "0",
  weight = "",
  active = "",
  all_star = "",
  ...
)

Arguments

college

College filter.

country

Country filter.

draft_pick

Draft pick filter.

draft_round

Draft round filter.

draft_year

Draft year filter.

height

Height filter.

historical

Historical flag.

league_id

League - default: '20' (G-League).

player_position

Player position filter.

season

Season - format 2020-21.

season_type

Season Type - Regular Season, Playoffs, All-Star.

team_id

Team ID filter.

weight

Weight filter.

active

Active status filter.

all_star

All-Star filter.

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: PlayerIndex

PlayerIndex

col_nametypesdescription
PERSON_IDcharacterUnique player identifier (V3 endpoints).
PLAYER_LAST_NAMEcharacter
PLAYER_FIRST_NAMEcharacter
PLAYER_SLUGcharacterURL-safe player identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_SLUGcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
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').
JERSEY_NUMBERcharacter
POSITIONcharacterListed roster position (G, F, C, etc.).
HEIGHTcharacterPlayer height (string e.g. '6-2' or inches).
WEIGHTcharacterPlayer weight in pounds.
COLLEGEcharacterCollege or school attended.
COUNTRYcharacterCountry (full name or code).
DRAFT_YEARcharacterDraft year (4-digit).
DRAFT_ROUNDcharacterRound of the draft selection.
DRAFT_NUMBERcharacter
ROSTER_STATUScharacter

Details

Author

Billy Fryer