Skip to contents

Get NBA Stats API Player Fantasy Profile

Get NBA Stats API Player Fantasy Profile

Usage

nba_playerfantasyprofile(
  league_id = "00",
  measure_type = "Base",
  pace_adjust = "N",
  per_mode = "Totals",
  player_id = "2544",
  plus_minus = "N",
  rank = "N",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  ...
)

Arguments

league_id

League - default: '00'. Other options include '10': WNBA, '20': G-League

measure_type

measure_type

pace_adjust

Pace Adjustment - Y/N

per_mode

Per Mode - PerGame, Totals

player_id

Player ID

plus_minus

Plus Minus - Y/N

rank

Rank - Y/N

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs, All-Star

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: DaysRestModified, LastNGames, Location, Opponent, Overall

Overall

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
DD2character
TD3character
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter

Location

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
DD2character
TD3character
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter

LastNGames

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
DD2character
TD3character
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter

DaysRestModified

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
SEASON_YEARcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
DD2character
TD3character
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter

Opponent

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
DD2character
TD3character
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter

Details

 nba_playerfantasyprofile(player_id = '2544')

Author

Saiem Gilani