Skip to content
MMA Calendar

UFC & MMA BlogNews

UFC Live Data API: Real-Time Fight Stats Over WebSocket

The MMA Fight Data API now streams UFC fight nights over WebSocket: round, clock, strikes, takedowns and results as they happen. On Pro and Business.

By Mate BersenadzePublished: Read time: 4 min read

TagsUFCFight ApiLiveDevelopers

Post on X

Since September, every UFC event page on UFCalendar has carried a live panel: the bout in the cage, the round, a running clock and both corners' numbers as they land. Starting today the same feed is part of the public MMA Fight Data API, on the Pro and Business plans. Read it with one HTTP call, or hold a WebSocket open and have every change pushed to you.

What is in the feed

One document per card, updated whenever anything on it changes:

  • Every bout on the card and its status: upcoming, in the cage or finished.
  • The bout in the cage: the round, a running clock and, for both corners, unofficial significant strikes, total strikes, takedowns, knockdowns, submission attempts and control time.
  • Round-by-round numbers for the bout in progress.
  • The referee.
  • A timestamped action timeline: round starts, knockdowns, takedowns, submission attempts.
  • The result, the moment it is posted.

It covers UFC fight nights, Dana White's Contender Series included. In-fight numbers are unofficial: once a bout is settled, the official totals land on /v1/fights/{id}/stats like any other finished fight.

Two ways to read it

One call. GET https://api.ufcalendar.com/v1/events/{idOrSlug}/live returns the latest snapshot of the card. It is the simple choice for a page that refreshes itself, or for checking a card before you open a socket.

A WebSocket. Connect to wss://live.ufcalendar.com/v1?key=YOUR_KEY and send:

{"action":"subscribe","event":"ufc-335-2026-12-13"}

You then receive four kinds of frames, each carrying the whole document in data:

snapshotRight after you subscribe
updateWhenever anything on the card changes
fight.finalA result is posted
event.completedThe card is over

Send {"action":"ping"} to keep the connection alive; the server answers with pong. Because every frame carries the full document, your client never stitches partial updates together: render the latest frame and move on.

JavaScript

Node 22 and every modern browser ship a native WebSocket, so no library is needed. Run it on your server and keep the key there:

const key = process.env.UFCALENDAR_API_KEY;
const ws = new WebSocket(`wss://live.ufcalendar.com/v1?key=${key}`);
let timer;

ws.onopen = () => {
  ws.send(JSON.stringify({ action: 'subscribe', event: 'ufc-335-2026-12-13' }));
  timer = setInterval(() => ws.send(JSON.stringify({ action: 'ping' })), 5 * 60_000);
};

ws.onmessage = (msg) => {
  const frame = JSON.parse(msg.data);
  if (frame.type === 'pong') return;
  const cur = frame.data?.current;
  if (cur) console.log(frame.type, `R${cur.round}`, cur.clock_sec);
  if (frame.type === 'event.completed') ws.close();
};

ws.onclose = () => clearInterval(timer);

Python

With the websockets library (pip install websockets):

import asyncio, json, os
import websockets

URL = f"wss://live.ufcalendar.com/v1?key={os.environ['UFCALENDAR_API_KEY']}"

async def main():
    async with websockets.connect(URL) as ws:
        await ws.send(json.dumps({"action": "subscribe", "event": "ufc-335-2026-12-13"}))
        async for raw in ws:
            frame = json.loads(raw)
            cur = (frame.get("data") or {}).get("current")
            if cur:
                print(frame["type"], f"R{cur.get('round')}", cur.get("clock_sec"))
            if frame["type"] == "event.completed":
                break

asyncio.run(main())

The official SDKs wrap all of this. event_live() / eventLive() make the single call, and the streaming helpers yield every frame:

pip install 'ufcalendar[live]'   # Python: api.live_stream("ufc-335-2026-12-13")
npm install @ufcalendar/sdk      # TypeScript: api.subscribeLive("ufc-335-2026-12-13", onFrame)

AI agents get it too: the MMA Fight Data MCP server has a get_event_live tool, so an assistant connected to it can answer "what round is the main event in?" from the same document.

What people build with it

  • Live score widgets for a fan site or a gym's screen.
  • Discord bots that post each result to a channel the moment it is in.
  • Fantasy apps that score as the fight happens and settle on the official totals.
  • Second-screen apps that follow the card next to the broadcast.

Plans and limits

The live feed is part of Pro ($49 a month) and Business ($149 a month). A Pro key holds up to 2 sockets at once, a Business key up to 5. On the Free and Hobby plans the live endpoint and the socket answer 403 tier_required; the rest of the API works as before.

Get a key at ufcalendar.com/account/api, read the reference at api.ufcalendar.com/docs, and see the overview on the live API page. Everything else the API covers is on mmadataapi.com.

UFCalendar is an independent data aggregator, not affiliated with, endorsed by or licensed by UFC, Zuffa, TKO or any promotion. Data is compiled from publicly accessible sources and is not an official or rights-cleared feed.

More from the blog

  1. Nov 26, 2026UFC Riyadh start time (UK, India, Australia) and how to watch Adesanya vs Magomedov
  2. Nov 25, 2026UFC bonus leaders 2026: Josh Hokit's four awards and Justin Gaethje's $925,000
  3. Nov 25, 2026UFC rankings update after UFC Qatar: Stirling up to No. 2, Vallejos to No. 5, Lopes shares No. 1
  4. Nov 25, 2026Best UFC API in 2026: how to choose (free plans, history, scorecards, speed)
  5. Nov 16, 2026UFC control time by position: who has the most back, mount and side control
Add UFCalendar as a preferred source on GoogleOur fight-week coverage shows up first in your Top stories.
Ask UFCalendar AI