Skip to contents

Per-quarter team lines of both teams: points scored and conceded in the quarter, running totals and stats.

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

Usage

tpbl_box_team_periods(game_id)

Arguments

game_id

Required. TPBL game id (integer), e.g. 6; game_id in tpbl_games. Not sequential by date (2024-25 = 1-1367, 2025-26 = 1371-8641, 2026-27 = 27535-27667). Only a finished game is served.

Value

A hoopR_data tibble: Per-quarter team lines of both teams: points scored and conceded in the quarter, running totals and stats. An empty answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py tpbl_box_team_periods):

col_nametypedescription
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.
sidecharacterSide of the game: home or away (the API lists the home team first and never infers it from the venue).
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.
teamcharacterTeam name in Traditional Chinese with the sponsor (Kaohsiung Aquas, Formosa Dreamers, Hsinchu Lioneers, Taoyuan Leopards, New Taipei CTBC DEA, New Taipei Kings, Taipei Mars).
gohoops_squad_idintegerGoHoops squad id (key space: GoHoops squads = one team in one season: 8209-8215 in 2024-25, 11931-11937 in 2025-26, 15536-15542 in 2026-27; it changes every season).
periodintegerQuarter number of the row: 1-4 regulation, 5 = the first overtime, 6 = the second.
won_scoreintegerTeam-row field: points the team scored in this quarter alone. Player stat lines carry no value for it.
time_on_courtintegerSeconds on court by the team in this quarter (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).
lost_scoreintegerTeam-row field: points the team conceded in this quarter alone. Not a player stat.
total_won_scoreintegerTeam-row field: points the team has scored up to and including this quarter (the last quarter's value is the final score). Not a player stat.
total_lost_scoreintegerTeam-row field: points the team has conceded up to and including this quarter. Not a player stat.
field_goals_madeintegerField goals made by the team in this quarter.
field_goals_missedintegerField goals missed by the team in this quarter.
field_goals_attemptedintegerField goals attempted by the team in this quarter.
field_goals_percentagedoubleField goals percentage by the team in this quarter, 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
two_pointers_madeinteger2-point field goals made by the team in this quarter.
two_pointers_missedinteger2-point field goals missed by the team in this quarter.
two_pointers_attemptedinteger2-point field goals attempted by the team in this quarter.
two_pointers_percentagedouble2-point field goals percentage by the team in this quarter, 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
three_pointers_madeinteger3-point field goals made by the team in this quarter.
three_pointers_missedinteger3-point field goals missed by the team in this quarter.
three_pointers_attemptedinteger3-point field goals attempted by the team in this quarter.
three_pointers_percentagedouble3-point field goals percentage by the team in this quarter, 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
free_throws_madeintegerFree throws made by the team in this quarter.
free_throws_missedintegerFree throws missed by the team in this quarter.
free_throws_attemptedintegerFree throws attempted by the team in this quarter.
free_throws_percentagedoubleFree throws percentage by the team in this quarter, 0-100 as a string with one decimal ('57.1'); '0.0' without attempts.
reboundsintegerTotal rebounds by the team in this quarter (offensive + defensive).
defensive_reboundsintegerDefensive rebounds by the team in this quarter.
offensive_reboundsintegerOffensive rebounds by the team in this quarter.
defensive_foulsintegerFouls committed on defense by the team in this quarter.
offensive_foulsintegerFouls committed on offense by the team in this quarter.
personal_foulsintegerPersonal fouls by the team in this quarter (excludes technical, unsportsmanlike and disqualifying fouls).
foulsintegerFouls charged by the team in this quarter: personal + technical + unsportsmanlike + disqualifying; equals defensive_fouls + offensive_fouls (checked on 4,237 played player lines of 189 games).
assistsintegerAssists by the team in this quarter.
stealsintegerSteals by the team in this quarter.
blocksintegerBlocked shots by the team in this quarter.
turnoversintegerTurnovers committed by the team in this quarter; equals the sum of the *_turnovers type columns (checked on 4,237 played player lines of 189 games).
points_in_paintintegerPoints scored in the paint by the team in this quarter.
second_chance_pointsintegerPoints scored on second chances (after an offensive rebound) by the team in this quarter.
fast_break_pointsintegerPoints scored on the fast break by the team in this quarter.

Details

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

 tpbl_box_team_periods(game_id = 6)