Skip to contents

Get NBA Stats API Player Next N Games

Get NBA Stats API Player Next N Games

Usage

nba_playernextngames(
  league_id = "",
  number_of_games = 2147483647,
  player_id = "2544",
  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

number_of_games

N in number of games

player_id

Player ID

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: NextNGames

NextNGames

col_nametypes
GAME_IDcharacter
GAME_DATEcharacter
HOME_TEAM_IDcharacter
VISITOR_TEAM_IDcharacter
HOME_TEAM_NAMEcharacter
VISITOR_TEAM_NAMEcharacter
HOME_TEAM_ABBREVIATIONcharacter
VISITOR_TEAM_ABBREVIATIONcharacter
HOME_TEAM_NICKNAMEcharacter
VISITOR_TEAM_NICKNAMEcharacter
GAME_TIMEcharacter
HOME_WLcharacter
VISITOR_WLcharacter

Details

 nba_playernextngames(player_id = '2544')

Author

Saiem Gilani