128–111Final

Miami Heat
5-6Detroit Pistons vs Miami Heat Box Score
Score by quarter
Box score
Detroit Pistons
| Player | Min | Pts | Reb | Ast | Stl | Blk | TO | FG | 3PT | FT | +/- |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Cade Cunningham G | 30 | 16 | 2 | 8 | 1 | 3 | 7 | 5-8 | 2-3 | 4-6 | +9 |
| John Collins F | 29 | 23 | 7 | 1 | 0 | 0 | 1 | 9-15 | 5-6 | 0-0 | +15 |
| Duncan Robinson F | 28 | 17 | 1 | 2 | 2 | 0 | 1 | 5-12 | 5-10 | 2-2 | +22 |
| Ausar Thompson G | 19 | 4 | 3 | 4 | 1 | 1 | 3 | 2-5 | 0-1 | 0-0 | +14 |
| Jalen Duren C | 10 | 4 | 6 | 3 | 1 | 1 | 1 | 2-4 | 0-0 | 0-0 | +12 |
| Paul Reed F | 26 | 19 | 11 | 4 | 0 | 0 | 0 | 8-11 | 2-2 | 1-1 | +4 |
| Daniss Jenkins G | 22 | 15 | 5 | 5 | 1 | 0 | 3 | 5-8 | 1-2 | 4-5 | +14 |
| Ronald Holland II F | 22 | 8 | 5 | 4 | 1 | 0 | 0 | 3-6 | 0-0 | 2-2 | +4 |
| Kevin Huerter G | 20 | 5 | 6 | 2 | 1 | 1 | 2 | 2-7 | 1-5 | 0-0 | -1 |
| Isaiah Joe G | 18 | 12 | 3 | 1 | 0 | 0 | 1 | 4-9 | 1-6 | 3-4 | -8 |
| Javonte Green G | 13 | 5 | 3 | 0 | 0 | 1 | 0 | 2-4 | 1-3 | 0-0 | +3 |
| Tolu Smith F | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0-0 | 0-0 | 0-0 | -3 |
Did not play: Ebuka Okorie (Coach's decision); Chaz Lanier (Coach's decision); Taurean Prince (Coach's decision)
Miami Heat
| Player | Min | Pts | Reb | Ast | Stl | Blk | TO | FG | 3PT | FT | +/- |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Giannis Antetokounmpo F | 33 | 36 | 12 | 5 | 2 | 1 | 3 | 15-26 | 1-3 | 5-8 | -23 |
| Davion Mitchell G | 33 | 18 | 2 | 5 | 0 | 2 | 1 | 6-14 | 3-9 | 3-5 | -24 |
| Andrew Wiggins F | 26 | 8 | 8 | 2 | 1 | 0 | 1 | 3-12 | 1-6 | 1-1 | -19 |
| Klay Thompson G | 24 | 6 | 2 | 2 | 0 | 0 | 0 | 2-11 | 2-11 | 0-0 | -19 |
| Bam Adebayo C | 23 | 4 | 6 | 3 | 2 | 0 | 1 | 2-6 | 0-2 | 0-2 | -22 |
| Pelle Larsson G | 29 | 7 | 2 | 1 | 1 | 0 | 1 | 1-7 | 1-4 | 4-4 | 0 |
| Bobby Portis F | 21 | 11 | 8 | 2 | 1 | 0 | 0 | 4-10 | 3-6 | 0-0 | +6 |
| Tim Hardaway Jr. G | 21 | 8 | 4 | 1 | 0 | 0 | 3 | 2-7 | 2-5 | 2-4 | 0 |
| Nikola Jovic F | 13 | 5 | 4 | 1 | 1 | 1 | 0 | 1-1 | 0-0 | 3-4 | +1 |
| Dru Smith G | 6 | 3 | 0 | 1 | 0 | 0 | 1 | 1-2 | 1-1 | 0-0 | +7 |
| Nick Richards C | 3 | 3 | 0 | 1 | 0 | 0 | 0 | 1-1 | 1-1 | 0-0 | +2 |
| Ryan Conwell G | 3 | 2 | 0 | 0 | 0 | 0 | 0 | 1-2 | 0-1 | 0-0 | +2 |
| Myron Gardner F | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 0-0 | 0-0 | 0-0 | +2 |
| Simone Fontecchio F | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0-3 | 0-2 | 0-0 | +2 |
Starters are marked with a bar. Min: minutes, TO: turnovers, FG, 3PT and FT: made-attempted.
Get this box score from the API
Every game has an id, and this one is 1491. /api/basketball/games/1491/players returns one line per player: minutes, points, shooting, rebounds, assists, steals, blocks, turnovers, fouls and plus-minus. Players who didn't play have the reason in dnp. The team totals are at /api/basketball/games/1491.
import requests
API_KEY = "YOUR_API_KEY"
answer = requests.get(
"https://sportapi.ai/api/basketball/games/1491/players",
headers={"X-API-Key": API_KEY},
timeout=20,
).json()
game = answer["game"]
print(game["away"]["name"], game["away"]["score"], "@", game["home"]["name"], game["home"]["score"])
for side in ("away", "home"):
print(game[side]["name"])
for row in answer["data"][side]:
if row["dnp"]:
continue
print(f' {row["player"]["name"]:<24} {row["minutes"]:>2} min {row["pts"]:>3} pts {row["reb"]:>2} reb {row["ast"]:>2} ast')The API documentation lists every basketball endpoint. The same key works for the NBA, WNBA, EuroLeague, NCAA and the other leagues, and for football too.
