# UFC Stats Scraper — Fight Cards, Results, Fighters & Rankings (`yugenox/ufc-stats-scraper`) Actor

Scrape ufc.com and UFC's official stats feed: upcoming cards with odds and weigh-ins, results with judges' scorecards, referee and finish details, play-by-play, per-round strike stats, fighter career stats and rankings. Card-change monitor flags replacements and cancellations. No login.

- **URL**: https://apify.com/yugenox/ufc-stats-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Sports, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## UFC Stats Scraper — Fight Cards, Results, Fighters & Rankings

Get clean UFC data straight from **ufc.com** and **UFC's own official stats feed**: upcoming fight cards with moneyline odds and
official weigh-ins, results with **all three judges' scorecards**, referee and finish details (strike, target, position),
a **play-by-play timeline**, optional **round-by-round strike stats**, fighter career stats and the official rankings.
The **card-change monitor** tells you what changed since your last run — replacements, cancellations, odds moves and missed weight.

No login, no browser, no cookies.

### What you can scrape

| Mode | One row per | Highlights |
|---|---|---|
| **Upcoming fight cards** | bout | both fighters' record, age, height, reach, stance, weigh-in, rank, country, odds; card segment, broadcaster, scheduled rounds |
| **Past events & results** | bout | winner, method, round, time, finishing strike/target/position, submission, referee, judges' scorecards, bonuses, play-by-play |
| **Fighter career stats** | fighter | record, division, rank, sig. strikes landed/absorbed per minute, striking accuracy and defense, takedown average/accuracy/defense, submission average, knockdown average, average fight time, strikes by position and target, wins by KO/decision/submission, bio |
| **Rankings** | ranking entry | pound-for-pound and every division: champion, ranks 1–15, places moved since the last update |

Turn on **Fight stats per bout** to add each finished bout's official totals and round-by-round stats (significant strikes by
head/body/leg and distance/clinch/ground, takedowns, knockdowns, reversals, control time).

### Use cases

- **Betting and modeling** — refresh odds, weigh-ins and late replacements before every event; build features from scorecards, finish details and per-round stats.
- **Fantasy MMA** — pull each card's matchups with records, physicals and ranks in one run.
- **Fight-week alerts** — schedule the monitor hourly and get only the bouts that changed.
- **Media and research** — results, judges' scores and rankings history in a spreadsheet.

### Input

```json
{ "mode": "upcoming", "maxEvents": 1, "monitorMode": true, "onlyChanges": false }
```

- `mode`: `upcoming`, `events`, `fighters` or `rankings`.
- `maxEvents` / `eventsSince` / `eventUrls`: which events (two event modes).
- `fighters`: names like `Charles Oliveira` or ufc.com athlete links; `divisions` adds each division's champion and ranked fighters (fighter mode) or filters the rankings.
- `includeFightStats`, `includeTimeline`: bout detail.
- `monitorMode`, `onlyChanges`: the card-change monitor.
- `maxItems`: row cap for the run.

### Output (real row, trimmed)

```json
{
  "type": "bout",
  "eventName": "UFC Fight Night: Moicano vs. Nolan",
  "eventStart": "2026-10-31T21:00Z",
  "venue": "Meta Apex",
  "fightId": 13228,
  "cardSegment": "Main Card",
  "weightClass": "Welterweight",
  "scheduledRounds": 3,
  "redName": "Randy Brown",
  "blueName": "Jacobe Smith",
  "redOdds": 210,
  "blueOdds": -260,
  "winner": "Jacobe Smith",
  "method": "Decision - Unanimous",
  "endingRound": 3,
  "endingTime": "5:00",
  "referee": "Herb Dean",
  "scorecards": [
    { "judge": "Mike Bell", "red": 26, "blue": 30 },
    { "judge": "Eric Colon", "red": 26, "blue": 30 },
    { "judge": "Junichiro Kamijo", "red": 26, "blue": 30 }
  ],
  "scoreSummary": "26-30, 26-30, 26-30",
  "missedWeight": false,
  "red": { "name": "Randy Brown", "record": "20-9-0", "age": 36, "heightIn": 75, "reachIn": 78, "stance": "Orthodox", "weighInLbs": 170.5, "country": "Jamaica", "odds": 210, "outcome": "Loss" },
  "blue": { "name": "Jacobe Smith", "record": "14-0-0", "outcome": "Win" },
  "timeline": [ { "round": 1, "roundTime": "1:33", "type": "takedown", "corner": "Blue", "fighter": "Jacobe Smith" } ],
  "changes": []
}
```

With the monitor on, `changes` lists things like `"replacement: Johnny Walker → New Opponent"`, `"cancelled"`, `"added"`,
`"odds: -150/+120 → -200/+160"`, `"missed weight: <fighter>"`, `"weight class: …"`, `"rounds: 3 → 5"`.

### Pricing

Pay per result: **$1.00 per 1,000 rows** (a bout, a fighter profile or a ranking entry) plus **$0.002 per run start**.
The next card (~14 bouts) costs about $0.016. Fight stats, play-by-play and the monitor are included at no extra cost.

### Tips

- ufc.com asks crawlers to wait 15 seconds between pages, and this actor honors that. Event, upcoming and rankings runs need only
  a few pages and finish in well under a minute; fighter profiles take ~15 s each (100 fighters ≈ 25 minutes).
- Odds and the event pages come from ufc.com; weigh-ins, results and scorecards come from UFC's live stats feed, which updates
  during the event. Run again after the card for final results.
- For fight week: Upcoming + Card-change monitor + Only changed bouts on an hourly schedule.

### FAQ

**Is it legal to scrape ufc.com?**
This actor reads only public pages and UFC's public stats feed, the same data any visitor sees, at the pace ufc.com's robots.txt
asks for. It does not log in or bypass anything. Check that your use of the data fits your local laws and your purpose.

**Does it access any private data?**
No. It collects public sports data about professional athletes and officials (names, records, physical stats, results). No
accounts, no fan data, nothing behind a login.

**Why are some odds empty?**
ufc.com shows odds only for bouts that have a line; late additions may not have one yet. And when ufc.com turns a run's IP
addresses away, the card still arrives from UFC's official stats feed, but without odds, ranks, fighter countries and (when the
schedule page was refused too) the ufc.com event link — the run's status message says when that happened.

**Does it work for old events?**
Yes — use Past events with `eventsSince`, or paste event links.

# Actor input Schema

## `mode` (type: `string`):

Upcoming cards (bouts with odds, weigh-ins, fighters' records and physicals), past events (results with method, round, time, judges' scorecards, referee, finish details), fighter career stats, or the official rankings.

## `maxEvents` (type: `integer`):

Upcoming: the next N events (1 = the next card). Past events: the N most recent events (stops earlier at "Events since").

## `eventsSince` (type: `string`):

Past events mode: only events on or after this date (YYYY-MM-DD).

## `eventUrls` (type: `array`):

Optional: specific ufc.com event pages, e.g. https://www.ufc.com/event/ufc-333. Used instead of the schedule in the two event modes.

## `fighters` (type: `array`):

Fighter career stats mode: fighter names ("Charles Oliveira") or ufc.com athlete links.

## `divisions` (type: `array`):

Rankings mode: only these divisions. Fighter mode: also scrape the champion and ranked fighters of these divisions.

## `maxFightersPerDivision` (type: `integer`):

Fighter mode with divisions: champion + the top N-1 ranked fighters (16 = champion and all 15 ranked).

## `includeFightStats` (type: `boolean`):

Add each finished bout's official totals and round-by-round stats: significant strikes by target and position, takedowns, knockdowns, control time and more.

## `includeTimeline` (type: `boolean`):

Add the bout's timeline: knockdowns, takedowns, submission attempts, reversals, pauses and round start/end, with round and round time.

## `monitorMode` (type: `boolean`):

Remember each card between runs and flag what changed in the "changes" field: replacements, cancellations, added bouts, weight-class or rounds changes, odds moves and missed weight. Ideal on an hourly schedule in fight week.

## `onlyChanges` (type: `boolean`):

With the monitor on: save only bouts that changed since the last run (the first run saves the whole card as the baseline).

## `maxItems` (type: `integer`):

Maximum number of rows for the whole run. 0 = no limit.

## `proxyConfiguration` (type: `object`):

Apify Proxy (datacenter) is the default and comes with every Apify plan.

## Actor input object example

```json
{
  "mode": "upcoming",
  "maxEvents": 1,
  "maxFightersPerDivision": 16,
  "includeFightStats": false,
  "includeTimeline": true,
  "monitorMode": false,
  "onlyChanges": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped bouts, fighters or rankings.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts, requests and card changes.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "upcoming",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/ufc-stats-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "upcoming",
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/ufc-stats-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "upcoming",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/ufc-stats-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/ufc-stats-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/L4s2oqClQ5egp2Jdr/builds/lwB8hAuWcO705GbLZ/openapi.json
