SportAPINBAGet SportAPI Key

Minnesota Timberwolves

Coach
Chris Finch
Arena
Target Center
Conference
Western
9-3Record
3rdWestern
W5Streak

Roster

No.PlayerPosHtGPMinPtsRebAstFG%3P%
5Anthony EdwardsG6-4433.833.34.83.548.540.0
1LaMelo BallG6-71227.618.63.36.345.940.6
13Ayo DosunmuG6-41230.818.14.63.852.246.9
3Jaden McDanielsF6-91233.316.96.53.751.930.8
24Jonathan KumingaF6-71230.112.45.62.944.640.4
4Terrence Shannon Jr.G6-6921.410.63.32.839.235.1
8Bones HylandG6-21213.29.81.42.947.139.6
27Rudy GobertC7-11129.47.911.51.452.50.0
19Joan BeringerF6-111216.96.36.30.660.4–
41Trey LylesF6-91218.26.03.80.848.132.4
7Jaylen ClarkG6-51114.54.92.30.842.937.5
15Zyon PullinG6-423.52.00.50.0100.0–
33Isaiah EvansF6-663.30.30.30.316.70.0
9Cody WilliamsF6-883.60.00.30.00.00.0
44Rocco ZikarskyC7-312.00.01.00.0––
0Donte DiVincenzoG6-40––––––

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 Minnesota Timberwolves is 12 and the slug is minnesota-timberwolves. /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/minnesota-timberwolves", timeout=20).json()["data"]
print(team["name"], "- coach", team["coach_name"])

roster = session.get(f"{BASE}/teams/12/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/12/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:57 AM ET