SportAPINBAGet SportAPI Key

Philadelphia 76ers

Coach
Nick Nurse
Arena
Xfinity Mobile Arena
Conference
Eastern
10-3Record
2ndEastern
W1Streak

Roster

No.PlayerPosHtGPMinPtsRebAstFG%3P%
0Tyrese MaxeyG6-21336.226.73.45.549.835.6
7Jaylen BrownG6-61235.121.26.53.748.037.5
21Joel EmbiidC7-01131.517.98.83.737.411.1
23LeBron JamesF6-91032.515.17.26.543.223.7
77VJ EdgecombeG6-51233.612.96.43.546.335.1
5Anfernee SimonsG6-41321.710.22.21.242.142.7
1Kentavious Caldwell-PopeG6-51321.95.72.51.746.347.4
33Jabari WalkerF6-7911.75.34.20.452.830.0
45Dean WadeF6-91125.53.93.81.741.736.0
30Adem BonaC6-10914.22.13.90.838.10.0
00Labaron Philon Jr.G6-385.62.10.90.633.325.0
12Rayan RupertG6-723.51.01.50.533.30.0
11Justin EdwardsF6-762.30.80.70.050.050.0
8Caleb LoveG6-32–0.00.00.0––
99Tacko FallC7-622.00.00.50.0––
55Ariel HukportiC7-00––––––
25Dominick BarlowF6-90––––––

Per-game averages in the NBA regular season so far. Players without a game have dashes.

Get this team's data from the API

The team ID of the Philadelphia 76ers is 2 and the slug is philadelphia-76ers. /api/basketball/teams/slug/{slug} returns the coach, the arena, the standing and the latest and next games. The roster is at /api/basketball/teams/{id}/roster and every game of the team at /api/basketball/teams/{id}/games, newest first. The averages in the roster table on this page come from each player's profile at /api/basketball/players/slug/{slug}.

team.py
import requests

API_KEY = "YOUR_API_KEY"
session = requests.Session()
session.headers["X-API-Key"] = API_KEY
BASE = "https://sportapi.ai/api/basketball"

team = session.get(f"{BASE}/teams/slug/philadelphia-76ers", timeout=20).json()["data"]
print(team["name"], "- coach", team["coach_name"])

roster = session.get(f"{BASE}/teams/2/roster", timeout=20).json()["data"]
for p in roster:
    print(p["jersey"], p["name"], p["position"], p["height_cm"], "cm")

games = session.get(f"{BASE}/teams/2/games", params={"league": "nba", "limit": 5}, timeout=20).json()["data"]
for g in games:
    print(g["start"], g["away"]["abbreviation"], "@", g["home"]["abbreviation"], g["status"])

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.

Updated Nov 13, 11:58 AM ET