SportAPINBAGet SportAPI Key

Indiana Pacers

Coach
Rick Carlisle
Arena
Gainbridge Fieldhouse
Conference
Eastern
4-8Record
11thEastern
W1Streak

Roster

No.PlayerPosHtGPMinPtsRebAstFG%3P%
43Pascal SiakamF6-81132.222.76.84.451.134.5
0Tyrese HaliburtonG6-5433.021.84.59.551.637.0
2Andrew NembhardG6-41033.317.12.17.946.442.9
1Obi ToppinF6-9921.112.84.71.651.837.2
23Aaron NesmithG6-51024.911.72.31.736.930.0
40Ivica ZubacC7-0722.910.68.31.757.7–
10Kelly Oubre Jr.G6-81023.69.62.71.444.721.1
29Quenton JacksonG6-41221.79.53.42.647.636.1
32Jay HuffC7-11017.67.03.80.950.027.6
5Jarace WalkerF6-71221.16.85.31.736.330.2
9T.J. McConnellG6-1310.35.01.73.753.8–
24Kobe BrownG6-7613.54.72.31.043.525.0
22Larry Nance Jr.F6-61114.54.62.50.546.240.7
3Braden SmithG5-10813.33.80.62.344.833.3
18Jalen SlawsonF6-71014.63.63.21.145.820.0
26Ben SheppardG6-6112.03.01.00.033.350.0
12Johnny FurphyG6-80––––––

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 Indiana Pacers is 28 and the slug is indiana-pacers. /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/indiana-pacers", timeout=20).json()["data"]
print(team["name"], "- coach", team["coach_name"])

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