# UFC Stats Scraper (`fetchfinch/ufc-stats-scraper`) Actor

Extract structured UFC fighter profiles, career records, event fight cards, fight results, and division and pound-for-pound rankings for sports media, analytics, fantasy applications, and research.

- **URL**: https://apify.com/fetchfinch/ufc-stats-scraper.md
- **Developed by:** [Fetch Finch](https://apify.com/fetchfinch) (community)
- **Categories:** News, Developer tools
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 ufc 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## UFC Stats Scraper

Get clean, structured UFC data for fighter profiles, records, event cards, fight results, and weight-division rankings.

Built for sports media, MMA research, fantasy products, analytics dashboards, betting tools, and fan applications. Run a ready-made example or tailor a query to the fighter, event, or division you need.

### What you can collect

#### Fighter profiles and career records

- Complete UFC fighter roster
- Fighter search by name
- Win, loss, draw, and no-contest records
- Height, weight, reach, stance, and nickname
- Career striking, takedown, and submission statistics when available
- Fight history with opponents, events, results, methods, rounds, and finish times

#### UFC events and fight cards

- Upcoming UFC events and scheduled fight cards
- Completed events and fight results
- Bout matchups, winners, methods, rounds, and finish times
- Event dates, locations, and tournament metadata
- Detailed fight statistics when available

#### UFC division rankings

- Current men’s and women’s UFC weight-division rankings
- Champions and ranked fighters
- Division metadata and ranking movement when available

### Ready-to-run examples

Use these preconfigured tasks to get started in one click:

- [Scrape the full UFC fighter roster](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-full-ufc-fighter-roster-list)
- [Scrape the UFC heavyweight fighter list](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-ufc-heavyweight-fighter-list)
- [Scrape UFC fighter stats and records by name](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-ufc-fighter-stats-and-records-by-name)
- [Scrape UFC women’s division rankings](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-ufc-womens-division-rankings)
- [Scrape UFC rankings for every weight division](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-ufc-rankings-for-every-weight-division)
- [Scrape past UFC event results and fight cards](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-past-ufc-event-results-and-fight-cards)
- [Scrape upcoming UFC events and fight cards](https://apify.com/fetchfinch/ufc-stats-scraper/examples/scrape-upcoming-ufc-events-and-fight-cards)

### Why teams use it

- Create fighter-comparison pages with records, measurements, and career stats.
- Build fight-week previews from scheduled cards and athlete histories.
- Publish post-event coverage with results and finish methods.
- Power MMA research, analytics, fantasy, and data-journalism workflows.
- Export structured results to JSON, CSV, Excel, or connect them to the Apify API, webhooks, Make, n8n, and Zapier.

### Getting started

#### Find a fighter

```json
{
  "dataType": "fighters",
  "searchTerms": ["Conor McGregor"],
  "maxResults": 10
}
```

#### Get the full UFC roster

```json
{
  "dataType": "fighters",
  "maxResults": 1000
}
```

#### Get upcoming UFC fight cards

```json
{
  "dataType": "events",
  "eventType": "upcoming",
  "maxResults": 10
}
```

#### Get completed event results

```json
{
  "dataType": "events",
  "eventType": "past",
  "maxResults": 10
}
```

#### Get division rankings

```json
{
  "dataType": "rankings",
  "division": "Lightweight",
  "maxResults": 25
}
```

### Input reference

| Input | Description |
| --- | --- |
| `dataType` | Choose `fighters`, `events`, `rankings`, or `all`. |
| `searchTerms` | One or more fighter or event names to match. |
| `eventType` | For events, choose `upcoming`, `past`, or `all`. |
| `division` | Filter fighters or rankings by weight division, such as `Heavyweight` or `Women's Strawweight`. |
| `gender` | Filter eligible records by `male` or `female`. |
| `fighterStatus` | Filter fighters by available status information. |
| `country` | Filter fighters by country or hometown. |
| `maxResults` | Maximum number of records to return, up to 1,000. |

### Output

Each result includes a `recordType` so downstream tools can distinguish fighters, events, and rankings.

```json
{
  "recordType": "fighter",
  "id": "f4c49976c75c5ab2",
  "name": "Conor McGregor",
  "nickname": "The Notorious",
  "record": {
    "wins": 22,
    "losses": 7,
    "draws": 0
  },
  "physical": {
    "height": "5' 9\"",
    "weightLbs": 155,
    "reachIn": 74,
    "stance": "Southpaw"
  },
  "career": {
    "slpm": "5.27",
    "strAcc": "49%",
    "tdAvg": "0.66",
    "subAvg": "0.1"
  },
  "fights": []
}
```

Fighter records can include career and fight-history data. Event records include event information and fight cards. Ranking records include the division, champion, ranked fighters, and available ranking metadata. Fields vary when a source does not provide a particular value.

### Freshness and exports

The Actor maintains regularly updated UFC datasets. Each result includes a data-update timestamp so you can see when the underlying information was last updated.

Results are written to the Apify dataset and can be downloaded as JSON, CSV, Excel, XML, or RSS, or consumed directly through the Apify API.

### Responsible use

Use the data for legitimate editorial, analytical, research, and product purposes. You are responsible for complying with applicable laws and any restrictions on redistribution or commercial use.

# Actor input Schema

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

Internal execution mode.

## `provider` (type: `string`):

Internal provider selection.

## `dataType` (type: `string`):

Dataset to return or update.

## `searchTerms` (type: `array`):

Fighter or event names. Empty returns the available collection.

## `refreshSearchTerms` (type: `array`):

Internal refresh setting.

## `fighterLetters` (type: `array`):

Internal refresh setting.

## `eventType` (type: `string`):

Limit events by whether they are upcoming or completed.

## `eventSource` (type: `string`):

Internal event source.

## `mmaTournamentId` (type: `string`):

Internal provider setting.

## `mmaSeasonId` (type: `string`):

Internal provider setting.

## `mmaCategoryId` (type: `string`):

Internal provider setting.

## `eventPage` (type: `integer`):

Internal provider setting.

## `division` (type: `string`):

Filter fighters or rankings by division.

## `gender` (type: `string`):

Filter rankings or fighters by gender where the provider supplies it.

## `fighterStatus` (type: `string`):

Filter fighters by current status.

## `country` (type: `string`):

Filter fighters by country of origin.

## `includeDetails` (type: `boolean`):

Internal refresh setting.

## `maxResults` (type: `integer`):

Maximum records to process or return.

## `refreshRequestBudget` (type: `integer`):

Internal quota setting.

## `monthlyRequestLimit` (type: `integer`):

Internal quota setting.

## `detailRefreshHours` (type: `integer`):

Internal refresh setting.

## `rapidApiHost` (type: `string`):

Internal provider setting.

## `ufcStatsHost` (type: `string`):

Internal provider setting.

## `endpointMap` (type: `object`):

Internal provider setting.

## Actor input object example

```json
{
  "mode": "query",
  "provider": "ufc-stats",
  "dataType": "events",
  "searchTerms": [],
  "refreshSearchTerms": [],
  "fighterLetters": [],
  "eventType": "all",
  "eventSource": "full-cards",
  "mmaTournamentId": "19906",
  "mmaSeasonId": "95578",
  "mmaCategoryId": "1708",
  "eventPage": 0,
  "division": "",
  "gender": "",
  "fighterStatus": "",
  "country": "",
  "includeDetails": true,
  "maxResults": 100,
  "refreshRequestBudget": 45,
  "monthlyRequestLimit": 150,
  "detailRefreshHours": 168,
  "rapidApiHost": "mmaapi.p.rapidapi.com",
  "ufcStatsHost": "ufc-stats3.p.rapidapi.com",
  "endpointMap": {}
}
```

# Actor output Schema

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

Structured fighter profiles, event cards, fight results, rankings, or refresh metadata produced by this run.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fetchfinch/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("fetchfinch/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 '{}' |
apify call fetchfinch/ufc-stats-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fetchfinch/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/aaMvghT94SlPy0Mcq/builds/RkXdVix2GiWj6EiLj/openapi.json
