SportAPINBAGet SportAPI Key

Denver Nuggets

Coach
David Adelman
Arena
Ball Arena
Conference
Western
6-4Record
9thWestern
W1Streak

Roster

No.PlayerPosHtGPMinPtsRebAstFG%3P%
27Jamal MurrayG6-41036.326.25.05.950.951.3
15Nikola JokicC6-111036.123.510.88.950.023.3
0Christian BraunG6-61034.212.44.12.448.534.0
23Cameron JohnsonF6-8728.112.14.01.949.242.1
32Aaron GordonF6-81028.911.05.02.138.025.6
10DeMar DeRozanG6-6923.610.02.03.041.014.3
7Trevon BrazileF6-101019.57.15.60.556.033.3
3Marvin Bagley IIIF6-101012.35.83.30.553.80.0
13Bryce HopkinsF6-7714.15.41.90.463.640.0
21Spencer JonesF6-7319.05.32.30.350.050.0
00Cam WhitmoreF6-627.54.01.00.557.10.0
22Zeke NnajiF6-1023.53.50.50.0100.0100.0
9Ryan NembhardG5-1133.33.00.30.760.0100.0
5Tyus JonesG6-01010.72.50.62.033.325.0
11Alpha DialloF6-748.01.00.80.833.30.0
14DaRon Holmes IIF6-942.50.80.50.533.333.3
1Julian StrawtherG6-60––––––

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 Denver Nuggets is 11 and the slug is denver-nuggets. /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/denver-nuggets", timeout=20).json()["data"]
print(team["name"], "- coach", team["coach_name"])

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