How do I get the upcoming UFC fight schedule in Python?
Every scheduled bout in the next 30 days: 52 bouts across five cards, with weight class, card segment and scheduled rounds.
Code verified October 12, 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.
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": "401891665",
"event_id": "600060741",
"event_name": "Dana White's Contender Series: Season 10, Week 10",
"event_date": "2026-10-13",
"starts_at": "2026-10-13T23:00:00.000Z",
"weight_class": "Featherweight",
"card_segment": "main",
"match_number": 1,
"title_fight": false,
"scheduled_rounds": 3,
"status": "scheduled",
"fighter_a": "4886803",
"fighter_a_name": "Ilias Bulaid",
"fighter_b": "5077314",
"fighter_b_name": "Erick Visconde",
"winner": null,
"method": null,
"method_display": null,
"end_round": null,
"end_clock": null,
"duration_seconds": null,
"judges_scores": null,
"referee": null,
"lines": [
{
"provider": "BetOnline",
"a": -130,
"b": 110,
"total_rounds": 2.5
},
{
"provider": "Pinnacle",
"a": -130,
"b": 111,
"total_rounds": null
}
]
},
{
"bout_id": "401928737",
"event_id": "600060741",
"event_name": "Dana White's Contender Series: Season 10, Week 10",
"event_date": "2026-10-13",
"starts_at": "2026-10-13T23:00:00.000Z",
"weight_class": "Women's Bantamweight",
"card_segment": "main",
"match_number": 2,
"title_fight": false,
"scheduled_rounds": 3,
"status": "scheduled",
"fighter_a": "5402155",
"fighter_a_name": "Smilla Sundell",
"fighter_b": "5110864",
"fighter_b_name": "Aline Pereira",
"winner": null,
"method": null,
"method_display": null,
"end_round": null,
"end_clock": null,
"duration_seconds": null,
"judges_scores": null,
"referee": null,
"lines": null
},
"...50 more"
],
"count": 52
}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.
More guides
Start with 500 free credits every month
No card. REST or MCP.