Skip to contents

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

Usage

nbagl_schedule(
  league_id = "20",
  season = year_to_season(most_recent_nba_season() - 1),
  ...
)

Arguments

league_id

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

season

Season - format 2020-21.

...

Additional arguments passed to an underlying function like httr.

Value

Returns a data frame of the G League Season Schedule

col_nametypesdescription
game_datedateGame date (YYYY-MM-DD).
game_idcharacterUnique game identifier.
game_codecharacterESPN game code (numeric identifier).
game_statusintegerGame status label.
game_status_textcharacterGame status display text (e.g. 'Final', '4:32 - 4th').
game_sequenceintegerGame sequence.
game_date_estcharacterGame date est.
game_time_estcharacterGame time est.
game_date_utccharacterGame date utc.
game_time_utccharacterGame start time in UTC (ISO 8601 timestamp).
arena_namecharacterArena name.
arena_statecharacterArena state.
arena_citycharacterArena city.
home_team_idcharacterUnique identifier for the home team.
home_team_namecharacterHome team name.
home_team_tricodecharacterHome team three-letter code.
home_team_scorecharacterHome team's score.
away_team_idcharacterUnique identifier for the away team.
away_team_namecharacterAway team name.
away_team_tricodecharacterAway team three-letter code.
away_team_scorecharacterAway team's score.
seasoncharacterSeason identifier (4-digit year or 'YYYY-YY' string).
league_idcharacterLeague identifier ('10' = WNBA).
season_type_idcharacterUnique identifier for season type.
season_type_descriptioncharacterSeason type description.

Details

Author

Billy Fryer