Skip to contents

Get NBA Stats API League Game Log

Get NBA Stats API League Game Log

Get NBA Stats API League Standings

Get NBA Stats API League Standings

Get NBA Stats API League Standings V3

Get NBA Stats API League Standings V3

Get NBA Stats API Playoff Picture

Get NBA Stats API Playoff Picture

Get NBA Stats API League Game Streak Finder

Get NBA Stats API League Game Streak Finder

Get NBA Stats API In-Season Tournament Standings

Get NBA Stats API In-Season Tournament Standings

Usage

nba_leaguegamelog(
  counter = 0,
  date_from = "",
  date_to = "",
  direction = "ASC",
  league_id = "00",
  player_or_team = "T",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  sorter = "DATE",
  ...
)

nba_leaguestandings(
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  season_year = "",
  ...
)

nba_leaguestandingsv3(
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  season_year = "",
  ...
)

nba_playoffpicture(league_id = "00", season_id = "22022", ...)

nba_leaguegamefinder(
  conference = "",
  date_from = "",
  date_to = "",
  division = "",
  draft_year = "",
  draft_team_id = "",
  draft_round = "",
  draft_number = "",
  et_ast = "",
  et_blk = "",
  et_dd = "",
  et_dreb = "",
  et_fg3a = "",
  et_fg3m = "",
  et_fg3_pct = "",
  et_fga = "",
  et_fgm = "",
  et_fg_pct = "",
  et_fta = "",
  et_ftm = "",
  et_ft_pct = "",
  et_minutes = "",
  et_oreb = "",
  et_pf = "",
  et_pts = "",
  et_reb = "",
  et_stl = "",
  et_td = "",
  et_tov = "",
  game_id = "",
  gt_ast = "",
  gt_blk = "",
  gt_dd = "",
  gt_dreb = "",
  gt_fg3a = "",
  gt_fg3m = "",
  gt_fg3_pct = "",
  gt_fga = "",
  gt_fgm = "",
  gt_fg_pct = "",
  gt_fta = "",
  gt_ftm = "",
  gt_ft_pct = "",
  gt_minutes = "",
  gt_oreb = "",
  gt_pf = "",
  gt_pts = "",
  gt_reb = "",
  gt_stl = "",
  gt_td = "",
  gt_tov = "",
  league_id = "00",
  location = "",
  lt_ast = "",
  lt_blk = "",
  lt_dd = "",
  lt_dreb = "",
  lt_fg3a = "",
  lt_fg3m = "",
  lt_fg3_pct = "",
  lt_fga = "",
  lt_fgm = "",
  lt_fg_pct = "",
  lt_fta = "",
  lt_ftm = "",
  lt_ft_pct = "",
  lt_minutes = "",
  lt_oreb = "",
  lt_pf = "",
  lt_pts = "",
  lt_reb = "",
  lt_stl = "",
  lt_td = "",
  lt_tov = "",
  outcome = "",
  po_round = "",
  player_id = "",
  player_or_team = "T",
  rookie_year = "",
  season = year_to_season(most_recent_nba_season() - 1),
  season_segment = "",
  season_type = "Regular Season",
  starter_bench = "",
  team_id = "",
  vs_conference = "",
  vs_division = "",
  vs_team_id = "",
  years_experience = "",
  ...
)

nba_iststandings(
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  section = "group",
  ...
)

Arguments

counter

counter

date_from

date_from

date_to

date_to

direction

direction

league_id

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

player_or_team

player_or_team

season

Season - format: '2023-24'

season_type

season_type

sorter

sorter

...

Additional arguments passed to an underlying function like httr.

season_year

season_year

season_id

season_id

conference

conference

division

division

draft_year

draft_year

draft_team_id

draft_team_id

draft_round

draft_round

draft_number

draft_number

et_ast

et_ast

et_blk

et_blk

et_dd

et_dd

et_dreb

et_dreb

et_fg3a

et_fg3a

et_fg3m

et_fg3m

et_fg3_pct

et_fg3_pct

et_fga

et_fga

et_fgm

et_fgm

et_fg_pct

et_fg_pct

et_fta

et_fta

et_ftm

et_ftm

et_ft_pct

et_ft_pct

et_minutes

et_minutes

et_oreb

et_oreb

et_pf

et_pf

et_pts

et_pts

et_reb

et_reb

et_stl

et_stl

et_td

et_td

et_tov

et_tov

game_id

game_id

gt_ast

gt_ast

gt_blk

gt_blk

gt_dd

gt_dd

gt_dreb

gt_dreb

gt_fg3a

gt_fg3a

gt_fg3m

gt_fg3m

gt_fg3_pct

gt_fg3_pct

gt_fga

gt_fga

gt_fgm

gt_fgm

gt_fg_pct

gt_fg_pct

gt_fta

gt_fta

gt_ftm

gt_ftm

gt_ft_pct

gt_ft_pct

gt_minutes

gt_minutes

gt_oreb

gt_oreb

gt_pf

gt_pf

gt_pts

gt_pts

gt_reb

gt_reb

gt_stl

gt_stl

gt_td

gt_td

gt_tov

gt_tov

location

location

lt_ast

lt_ast

lt_blk

lt_blk

lt_dd

lt_dd

lt_dreb

lt_dreb

lt_fg3a

lt_fg3a

lt_fg3m

lt_fg3m

lt_fg3_pct

lt_fg3_pct

lt_fga

lt_fga

lt_fgm

lt_fgm

lt_fg_pct

lt_fg_pct

lt_fta

lt_fta

lt_ftm

lt_ftm

lt_ft_pct

lt_ft_pct

lt_minutes

lt_minutes

lt_oreb

lt_oreb

lt_pf

lt_pf

lt_pts

lt_pts

lt_reb

lt_reb

lt_stl

lt_stl

lt_td

lt_td

lt_tov

lt_tov

outcome

outcome

po_round

po_round

player_id

player_id

rookie_year

rookie_year

season_segment

season_segment

starter_bench

starter_bench

team_id

team_id

vs_conference

vs_conference

vs_division

vs_division

vs_team_id

vs_team_id

years_experience

years_experience

section

Section filter - 'group' or 'knockout'

Value

Return a named list of data frames: LeagueGameLog

LeagueGameLog

col_nametypesdescription
SEASON_IDcharacterUnique season identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
GAME_IDcharacterUnique game identifier.
GAME_DATEcharacterGame date (YYYY-MM-DD).
MATCHUPcharacterMatchup.
WLcharacterWl.
MINcharacterMinutes played.
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).
FG3McharacterThree-point field goals made.
FG3AcharacterThree-point field goal attempts.
FG3_PCTcharacterThree-point field goal percentage (0-1).
FTMcharacterFree throws made.
FTAcharacterFree throw attempts.
FT_PCTcharacterFree throw percentage (0-1).
OREBcharacterOffensive rebounds.
DREBcharacterDefensive rebounds.
REBcharacterTotal rebounds.
ASTcharacterAssists.
STLcharacterSteals.
BLKcharacterBlocks.
TOVcharacterTurnovers.
PFcharacterPersonal fouls.
PTScharacterPoints scored.
PLUS_MINUScharacterPlus/minus point differential while on court.
VIDEO_AVAILABLEcharacterVideo available.

Return a named list of data frames: Standings

Standings

col_nametypesdescription
LeagueIDcharacter
SeasonIDcharacter
TeamIDcharacterTeamid.
TeamCitycharacterTeamcity.
TeamNamecharacterTeamname.
ConferencecharacterConference.
ConferenceRecordcharacter
PlayoffRankcharacter
ClinchIndicatorcharacter
DivisioncharacterTeam division.
DivisionRecordcharacter
DivisionRankcharacter
WINScharacterTotal wins.
LOSSEScharacterTotal losses.
WinPCTcharacter
LeagueRankcharacter
RecordcharacterRecord string (e.g. '12-4').
HOMEcharacterHome.
ROADcharacterRoad.
L10character
Last10Homecharacter
Last10Roadcharacter
OTcharacterOt.
ThreePTSOrLesscharacter
TenPTSOrMorecharacter
LongHomeStreakcharacter
strLongHomeStreakcharacter
LongRoadStreakcharacter
strLongRoadStreakcharacter
LongWinStreakcharacter
LongLossStreakcharacter
CurrentHomeStreakcharacter
strCurrentHomeStreakcharacter
CurrentRoadStreakcharacter
strCurrentRoadStreakcharacter
CurrentStreakcharacter
strCurrentStreakcharacter
ConferenceGamesBackcharacter
DivisionGamesBackcharacter
ClinchedConferenceTitlecharacter
ClinchedDivisionTitlecharacter
ClinchedPlayoffBirthcharacter
EliminatedConferencecharacter
EliminatedDivisioncharacter
AheadAtHalfcharacter
BehindAtHalfcharacter
TiedAtHalfcharacter
AheadAtThirdcharacter
BehindAtThirdcharacter
TiedAtThirdcharacter
Score100PTScharacter
OppScore100PTScharacter
OppOver500character
LeadInFGPCTcharacter
LeadInRebcharacter
FewerTurnoverscharacter
PointsPGcharacter
OppPointsPGcharacter
DiffPointsPGcharacter
vsEastcharacter
vsAtlanticcharacter
vsCentralcharacter
vsSoutheastcharacter
vsWestcharacter
vsNorthwestcharacter
vsPacificcharacter
vsSouthwestcharacter
Jancharacter
Febcharacter
Marcharacter
Aprcharacter
Maycharacter
Juncharacter
Julcharacter
Augcharacter
Sepcharacter
Octcharacter
Novcharacter
Deccharacter
PreAScharacter
PostAScharacter

Return a named list of data frames: Standings

Standings

col_nametypesdescription
LeagueIDcharacter
SeasonIDcharacter
TeamIDcharacterTeamid.
TeamCitycharacterTeamcity.
TeamNamecharacterTeamname.
TeamSlugcharacter
ConferencecharacterConference.
ConferenceRecordcharacter
PlayoffRankcharacter
ClinchIndicatorcharacter
DivisioncharacterTeam division.
DivisionRecordcharacter
DivisionRankcharacter
WINScharacterTotal wins.
LOSSEScharacterTotal losses.
WinPCTcharacter
LeagueRankcharacter
RecordcharacterRecord string (e.g. '12-4').
HOMEcharacterHome.
ROADcharacterRoad.
L10character
Last10Homecharacter
Last10Roadcharacter
OTcharacterOt.
ThreePTSOrLesscharacter
TenPTSOrMorecharacter
LongHomeStreakcharacter
strLongHomeStreakcharacter
LongRoadStreakcharacter
strLongRoadStreakcharacter
LongWinStreakcharacter
LongLossStreakcharacter
CurrentHomeStreakcharacter
strCurrentHomeStreakcharacter
CurrentRoadStreakcharacter
strCurrentRoadStreakcharacter
CurrentStreakcharacter
strCurrentStreakcharacter
ConferenceGamesBackcharacter
DivisionGamesBackcharacter
ClinchedConferenceTitlecharacter
ClinchedDivisionTitlecharacter
ClinchedPlayoffBirthcharacter
ClinchedPlayIncharacter
EliminatedConferencecharacter
EliminatedDivisioncharacter
AheadAtHalfcharacter
BehindAtHalfcharacter
TiedAtHalfcharacter
AheadAtThirdcharacter
BehindAtThirdcharacter
TiedAtThirdcharacter
Score100PTScharacter
OppScore100PTScharacter
OppOver500character
LeadInFGPCTcharacter
LeadInRebcharacter
FewerTurnoverscharacter
PointsPGcharacter
OppPointsPGcharacter
DiffPointsPGcharacter
vsEastcharacter
vsAtlanticcharacter
vsCentralcharacter
vsSoutheastcharacter
vsWestcharacter
vsNorthwestcharacter
vsPacificcharacter
vsSouthwestcharacter
Jancharacter
Febcharacter
Marcharacter
Aprcharacter
Maycharacter
Juncharacter
Julcharacter
Augcharacter
Sepcharacter
Octcharacter
Novcharacter
Deccharacter
Score_80_Pluscharacter
Opp_Score_80_Pluscharacter
Score_Below_80character
Opp_Score_Below_80character
TotalPointscharacter
OppTotalPointscharacter
DiffTotalPointscharacter

Return a named list of data frames: EastConfPlayoffPicture, EastConfRemainingGames, EastConfStandings, WestConfPlayoffPicture, WestConfRemainingGames, WestConfStandings

EastConfPlayoffPicture

col_nametypesdescription
CONFERENCEcharacterConference.
HIGH_SEED_RANKcharacter
HIGH_SEED_TEAMcharacter
HIGH_SEED_TEAM_IDcharacter
LOW_SEED_RANKcharacter
LOW_SEED_TEAMcharacter
LOW_SEED_TEAM_IDcharacter
HIGH_SEED_SERIES_Wcharacter
HIGH_SEED_SERIES_Lcharacter
HIGH_SEED_SERIES_REMAINING_Gcharacter
HIGH_SEED_SERIES_REMAINING_HOME_Gcharacter
HIGH_SEED_SERIES_REMAINING_AWAY_Gcharacter

WestConfPlayoffPicture

Same columns as the EastConfPlayoffPicture table above.

EastConfStandings

col_nametypesdescription
CONFERENCEcharacterConference.
RANKcharacterRank.
TEAMcharacterTeam-side label or team identifier.
TEAM_SLUGcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
TEAM_IDcharacterUnique team identifier.
WINScharacterTotal wins.
LOSSEScharacterTotal losses.
PCTcharacterPct.
DIVcharacter
CONFcharactercharacter.
HOMEcharacterHome.
AWAYcharacter
GBcharacter
GR_OVER_500character
GR_OVER_500_HOMEcharacter
GR_OVER_500_AWAYcharacter
GR_UNDER_500character
GR_UNDER_500_HOMEcharacter
GR_UNDER_500_AWAYcharacter
RANKING_CRITERIAcharacter
CLINCHED_PLAYOFFScharacter
CLINCHED_CONFERENCEcharacter
CLINCHED_DIVISIONcharacter
ELIMINATED_PLAYOFFScharacter
SOSA_REMAININGcharacter

WestConfStandings

Same columns as the EastConfStandings table above.

EastConfRemainingGames

col_nametypesdescription
TEAMcharacterTeam-side label or team identifier.
TEAM_IDcharacterUnique team identifier.
REMAINING_Gcharacter
REMAINING_HOME_Gcharacter
REMAINING_AWAY_Gcharacter

WestConfRemainingGames

Same columns as the EastConfRemainingGames table above.

Return a named list of data frames: LeagueGameFinderResults

LeagueGameFinderResults

col_nametypesdescription
SEASON_IDcharacterUnique season identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
GAME_IDcharacterUnique game identifier.
GAME_DATEcharacterGame date (YYYY-MM-DD).
MATCHUPcharacterMatchup.
WLcharacterWl.
MINcharacterMinutes played.
PTScharacterPoints scored.
FGMcharacterField goals made.
FGAcharacterField goal attempts.
FG_PCTcharacterField goal percentage (0-1).
FG3McharacterThree-point field goals made.
FG3AcharacterThree-point field goal attempts.
FG3_PCTcharacterThree-point field goal percentage (0-1).
FTMcharacterFree throws made.
FTAcharacterFree throw attempts.
FT_PCTcharacterFree throw percentage (0-1).
OREBcharacterOffensive rebounds.
DREBcharacterDefensive rebounds.
REBcharacterTotal rebounds.
ASTcharacterAssists.
STLcharacterSteals.
BLKcharacterBlocks.
TOVcharacterTurnovers.
PFcharacterPersonal fouls.
PLUS_MINUScharacterPlus/minus point differential while on court.

Returns a named list of data frames: Standings

Standings

col_nametypesdescription
league_idcharacterLeague identifier ('10' = WNBA).
season_yearcharacterSeason year string ('YYYY-YY' format).
team_idcharacterUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
team_slugcharacterURL-safe team identifier (e.g. 'lasvegas-aces' / 'aces').
conferencecharacterConference.
ist_groupcharacterIst group.
clinch_indicatorcharacterPlayoff clinch indicator (e.g. 'x' clinched playoff, 'e' eliminated).
clinched_ist_knockoutcharacterClinched ist knockout.
clinched_ist_groupcharacterClinched ist group.
clinched_ist_wildcardcharacterClinched ist wildcard.
ist_wildcard_rankcharacterLeague/season rank for ist wildcard.
ist_group_rankcharacterLeague/season rank for ist group.
ist_knockout_rankcharacterLeague/season rank for ist knockout.
winscharacterTotal wins.
lossescharacterTotal losses.
pctcharacterPct.
ist_group_gbcharacterIst group gb.
ist_wildcard_gbcharacterIst wildcard gb.
diffcharacterDiff.
ptscharacterPoints scored.
opp_ptscharacterOpponent points.

See also

Other NBA League Functions: nba_fantasywidget(), nba_leaguedashoppptshot(), nba_shotchartdetail()

Other NBA Game Finder Functions: nba_playerindex(), nba_teams()

Author

Saiem Gilani