Skip to contents

Get NBA Stats API International Schedule

Get NBA Stats API International Schedule

Usage

nba_scheduleleaguev2int(
  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 - format: '2023-24'

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: SeasonGames, SeasonWeeks, BroadcasterList

SeasonGames

col_nametypesdescription
game_datecharacterGame date (YYYY-MM-DD).
game_idcharacterUnique game identifier.
game_codecharacterESPN game code (numeric identifier).
game_statuscharacterGame status label.
game_status_textcharacterGame status display text (e.g. 'Final', '4:32 - 4th').
game_sequencecharacterGame sequence.
home_team_idcharacterUnique identifier for the home team.
home_team_namecharacterHome team name.
home_team_citycharacterHome team city / location.
home_team_tricodecharacterHome team three-letter code.
home_team_slugcharacterHome team's team slug.
home_team_winscharacterHome team's team wins.
home_team_lossescharacterHome team's team losses.
home_team_scorecharacterHome team's score.
away_team_idcharacterUnique identifier for the away team.
away_team_namecharacterAway team name.
away_team_citycharacterAway team city / location.
away_team_tricodecharacterAway team three-letter code.
away_team_slugcharacterAway team's team slug.
away_team_winscharacterAway team's team wins.
away_team_lossescharacterAway team's team losses.
away_team_scorecharacterAway team's score.
seasoncharacterSeason identifier (4-digit year or 'YYYY-YY' string).
league_idcharacterLeague identifier ('10' = WNBA).

SeasonWeeks

col_nametypesdescription
league_idcharacterLeague identifier ('10' = WNBA).
season_yearcharacterSeason year string ('YYYY-YY' format).
week_numbercharacterWeek number.
week_namecharacterWeek name.
start_datecharacterStart date (YYYY-MM-DD).
end_datecharacterEnd date (YYYY-MM-DD).

BroadcasterList

col_nametypesdescription
league_idcharacterLeague identifier ('10' = WNBA).
season_yearcharacterSeason year string ('YYYY-YY' format).
broadcaster_abbreviationcharacterBroadcaster abbreviation.
broadcaster_displaycharacterBroadcaster display.
broadcaster_idcharacterUnique identifier for broadcaster.
region_idcharacterUnique identifier for region.

Details

Author

Saiem Gilani