Get NBA Stats API play-by-play
Get NBA Stats API play-by-play
Arguments
- game_id
Game ID
- on_court
IF TRUE will be added ID of players on court
- version
Play-by-play version ("v2" available from 2016-17 onwards)
- p
Progress bar
- ...
Additional arguments passed to an underlying function like httr.
Value
Returns a data frame: PlayByPlay
col_name | types |
game_id | character |
event_num | character |
event_type | character |
event_action_type | character |
period | numeric |
minute_game | numeric |
time_remaining | numeric |
wc_time_string | character |
time_quarter | character |
minute_remaining_quarter | numeric |
seconds_remaining_quarter | numeric |
home_description | character |
neutral_description | character |
visitor_description | character |
score | character |
away_score | numeric |
home_score | numeric |
score_margin | character |
person1type | character |
player1_id | character |
player1_name | character |
player1_team_id | character |
player1_team_city | character |
player1_team_nickname | character |
player1_team_abbreviation | character |
person2type | character |
player2_id | character |
player2_name | character |
player2_team_id | character |
player2_team_city | character |
player2_team_nickname | character |
player2_team_abbreviation | character |
person3type | character |
player3_id | character |
player3_name | character |
player3_team_id | character |
player3_team_city | character |
player3_team_nickname | character |
player3_team_abbreviation | character |
video_available_flag | character |
team_leading | character |
away_player1 | numeric |
away_player2 | numeric |
away_player3 | numeric |
away_player4 | numeric |
away_player5 | numeric |
home_player1 | numeric |
home_player2 | numeric |
home_player3 | numeric |
home_player4 | numeric |
home_player5 | numeric |
Details
nba_pbp(game_id = '0022201086')
See also
Other NBA PBP Functions:
nba_data_pbp()
,
nba_live_pbp()
,
nba_pbps()
,
nba_winprobabilitypbp()