How do I get the NBA injury report in Python?
The NBA injury report as of November 18: 108 listed players, 87 of them out, with injury type, status and expected return date.
Code verified November 18, 2026. One call to get_injuries, 2 credits.
The call
Returns the latest day captured. Pass team for one club, date for the report as of an earlier day, and league: "wnba" for the WNBA. status is Out or Day-To-Day.
import requests
import pandas as pd
API_KEY = "YOUR_API_KEY"
resp = requests.post(
"https://mcp.dunkapi.com/v1/get_injuries",
headers={"x-api-key": API_KEY},
json={},
timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]
inj = pd.DataFrame(data["injuries"])
print("report for", data["date"], "-", len(inj), "players listed")
print(inj["status"].value_counts())
out = inj[inj["status"] == "Out"]
print(out[["name", "team", "position", "type", "return_date"]].head(10).to_string(index=False))
print(inj.groupby("team").size().sort_values(ascending=False).head(5))
Replace YOUR_API_KEY with a key from your dashboard. Python needs requests and pandas (pip install requests pandas). JavaScript runs on Node 18 or newer, or in the browser.
Or use the official client: pip install dunkapi
What comes back
The data object of the response, trimmed to the first rows. Every field is real output from the run above.
{
"date": "2026-11-18",
"injuries": [
{
"player_id": "4873201",
"name": "Asa Newell",
"position": "F",
"team": "ATL",
"status": "Out",
"type": "Toe",
"detail": null,
"return_date": "2027-03-17"
},
{
"player_id": "2490149",
"name": "CJ McCollum",
"position": "G",
"team": "ATL",
"status": "Out",
"type": "Calf",
"detail": "Strain",
"return_date": "2026-12-19"
},
"...127 more"
],
"count": 108
}What to do next
- get_player_games (5 credits). A listed player's recent game log, to see what the team is missing.
- get_schedule (2 credits). The next games for the teams on the list.
More guides
The same guide for other sports
- EndzoneAPI: How do I get the NFL injury report in Python?
- FastballAPI: How do I get the MLB injury report in Python?
Rather ask Claude? 19 free Claude skills call these endpoints for you.
Start with 500 free credits every month
No card. REST or MCP.