Skip to contents

Get NBA Stats API Live play-by-play

Get NBA Stats API Live play-by-play

Usage

nba_live_pbp(game_id, ...)

Arguments

game_id

Game ID

...

Additional arguments passed to an underlying function like httr.

Value

Returns a data frame: PlayByPlay

col_nametypes
event_numinteger
clockcharacter
time_actualcharacter
periodinteger
period_typecharacter
action_typecharacter
sub_typecharacter
qualifierslist
player1_idinteger
xnumeric
ynumeric
offense_team_idinteger
home_scorecharacter
away_scorecharacter
editedcharacter
orderinteger
is_target_score_last_periodlogical
x_legacyinteger
y_legacyinteger
is_field_goalinteger
sidecharacter
descriptioncharacter
person_ids_filterlist
team_idinteger
team_tricodecharacter
descriptorcharacter
jump_ball_recovered_namecharacter
jump_ball_recoverd_person_idinteger
player_namecharacter
player_name_icharacter
jump_ball_won_player_namecharacter
jump_ball_won_person_idinteger
jump_ball_lost_player_namecharacter
jump_ball_lost_person_idinteger
areacharacter
area_detailcharacter
shot_distancenumeric
shot_resultcharacter
points_totalinteger
assist_player_name_initialcharacter
assist_person_idinteger
assist_totalinteger
shot_action_numberinteger
rebound_totalinteger
rebound_defensive_totalinteger
rebound_offensive_totalinteger
official_idinteger
foul_personal_totalinteger
foul_technical_totalinteger
foul_drawn_player_namecharacter
foul_drawn_person_idinteger
block_player_namecharacter
block_person_idinteger
turnover_totalinteger
steal_player_namecharacter
steal_person_idinteger
player2_idinteger
player3_idinteger

Details

 nba_live_pbp(game_id = '0022201086')

See also

Other NBA PBP Functions: nba_data_pbp(), nba_pbps(), nba_pbp(), nba_winprobabilitypbp()

Other NBA Live Functions: nba_live_boxscore(), nba_todays_scoreboard()

Author

Saiem Gilani