Skip to content

Guides

How do I get the MLB injury report in Python?

The MLB injury report as of November 18: 148 listed players with status, injury and expected return, 145 of them Out.

Code verified November 18, 2026. One call to get_injuries, 2 credits.

The call

Returns the latest day captured. Pass team for one club and date for the report as of an earlier day. Statuses follow the season: 10-, 15- and 60-day injured-list designations in season, Out, Day-To-Day or Suspension in the off-season.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"

resp = requests.post(
    "https://mcp.fastballapi.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())
print(inj.groupby("team").size().sort_values(ascending=False).head(5))
soon = inj[inj["status"].isin(["Day-To-Day", "10-Day-IL"]) & (inj["return_date"] >= data["date"])].sort_values("return_date")
print(soon[["name", "team", "position", "status", "type", "return_date"]].head(8).to_string(index=False))

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 fastballapi

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": "5001155",
      "name": "Andrew Saalfrank",
      "position": "RP",
      "team": "ARI",
      "status": "Out",
      "type": "Shoulder",
      "detail": "Surgery",
      "return_date": "2027-02-01"
    },
    {
      "player_id": "42404",
      "name": "Corbin Carroll",
      "position": "RF",
      "team": "ARI",
      "status": "Out",
      "type": "Elbow",
      "detail": "Surgery",
      "return_date": "2027-03-01"
    },
    "...281 more"
  ],
  "count": 148
}

What to do next

More guides

The same guide for other sports

Rather ask Claude? 20 free Claude skills call these endpoints for you.

Start with 500 free credits every month

No card. REST or MCP.