Skip to content

Guides

How do I get the upcoming UFC fight schedule in Python?

Every scheduled bout in the next 30 days: 27 bouts across three cards, with weight class, card segment and scheduled rounds.

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

The call

days is 1 to 180. Each bout lists the fighters, weight class, card segment and scheduled rounds. Pass league: "pfl" or "bellator" for those promotions.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"

resp = requests.post(
    "https://mcp.fighterapi.com/v1/get_schedule",
    headers={"x-api-key": API_KEY},
    json={
        "days": 30,
    },
    timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]

bouts = pd.DataFrame(data["bouts"])
events = bouts.groupby(["event_date", "event_name"]).agg(bouts=("bout_id", "count"), title_fights=("title_fight", "sum"))
print(events)
nxt = bouts[bouts["event_id"] == bouts.sort_values("starts_at").iloc[0]["event_id"]]
print(nxt[["match_number", "weight_class", "fighter_a_name", "fighter_b_name", "scheduled_rounds"]].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 fighterapi

What comes back

The data object of the response, trimmed to the first rows. Every field is real output from the run above.

{
  "days": 30,
  "bouts": [
    {
      "bout_id": "401922277",
      "event_id": "600061665",
      "event_name": "UFC Fight Night: Procházka vs. Stirling",
      "event_date": "2026-11-21",
      "starts_at": "2026-11-21T18:00:00.000Z",
      "weight_class": "Light Heavyweight",
      "card_segment": "main",
      "match_number": 1,
      "title_fight": false,
      "scheduled_rounds": 5,
      "status": "scheduled",
      "fighter_a": "3156612",
      "fighter_a_name": "Jiří Procházka",
      "fighter_b": "5216713",
      "fighter_b_name": "Navajo Stirling",
      "winner": null,
      "method": null,
      "method_display": null,
      "end_round": null,
      "end_clock": null,
      "duration_seconds": null,
      "judges_scores": null,
      "referee": null,
      "lines": [
        {
          "provider": "BetMGM",
          "a": 140,
          "b": -170,
          "total_rounds": null
        }
      ]
    },
    {
      "bout_id": "401927850",
      "event_id": "600061665",
      "event_name": "UFC Fight Night: Procházka vs. Stirling",
      "event_date": "2026-11-21",
      "starts_at": "2026-11-21T18:00:00.000Z",
      "weight_class": "Featherweight",
      "card_segment": "main",
      "match_number": 2,
      "title_fight": false,
      "scheduled_rounds": 3,
      "status": "scheduled",
      "fighter_a": "3031559",
      "fighter_a_name": "Aljamain Sterling",
      "fighter_b": "5145681",
      "fighter_b_name": "Kevin Vallejos",
      "winner": null,
      "method": null,
      "method_display": null,
      "end_round": null,
      "end_clock": null,
      "duration_seconds": null,
      "judges_scores": null,
      "referee": null,
      "lines": [
        {
          "provider": "BetMGM",
          "a": 110,
          "b": -135,
          "total_rounds": null
        },
        {
          "provider": "DraftKings",
          "a": 110,
          "b": -130,
          "total_rounds": 2.5
        },
        {
          "provider": "FanDuel",
          "a": 108,
          "b": -138,
          "total_rounds": null
        },
        {
          "provider": "Pinnacle",
          "a": 111,
          "b": -130,
          "total_rounds": 2.5
        }
      ]
    },
    "...50 more"
  ],
  "count": 27
}

What to do next

  • get_event (2 credits). The full card for an event, with results once it is final.
  • get_fighter (5 credits). A fighter's record and career rates.

The data this uses

Every row above comes from UFC odds data. Opening and closing moneylines for UFC fights since June 2020, joined to the result and both fighters' stat sheets, with line movement for upcoming fights.

More guides

The same guide for other sports

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

Start with 500 free credits every month

No card. REST or MCP.