Sample scores
NBABOS 108NYK 104Q4 2:14LAL 87GSW 91Q3 1:42MIA 52CHI 48Q2 0:36
EPLARS 2CHE 12H 74:12LIV 1MCI 12H 58:06AVL 0FUL 01H 19:34
NHLNYR 3BOS 2P3 7:26TOR 1MTL 0P2 12:02SEA 2DAL 2P3 10:15
Explore the sports data API quickstart
blog

Reading a box score without losing the game

A practical guide to player lines, team totals, and the small differences that matter in a stats interface.

2026-11-29 · PreciseData · 2 min read

A result tells you which side finished ahead. A box score tells you how the recorded contributions were distributed. The difference matters when a reader clicks from a scoreboard into a game detail page.

Give each row a subject

In a basketball box score, a player's points, assists, and rebounds describe that player's line. A team row describes the team. Keep the two kinds of rows separate in your model. Adding a team total to a sum of player rows can double the value on a chart.

Keep the event ID with every row as well. A player's season average and their line in one game can use the same column heading while answering different questions. On a game page, the event and player IDs make that context explicit.

Preserve the denominator

A shooting percentage summarizes makes and attempts. Imagine one appearance with one make on one attempt and another with one make on nine attempts. Together, the player made two of ten. Averaging the two game percentages gives a different result.

If a table may later support season totals, store makes and attempts. Compute the displayed percentage from the totals for the selected games. A row with no attempts can show a dash in the percentage column while still showing zero attempts.

Keep a missing value visible

A recorded zero belongs in a total. An unreported field tells the reader that the total may be incomplete. Preserve that difference from the first import through the final table. A player who did not appear also deserves a different label from a player who appeared and recorded zero points.

Offer the sequence separately

The box score can identify the leading scorer, but a sequence of plays is needed to tell how a lead changed hands. A game page can support both readings by linking from team totals to the play timeline when the competition carries full coverage. Coverage levels · Box score reference