Fix

NBA team turnovers not matching player totals

Short answer: in an NBA box score, the team turnover total can be higher than the sum of its players' turnovers, because some turnovers are charged to the team and not to a player. Points and rebounds still match. Use the team total for possessions and the player lines for player rates.

The symptoms

A reconciliation script that sums players and compares with the team row will flag a few lines. People notice it like this:

  • A validation check on box scores passes for points and rebounds and fails on turnovers for about half the games.
  • The gap is always small, one or two turnovers, never more.
  • A team's possessions estimate disagrees by a fraction of a possession with a number built from player lines.
  • A team turnover rate from team rows is slightly higher than the same rate built from players, and the difference is stable across the season.
  • A bug report is filed against the data, although the data is correct.

The mismatch looks like a bug, but it is how the sport records the game.

What the data holds

A get_game call in the basketball API returns a game record, a team_stats list with one row per team, and a players list with one row per player. We pulled eight finals from January 10 and 11, 2026 and compared each team row with the sum of its players. That is 16 team rows.

Points matched in all 16. Rebounds matched in all 16. Turnovers did not: in 8 of the 16 rows the team total was higher than the player sum, and in the other 8 they were equal. When they differed, the gap was 1 or 2 turnovers. For example, Houston's team total was 13 against a player sum of 11, Atlanta's was 9 against 7, and Washington's was 23 against 22. Minnesota, Miami, Oklahoma City and Philadelphia matched exactly.

The difference is documented in the field notes for these team rows. Team turnovers, the tov field, is the team's total, including team turnovers charged to no player, such as shot clock and 8-second violations, so it can be higher than the players' sum. The rebound fields oreb and reb count rebounds credited to players only, without team rebounds, so they match the player sum. This is why one stat reconciles and the other does not.

Cause: team events have no player

A turnover is normally charged to the player who lost the ball. A shot clock violation is charged to the team, and so is an 8-second violation, because no single player is responsible. The official team total includes them, and the individual lines do not. In SportsDataHQ the team rebound fields count player-credited rebounds only, so rebounds reconcile and turnovers do not. If you go to another source, check which of the two it does, because the combination you see in one place is not guaranteed in another.

This matters for any calculation built on team totals. The standard possessions estimate uses field goal attempts, offensive rebounds, turnovers and free throw attempts. If you feed it player sums for turnovers, you will undercount possessions by a small amount, about one or two per game for each team. The error is tiny for one game and consistent across a season, which makes it a bias, not noise. A league-wide pace figure will be a little low and a turnover rate will be a little low.

Step 1: reconcile a day of games

This script pulls a day of finals, adds up each team's players and prints the team and player numbers side by side. Set DUNKAPI_API_KEY first. It costs 2 credits for the list and 5 for each game.

import json, os, urllib.request
KEY = os.environ["DUNKAPI_API_KEY"]

def post(tool, body):
    req = urllib.request.Request(f"https://mcp.dunkapi.com/v1/{tool}", data=json.dumps(body).encode(),
                                 headers={"Content-Type": "application/json", "x-api-key": KEY})
    with urllib.request.urlopen(req, timeout=60) as resp:
        print("HTTP", resp.status, tool)
        return json.load(resp)["data"]

games = post("list_games", {"from": "2026-01-10", "to": "2026-01-11", "status": "final", "limit": 12})["games"]
rows = []
for g in games[:8]:
    box = post("get_game", {"game_id": g["game_id"]})
    for t in box["team_stats"]:
        mine = [p for p in box["players"] if p["team_id"] == t["team_id"]]
        rows.append((t["abbrev"], t["pts"], sum(p["pts"] or 0 for p in mine),
                     t["tov"], sum(p["tov"] or 0 for p in mine),
                     t["reb"], sum(p["reb"] or 0 for p in mine)))
print("team  pts team/players   tov team/players   reb team/players")
for r in rows:
    print(f"{r[0]:5} {r[1]:>4} {r[2]:>4}   {r[3]:>4} {r[4]:>4}   {r[5]:>4} {r[6]:>4}")
print("rows:", len(rows), "| points equal:", sum(r[1] == r[2] for r in rows),
      "| turnovers team > players:", sum(r[3] > r[4] for r in rows),
      "| rebounds team > players:", sum(r[5] > r[6] for r in rows))

On the verified run the list and all eight game calls returned HTTP 200. The summary line read: 16 rows, 16 with equal points, 8 with team turnovers above the player sum, and 0 with team rebounds above the player sum. The largest gap was 2, and no team total was ever below its players' sum.

Step 2: write the reconciliation rule down

A box score validator that treats every column the same will flag half the games. Encode the rule in the validator so it passes when it should:

def reconcile(team, players):
    pts = sum(p["pts"] or 0 for p in players)
    reb = sum(p["reb"] or 0 for p in players)
    tov = sum(p["tov"] or 0 for p in players)
    assert team["pts"] == pts, "points must match"
    assert team["reb"] == reb, "rebounds are player-credited only"
    assert 0 <= team["tov"] - tov <= 5, "team turnovers may exceed players, never fall below"

The bound of 5 is a loose guard, wide enough that a legitimate game passes. A team total below the player sum, or a gap far outside one or two, is a real error and should fail the load. Run the check as a nightly job, and it will catch a half-loaded game, where one player's line is missing and the points no longer match.

Step 3: pick the right turnover for the job

For team-level work, use the team row. Possessions, pace, offensive rating and turnover rate for a team should all use team_stats.tov. For player-level work, use the player's own tov and accept that the players of a team add up to slightly less than the team. Do not allocate the gap to players by guesswork. If you need a per-player usage figure that adds up to the team, build it explicitly and label it as an estimate.

Keep in mind the other small difference between team and player rows. The team row has fields that players do not, such as fast break points, points in the paint and points off turnovers, and the player row has minutes, plus-minus and a starter flag. Do not join them column to column without checking that the column exists on both sides.

Step 4: compare seasons like with like

If you pull team and player aggregates from two different endpoints and compare them, test one game at the box score level first. A season total built from the team endpoint and one built from the player sum will differ on turnovers by a consistent amount. That is the same effect as the single-game gap, multiplied by the number of games, and it is no reason to doubt either endpoint.

When not to use this

  • You need turnovers attributed to a person. Team turnovers have no player, by definition. If a player's turnover count matters, use the player lines and accept the gap.
  • You need exact official team rebounds. The team rebound fields here count player-credited rebounds only. They will be lower than a figure that includes team rebounds.
  • You are working with another league in the same API. The reconciliation here was checked on NBA box scores. Check a sample of games before assuming the same pattern for the WNBA or other leagues.
  • You want a possessions model for pricing a game. This page covers how to count. It does not suggest a wager.

Live from the API

Free to embed on your own site, with no key needed. Get the embed code.

Get a free key

Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.