Skip to contents

Get NBA Stats API Season Schedule

Get NBA Stats API Season Schedule

Usage

nba_schedule(
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  ...
)

Arguments

league_id

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

season

Season

...

Additional arguments passed to an underlying function like httr.

Value

Returns a tibble with the following columns:

col_nametypes
game_datecharacter
game_idcharacter
game_codecharacter
game_statusinteger
game_status_textcharacter
game_sequenceinteger
game_date_estcharacter
game_time_estcharacter
game_date_time_estcharacter
game_date_utccharacter
game_time_utccharacter
game_date_time_utccharacter
away_team_timecharacter
home_team_timecharacter
daycharacter
month_numinteger
week_numberinteger
week_namecharacter
if_necessarycharacter
series_game_numbercharacter
series_textcharacter
arena_namecharacter
arena_statecharacter
arena_citycharacter
postponed_statuscharacter
branch_linkcharacter
game_subtypecharacter
home_team_idinteger
home_team_namecharacter
home_team_citycharacter
home_team_tricodecharacter
home_team_slugcharacter
home_team_winsinteger
home_team_lossesinteger
home_team_scoreinteger
home_team_seedinteger
away_team_idinteger
away_team_namecharacter
away_team_citycharacter
away_team_tricodecharacter
away_team_slugcharacter
away_team_winsinteger
away_team_lossesinteger
away_team_scoreinteger
away_team_seedinteger
seasoncharacter
league_idcharacter

Details

 nba_schedule(league_id = '00', season = year_to_season(most_recent_nba_season() - 1))
 nba_schedule(league_id = '20', season = year_to_season(most_recent_nba_season() - 1))

See also

Author

Saiem Gilani