Skip to contents

Get NBA Stats API Player Info

Get NBA Stats API Player Info

Usage

nba_commonplayerinfo(league_id = "00", player_id = "2544", ...)

Arguments

league_id

league_id

player_id

player_id

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: CommonPlayerInfo, PlayerHeadlineStats, AvailableSeasons

CommonPlayerInfo

col_nametypes
PERSON_IDcharacter
FIRST_NAMEcharacter
LAST_NAMEcharacter
DISPLAY_FIRST_LASTcharacter
DISPLAY_LAST_COMMA_FIRSTcharacter
DISPLAY_FI_LASTcharacter
PLAYER_SLUGcharacter
BIRTHDATEcharacter
SCHOOLcharacter
COUNTRYcharacter
LAST_AFFILIATIONcharacter
HEIGHTcharacter
WEIGHTcharacter
SEASON_EXPcharacter
JERSEYcharacter
POSITIONcharacter
ROSTERSTATUScharacter
GAMES_PLAYED_CURRENT_SEASON_FLAGcharacter
TEAM_IDcharacter
TEAM_NAMEcharacter
TEAM_ABBREVIATIONcharacter
TEAM_CODEcharacter
TEAM_CITYcharacter
PLAYERCODEcharacter
FROM_YEARcharacter
TO_YEARcharacter
DLEAGUE_FLAGcharacter
NBA_FLAGcharacter
GAMES_PLAYED_FLAGcharacter
DRAFT_YEARcharacter
DRAFT_ROUNDcharacter
DRAFT_NUMBERcharacter
GREATEST_75_FLAGcharacter

PlayerHeadlineStats

col_nametypes
PLAYER_IDcharacter
PLAYER_NAMEcharacter
TimeFramecharacter
PTScharacter
ASTcharacter
REBcharacter
PIEcharacter

AvailableSeasons

col_nametypes
SEASON_IDcharacter

Details

Player Info

 nba_commonplayerinfo(league_id = '00', player_id = '2544')

See also

Other NBA Roster Functions: nba_commonallplayers(), nba_commonteamroster()

Author

Saiem Gilani