Skip to contents

A player's game log in one division: one row per game played, with that game's whole stat line.

Endpoint: GET https://api.tpbl.basketball/api/players/{player_id}/games/stats

Usage

tpbl_player_games(player_id, division_id)

Arguments

player_id

Required. TPBL player id (one per person across seasons and teams); player_id in tpbl_roster. Not the GoHoops person id and not the roster id.

division_id

Required. TPBL division id (one competition phase of one season: 1, 2, 5, 6, 7 = 2024-25 preseason, regular season, playoffs, postseason challenge, finals; 8, 9, 11, 12, 35 = 2025-26; 655, 656 = 2026-27); division_id in tpbl_divisions. Not the GoHoops division id. Without it the API answers HTTP 422; an unknown id answers HTTP 500, which is not retried.

Value

A hoopR_data tibble: A player's game log in one division: one row per game played, with that game's whole stat line. An empty answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py tpbl_player_games):

col_nametypedescription
player_idintegerTPBL player id (key space: TPBL players; one per person across seasons and teams): the {player_id} of the player routes. Not the GoHoops person id and not the roster id.
gohoops_person_idintegerGoHoops person id (key space: GoHoops persons; one per human). Not the TPBL player id and not the roster id.
gohoops_roster_idintegerGoHoops roster id (key space: GoHoops rosters = one player registered with one squad in one season; it changes when the player changes season or team). His roster in the division: join tpbl_box_players to tpbl_roster on it. Not the TPBL player id and not the person id.
playercharacterPlayer name (Traditional Chinese, or a transliteration for foreign players).
division_idintegerTPBL division id (key space: TPBL divisions, one competition phase of one season; 1, 2, 5, 6, 7 = 2024-25, 8, 9, 11, 12, 35 = 2025-26, 655, 656 = 2026-27): the {division_id} of every division route. The division asked for. Not the GoHoops division id.
gohoops_division_idintegerGoHoops division id (key space: GoHoops divisions; e.g. 64 = the 2024-25 preseason, 65 = the 2024-25 regular season). Not the TPBL division id.
team_idintegerTPBL team id (key space: TPBL teams = franchises, 2-8 so far; stable across seasons): the {team_id} of the division team routes. Not the GoHoops franchise id and not the squad id. The team the player played for in that game.
teamcharacterName of the team the player played for in that game. Team name in Traditional Chinese with the sponsor (Kaohsiung Aquas, Formosa Dreamers, Hsinchu Lioneers, Taoyuan Leopards, New Taipei CTBC DEA, New Taipei Kings, Taipei Mars).
game_idintegerTPBL game id (key space: TPBL games on api.tpbl.basketball): the {game_id} of the game routes. Not sequential by date (2024-25 = 1-1367, 2025-26 = 1371-8641, 2026-27 = 27535-27667). The box score echoes no game id, so a box frame parsed without the request stamp has a null game_id.
gohoops_game_idintegerGoHoops game id (key space: GoHoops games; 1242 for TPBL game 6). Not the TPBL game id.
game_titlecharacterGame title: the division name and the game number counted from the end (<division name> Game 124 = regular season, game 124).
home_team_idintegerTPBL team id of the home team of the game (franchise, 2-8).
away_team_idintegerTPBL team id of the away team of the game (franchise, 2-8).
home_scoreintegerHome team final score in the game.
away_scoreintegerAway team final score in the game.
venuecharacterVenue name in Traditional Chinese (the API's game location).
tipoffPOSIXctScheduled tip-off as a naive timestamp (no zone). Taiwan local date and time (UTC+8 by every tip-off seen; the API sends no zone).
periods_playedintegerNumber of quarters in which the player was on court in this game.
scoreintegerPoints scored by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
reboundsintegerTotal rebounds by the player in the game of this row (accumulated_stats of a one-game row is that game's total) (offensive + defensive).
assistsintegerAssists by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
stealsintegerSteals by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
blocksintegerBlocked shots by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
turnoversintegerTurnovers committed by the player in the game of this row (accumulated_stats of a one-game row is that game's total); equals the sum of the *_turnovers type columns (checked on 4,237 played player lines of 189 games).
foulsintegerFouls charged by the player in the game of this row (accumulated_stats of a one-game row is that game's total): personal + technical + unsportsmanlike + disqualifying; equals defensive_fouls + offensive_fouls (checked on 4,237 played player lines of 189 games).
roster_foulsintegerFouls charged to the roster member by the player in the game of this row (accumulated_stats of a one-game row is that game's total); equals fouls in the committed samples (meaning inferred from the name).
bench_foulsintegerFouls charged to the bench by the player in the game of this row (accumulated_stats of a one-game row is that game's total); 0 in every committed sample (meaning inferred from the name).
time_on_courtintegerSeconds on court by the player in the game of this row (accumulated_stats of a one-game row is that game's total) (436 = 7:16). A team quarter sums its five players: 3600 = 5 x 720 s (12-minute quarter), 1500 = 5 x 300 s (5-minute overtime).
two_pointers_madeinteger2-point field goals made by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_missedinteger2-point field goals missed by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_attemptedinteger2-point field goals attempted by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_madeinteger3-point field goals made by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_missedinteger3-point field goals missed by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_attemptedinteger3-point field goals attempted by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
free_throws_madeintegerFree throws made by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
free_throws_missedintegerFree throws missed by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
free_throws_attemptedintegerFree throws attempted by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_madeintegerField goals made by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_missedintegerField goals missed by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_attemptedintegerField goals attempted by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_made_in_the_paintintegerField goals made in the paint by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_missed_in_the_paintintegerField goals missed in the paint by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_attempted_in_the_paintintegerField goals attempted in the paint by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_made_on_fast_breakintegerField goals made on the fast break by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_missed_on_fast_breakintegerField goals missed on the fast break by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_attempted_on_fast_breakintegerField goals attempted on the fast break by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_made_on_second_chanceintegerField goals made on a second chance (after an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_missed_on_second_chanceintegerField goals missed on a second chance (after an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
field_goals_attempted_on_second_chanceintegerField goals attempted on a second chance (after an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
defensive_reboundsintegerDefensive rebounds by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
offensive_reboundsintegerOffensive rebounds by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
offensive_foulsintegerFouls committed on offense by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
defensive_foulsintegerFouls committed on defense by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
personal_foulsintegerPersonal fouls by the player in the game of this row (accumulated_stats of a one-game row is that game's total) (excludes technical, unsportsmanlike and disqualifying fouls).
technical_foulsintegerTechnical fouls by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
unsportsmanlike_foulsintegerUnsportsmanlike fouls by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
disqualifying_foulsintegerDisqualifying fouls by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
bad_pass_turnoversintegerTurnovers of type 'bad pass' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
ball_handling_turnoversintegerTurnovers of type 'ball-handling error' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
out_of_bounds_turnoversintegerTurnovers of type 'out of bounds' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
travel_turnoversintegerTurnovers of type 'traveling' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_seconds_turnoversintegerTurnovers of type 'three-second violation' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
five_seconds_turnoversintegerTurnovers of type 'five-second violation' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
back_court_turnoversintegerTurnovers of type 'back-court violation' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
offensive_goal_tending_turnoversintegerTurnovers of type 'offensive goaltending' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
double_dribble_turnoversintegerTurnovers of type 'double dribble' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
carry_turnoversintegerTurnovers of type 'carrying' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
offensive_foul_turnoversintegerTurnovers of type 'offensive foul' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
other_turnoversintegerTurnovers of type 'other' by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
plus_minusintegerPlus/minus: the team's point differential while the player was on court (standard definition; not independently checked).
fast_break_pointsintegerPoints scored on the fast break by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
second_chance_pointsintegerPoints scored on second chances (after an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
points_in_paintintegerPoints scored in the paint by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
points_off_turnoversintegerPoints scored off opponent turnovers by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_jump_shot_madeinteger2-point field goals made that were a jump shot (standing or catch-and-shoot) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_jump_shot_missedinteger2-point field goals missed that were a jump shot (standing or catch-and-shoot) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_jump_shot_attemptedinteger2-point field goals attempted that were a jump shot (standing or catch-and-shoot) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_jump_shot_madeinteger3-point field goals made that were a jump shot (standing or catch-and-shoot) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_jump_shot_missedinteger3-point field goals missed that were a jump shot (standing or catch-and-shoot) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_jump_shot_attemptedinteger3-point field goals attempted that were a jump shot (standing or catch-and-shoot) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_layup_madeinteger2-point field goals made that were a layup by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_layup_missedinteger2-point field goals missed that were a layup by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_layup_attemptedinteger2-point field goals attempted that were a layup by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_driving_layup_madeinteger2-point field goals made that were a driving layup by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_driving_layup_missedinteger2-point field goals missed that were a driving layup by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_driving_layup_attemptedinteger2-point field goals attempted that were a driving layup by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_dunk_madeinteger2-point field goals made that were a dunk by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_dunk_missedinteger2-point field goals missed that were a dunk by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_dunk_attemptedinteger2-point field goals attempted that were a dunk by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_putback_dunk_madeinteger2-point field goals made that were a putback dunk (off an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_putback_dunk_missedinteger2-point field goals missed that were a putback dunk (off an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_putback_dunk_attemptedinteger2-point field goals attempted that were a putback dunk (off an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_putback_tip_in_madeinteger2-point field goals made that were a putback tip-in (off an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_putback_tip_in_missedinteger2-point field goals missed that were a putback tip-in (off an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_putback_tip_in_attemptedinteger2-point field goals attempted that were a putback tip-in (off an offensive rebound) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_alley_oop_madeinteger2-point field goals made that were a alley-oop by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_alley_oop_missedinteger2-point field goals missed that were a alley-oop by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_alley_oop_attemptedinteger2-point field goals attempted that were a alley-oop by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_hook_shot_madeinteger2-point field goals made that were a hook shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_hook_shot_missedinteger2-point field goals missed that were a hook shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_hook_shot_attemptedinteger2-point field goals attempted that were a hook shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_hook_shot_madeinteger3-point field goals made that were a hook shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_hook_shot_missedinteger3-point field goals missed that were a hook shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_hook_shot_attemptedinteger3-point field goals attempted that were a hook shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_floating_jump_shot_madeinteger2-point field goals made that were a floating jump shot (floater) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_floating_jump_shot_missedinteger2-point field goals missed that were a floating jump shot (floater) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_floating_jump_shot_attemptedinteger2-point field goals attempted that were a floating jump shot (floater) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_floating_jump_shot_madeinteger3-point field goals made that were a floating jump shot (floater) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_floating_jump_shot_missedinteger3-point field goals missed that were a floating jump shot (floater) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_floating_jump_shot_attemptedinteger3-point field goals attempted that were a floating jump shot (floater) by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_fadeaway_jump_shot_madeinteger2-point field goals made that were a fadeaway jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_fadeaway_jump_shot_missedinteger2-point field goals missed that were a fadeaway jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_fadeaway_jump_shot_attemptedinteger2-point field goals attempted that were a fadeaway jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_fadeaway_jump_shot_madeinteger3-point field goals made that were a fadeaway jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_fadeaway_jump_shot_missedinteger3-point field goals missed that were a fadeaway jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_fadeaway_jump_shot_attemptedinteger3-point field goals attempted that were a fadeaway jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_turnaround_jump_shot_madeinteger2-point field goals made that were a turnaround jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_turnaround_jump_shot_missedinteger2-point field goals missed that were a turnaround jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_turnaround_jump_shot_attemptedinteger2-point field goals attempted that were a turnaround jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_turnaround_jump_shot_madeinteger3-point field goals made that were a turnaround jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_turnaround_jump_shot_missedinteger3-point field goals missed that were a turnaround jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_turnaround_jump_shot_attemptedinteger3-point field goals attempted that were a turnaround jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_step_back_jump_shot_madeinteger2-point field goals made that were a step-back jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_step_back_jump_shot_missedinteger2-point field goals missed that were a step-back jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_step_back_jump_shot_attemptedinteger2-point field goals attempted that were a step-back jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_step_back_jump_shot_madeinteger3-point field goals made that were a step-back jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_step_back_jump_shot_missedinteger3-point field goals missed that were a step-back jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_step_back_jump_shot_attemptedinteger3-point field goals attempted that were a step-back jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_pull_up_jump_shot_madeinteger2-point field goals made that were a pull-up jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_pull_up_jump_shot_missedinteger2-point field goals missed that were a pull-up jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
two_pointers_pull_up_jump_shot_attemptedinteger2-point field goals attempted that were a pull-up jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_pull_up_jump_shot_madeinteger3-point field goals made that were a pull-up jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_pull_up_jump_shot_missedinteger3-point field goals missed that were a pull-up jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
three_pointers_pull_up_jump_shot_attemptedinteger3-point field goals attempted that were a pull-up jump shot by the player in the game of this row (accumulated_stats of a one-game row is that game's total).
efficiencyintegerEfficiency rating by the player in the game of this row (accumulated_stats of a one-game row is that game's total): (points + rebounds + assists + steals + blocks) - (missed field goals + missed free throws + turnovers); verified on all 4,237 played player lines of 189 games.
pirintegerPerformance index rating: efficiency minus fouls (the API's performance_index_rating; checked on 189 games of the box-score lines).
two_pointers_percentagedouble2-point field goals percentage , 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
three_pointers_percentagedouble3-point field goals percentage , 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
free_throws_percentagedoubleFree throws percentage , 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
field_goals_percentagedoubleField goals percentage , 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
turnovers_percentagedoubleTurnover percentage, 0-100 (a one-decimal string on the API; the exact formula is not documented).
efgdoubleEffective field-goal percentage, 0-100 (the API's effective_field_goals_percentage, a one-decimal string).
tspdoubleTrue-shooting percentage, 0-100 (the API's true_shooting_percentage, a one-decimal string).

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in tpbl_seasons().

 tpbl_player_games(player_id = 75, division_id = 2)