SportAPINBAGet SportAPI Key

Memphis Grizzlies

Coach
Tuomas Iisalo
Arena
FedExForum
Conference
Western
7-4Record
8thWestern
L1Streak

Roster

No.PlayerPosHtGPMinPtsRebAstFG%3P%
2Ty JeromeG6-51030.826.23.64.850.036.6
27Cameron BoozerF6-81132.216.19.85.537.029.4
23Cedric CowardF6-51028.312.68.82.844.745.1
0Jaylen WellsF6-71127.312.02.71.350.541.4
28Isaiah StewartC6-8818.310.83.30.863.556.3
3Jerami GrantF6-71123.510.72.12.145.746.3
24Cam SpencerG6-31119.59.33.34.854.454.1
14Zach EdeyC7-31020.87.67.70.951.9100.0
10Javon SmallG6-1420.07.32.04.034.635.7
1Scotty Pippen Jr.G6-2516.26.42.42.242.322.2
45GG JacksonF6-91015.56.33.00.837.336.0
41Quinten PostC7-0812.95.02.10.447.126.3
22Taylor HendricksF6-967.34.31.70.261.562.5
18Olivier-Maxence ProsperF6-755.02.41.60.650.00.0
35Karim LopezF6-833.31.30.70.050.00.0
17Kris MurrayF6-8712.11.31.70.720.08.3
21Jahmai MashackG6-332.30.70.01.050.0–
5Richie SaundersG6-50––––––

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 Memphis Grizzlies is 20 and the slug is memphis-grizzlies. /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/memphis-grizzlies", timeout=20).json()["data"]
print(team["name"], "- coach", team["coach_name"])

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