Skip to contents

Get NBA G-League Stats API Live play-by-play

Get NBA G-League Stats API Live play-by-play

Usage

nbagl_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_nametypesdescription
event_numintegerSequential event number within the game (V2 PBP).
clockcharacterGame clock value.
time_actualcharacterTime actual.
periodintegerPeriod of the game (1-4 quarters; 5+ for OT).
period_typecharacterPeriod type.
action_typecharacterAction type label (e.g. 'Made Shot', 'Substitution').
sub_typecharacterAction sub-type label.
qualifierslistQualifiers.
player1_idintegerV2 PBP primary player ID (e.g. shooter / fouler).
xnumericX.
ynumericY.
offense_team_idintegerUnique identifier for offense team.
home_scorecharacterHome team score at the time of the play.
away_scorecharacterAway team score at the time of the play.
editedcharacterEdited.
orderintegerDisplay order within the result set.
is_target_score_last_periodlogicalIs target score last period.
x_legacyintegerV2-format X coordinate (preserved for V3-to-V2 compatibility).
y_legacyintegerV2-format Y coordinate (preserved for V3-to-V2 compatibility).
is_field_goalinteger1 if the action was a field goal; 0 otherwise.
sidecharacterSide label (e.g. 'home', 'away', or 'overUnder').
descriptioncharacterLong-form description text.
person_ids_filterlistPerson ids filter.
team_idintegerUnique team identifier.
team_tricodecharacterThree-letter team code (e.g. 'LAS' / 'NYL').
descriptorcharacterDescriptor.
jump_ball_recovered_namecharacterJump ball recovered name.
jump_ball_recoverd_person_idintegerUnique identifier for jump ball recoverd person.
player_namecharacterPlayer name.
player_name_icharacterPlayer name i.
jump_ball_won_player_namecharacterJump ball won player name.
jump_ball_won_person_idintegerUnique identifier for jump ball won person.
jump_ball_lost_player_namecharacterJump ball lost player name.
jump_ball_lost_person_idintegerUnique identifier for jump ball lost person.
areacharacterArea.
area_detailcharacterArea detail.
shot_distancenumericShot distance from the basket, in feet.
shot_resultcharacterShot result ('Made' / 'Missed').
points_totalintegerRunning total of points scored.
assist_player_name_initialcharacterAssist player name initial.
assist_person_idintegerUnique identifier for assist person.
assist_totalintegerAssist total.
shot_action_numberintegerShot action number.
rebound_totalintegerRebound total.
rebound_defensive_totalintegerRebound defensive total.
rebound_offensive_totalintegerRebound offensive total.
official_idintegerUnique official / referee identifier.
foul_personal_totalintegerFoul personal total.
foul_technical_totalintegerFoul technical total.
foul_drawn_player_namecharacterFoul drawn player name.
foul_drawn_person_idintegerUnique identifier for foul drawn person.
block_player_namecharacterBlock player name.
block_person_idintegerUnique identifier for block person.
turnover_totalintegerTurnover total.
steal_player_namecharacterSteal player name.
steal_person_idintegerUnique identifier for steal person.
player2_idintegerV2 PBP secondary player ID (e.g. assister / fouled-by).
player3_idintegerV2 PBP tertiary player ID (e.g. blocker).

Details

 nbagl_live_pbp(game_id = '2052500034')

Author

Saiem Gilani