Get NBA Stats API Player Game Logs
Get NBA Stats API Player Game Logs
Usage
nba_playergamelogs(
date_from = "",
date_to = "",
game_segment = "",
last_n_games = 0,
league_id = "00",
location = "",
measure_type = "Base",
month = 0,
opponent_team_id = 0,
outcome = "",
po_round = "",
per_mode = "Totals",
period = 0,
player_id = "2544",
season = year_to_season(most_recent_nba_season() - 1),
season_segment = "",
season_type = "Regular Season",
team_id = "",
vs_conference = "",
vs_division = "",
...
)Arguments
- date_from
date_from
- date_to
date_to
- game_segment
game_segment
- last_n_games
last_n_games
- league_id
League - default: '00'. Other options include '10': WNBA, '20': G-League
- location
location
- measure_type
measure_type
- month
month
- opponent_team_id
opponent_team_id
- outcome
outcome
- po_round
po_round
- per_mode
per_mode
- period
period
- player_id
Player ID
- season
Season - format 2020-21
- season_segment
season_segment
- season_type
Season Type - Regular Season, Playoffs, All-Star
- team_id
team_id
- vs_conference
vs_conference
- vs_division
vs_division
- ...
Additional arguments passed to an underlying function like httr.
Value
Return a named list of data frames: PlayerGameLogs
PlayerGameLogs
| col_name | types | description |
| SEASON_YEAR | character | Season year string ('YYYY-YY' format). |
| PLAYER_ID | character | Unique player identifier. |
| PLAYER_NAME | character | Player name. |
| NICKNAME | character | Team or athlete nickname. |
| TEAM_ID | character | Unique team identifier. |
| TEAM_ABBREVIATION | character | Short team abbreviation (e.g. 'LAS'). |
| TEAM_NAME | character | Full team display name (e.g. 'Las Vegas Aces'). |
| GAME_ID | character | Unique game identifier. |
| GAME_DATE | character | Game date (YYYY-MM-DD). |
| MATCHUP | character | Matchup. |
| WL | character | Wl. |
| MIN | character | Minutes played. |
| FGM | character | Field goals made. |
| FGA | character | Field goal attempts. |
| FG_PCT | character | Field goal percentage (0-1). |
| FG3M | character | Three-point field goals made. |
| FG3A | character | Three-point field goal attempts. |
| FG3_PCT | character | Three-point field goal percentage (0-1). |
| FTM | character | Free throws made. |
| FTA | character | Free throw attempts. |
| FT_PCT | character | Free throw percentage (0-1). |
| OREB | character | Offensive rebounds. |
| DREB | character | Defensive rebounds. |
| REB | character | Total rebounds. |
| AST | character | Assists. |
| TOV | character | Turnovers. |
| STL | character | Steals. |
| BLK | character | Blocks. |
| BLKA | character | |
| PF | character | Personal fouls. |
| PFD | character | |
| PTS | character | Points scored. |
| PLUS_MINUS | character | Plus/minus point differential while on court. |
| NBA_FANTASY_PTS | character | |
| DD2 | character | |
| TD3 | character | |
| WNBA_FANTASY_PTS | character | |
| GP_RANK | character | |
| W_RANK | character | |
| L_RANK | character | |
| W_PCT_RANK | character | |
| MIN_RANK | character | |
| FGM_RANK | character | |
| FGA_RANK | character | |
| FG_PCT_RANK | character | |
| FG3M_RANK | character | |
| FG3A_RANK | character | |
| FG3_PCT_RANK | character | |
| FTM_RANK | character | |
| FTA_RANK | character | |
| FT_PCT_RANK | character | |
| OREB_RANK | character | |
| DREB_RANK | character | |
| REB_RANK | character | |
| AST_RANK | character | |
| TOV_RANK | character | |
| STL_RANK | character | |
| BLK_RANK | character | |
| BLKA_RANK | character | |
| PF_RANK | character | |
| PFD_RANK | character | |
| PTS_RANK | character | |
| PLUS_MINUS_RANK | character | |
| NBA_FANTASY_PTS_RANK | character | |
| DD2_RANK | character | |
| TD3_RANK | character | |
| WNBA_FANTASY_PTS_RANK | character | |
| VIDEO_AVAILABLE_FLAG | character | Video available flag. |
See also
Other NBA Player Functions:
nba_infographicfanduelplayer(),
nba_leaguedashplayerbiostats(),
nba_leaguedashplayerclutch(),
nba_leaguedashplayershotlocations(),
nba_leaguedashplayerstats(),
nba_leagueplayerondetails(),
nba_leagueseasonmatchups(),
nba_matchupsrollup(),
nba_playerawards(),
nba_playercareerbycollege(),
nba_playercareerbycollegerollup(),
nba_playercareerstats(),
nba_playercompare(),
nba_playerdashboardbyclutch(),
nba_playerdashptpass(),
nba_playerdashptreb(),
nba_playerdashptshotdefend(),
nba_playerdashptshots(),
nba_playerestimatedmetrics(),
nba_playerfantasyprofile(),
nba_playerfantasyprofilebargraph(),
nba_playergamelog(),
nba_playergamestreakfinder(),
nba_playerheadshot(),
nba_playerindex(),
nba_playernextngames(),
nba_playerprofilev2(),
nba_playervsplayer()
