Skip to content

UFC

UFC rankings, cards, results, and round-by-round fight stats as SQL tables

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/ufc/index.md to help me query UFC with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

feed_event_1291_main_event

Example output Β· captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT winner_name, method, ending_round
FROM ufc.main.fight_results(1291)
WHERE fight_order = 1;
Result
winner_name method ending_round
Gabriel Bonfim KO/TKO 2

Quick start

Choose where to run UFC, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'ufc' AS ufc (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-ufc'
);

3. Run a query

query.sql
SELECT winner_name, method, ending_round
FROM ufc.main.fight_results(1291)
WHERE fight_order = 1;
More example queries β†’
Technical details
Verified connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'ufc' AS ufc (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-ufc'
);

Overview

Read-only UFC rankings, events, fight cards, results, and fight statistics from UFC's official feed, ufc.com, and ESPN

Catalog

Everything ufc exposes once attached β€” read straight from the worker's released build.

ufc 1 schema
main 3 tables Β· 15 functions

UFC rankings, events, cards, results, fight statistics, and fighters

Schema examples (5)
Examples (5)

The current lightweight top 15.

SELECT division, rank, fighter_name, rank_change
FROM ufc.main.current_rankings
WHERE division = 'Lightweight'
ORDER BY rank;

Every current UFC champion.

SELECT division, fighter_name, is_interim_champion
FROM ufc.main.current_rankings
WHERE is_champion
ORDER BY division_order;

Fight 12000 round by round: significant strikes landed by each corner next to how many judges scored the round for each corner (red-corner Navajo Stirling outlanded Ivan Erslan 31-12 in round 1 but won it on only one of three cards).

WITH strikes AS (SELECT round_number, max(sig_strikes_landed) FILTER (WHERE corner = 'Red') AS red_landed, max(sig_strikes_landed) FILTER (WHERE corner = 'Blue') AS blue_landed FROM ufc.main.fight_round_stats(12000) GROUP BY round_number), votes AS (SELECT round_number, count(*) FILTER (WHERE red_score > blue_score) AS judges_for_red, count(*) FILTER (WHERE blue_score > red_score) AS judges_for_blue FROM ufc.main.fight_scorecards(12000) GROUP BY round_number) SELECT round_number, red_landed, blue_landed, judges_for_red, judges_for_blue
FROM strikes
JOIN votes USING (round_number)
ORDER BY round_number;

Every result on UFC feed event 1291 with the winner's reach advantage over the loser in inches (negative when the shorter-reach fighter won), from fight_results joined to card_fighters.

SELECT r.fight_order, r.winner_name, r.loser_name, r.method,
  w.reach_in - l.reach_in AS winner_reach_edge_in
FROM ufc.main.fight_results(1291) AS r
JOIN ufc.main.card_fighters(1291) AS w ON w.fight_id = r.fight_id AND w.fighter_id = r.winner_fighter_id
JOIN ufc.main.card_fighters(1291) AS l ON l.fight_id = r.fight_id AND l.fighter_id = r.loser_fighter_id
ORDER BY r.fight_order;
1 more example

Fighters on the UFC 324 card (2026-01-24, UFC feed event 1294) who hold a current ufc.com ranking, matched on ufc_athlete_url; a fighter appears once per list they are ranked on.

SELECT c.fighter_name, r.division, r.rank
FROM ufc.main.card_fighters(1294) AS c
JOIN ufc.main.current_rankings AS r USING (ufc_athlete_url)
ORDER BY r.rank, r.division, c.fighter_name;
Tables
current_rankings 2 examples12 cols

Official current UFC rankings, one row per fighter per division list

Columns
divisionnot null VARCHAR
Division name, for example Lightweight or Men's Pound-for-Pound.
division_order INTEGER
Display order of the division on ufc.com (1 = men's pound-for-pound).
gender VARCHAR
men or women.
pound_for_pound BOOLEAN
Whether this is a pound-for-pound list rather than a weight class.
rank INTEGER
Ordinal rank position (0 = champion, 1-15 contenders); ties share a rank.
is_champion BOOLEAN
Whether the fighter holds the division title.
is_interim_champion BOOLEAN
Whether the title shown is an interim title.
fighter_name VARCHAR
Fighter's name as shown on ufc.com.
fighter_slugnot null VARCHAR
ufc.com athlete slug, stable within ufc.com.
ufc_athlete_url VARCHAR
Fighter's ufc.com athlete page.
rank_change INTEGER
Places gained (positive) or lost (negative) since the previous update.
newly_ranked BOOLEAN
Whether ufc.com marks the fighter as newly ranked (previously NR).
ConstraintsPRIMARY KEY (division, fighter_slug)
Examples (2)

The current lightweight top 15.

SELECT division, rank, fighter_name, rank_change
FROM ufc.main.current_rankings
WHERE division = 'Lightweight'
ORDER BY rank;

Every current UFC champion.

SELECT division, fighter_name, is_interim_champion
FROM ufc.main.current_rankings
WHERE is_champion
ORDER BY division_order;
Link
current_season_events 1 example15 cols

Every UFC event in the current calendar year, one row per event

Columns
league VARCHAR
ESPN league slug: ufc, pfl, or bellator.
event_idnot null BIGINT
ESPN event identifier (use with event_bouts).
event_name VARCHAR
Event name, for example 'UFC 324: Gaethje vs. Pimblett'.
short_name VARCHAR
Short event name, for example 'UFC 324' or 'UFC Fight Night'.
start_time TIMESTAMP WITH TIME ZONE
Scheduled start of the first bout in UTC.
season INTEGER
Calendar year the event belongs to.
venue VARCHAR
Venue name.
city VARCHAR
Venue city.
region VARCHAR
Venue state, province, or region, when supplied.
country VARCHAR
Venue country.
status VARCHAR
Event status description, such as Scheduled or Final.
event_state VARCHAR
Event state: pre (scheduled), in (live), or post (finished).
completed BOOLEAN
Whether every bout on the event has finished.
bout_count INTEGER
Number of bouts ESPN lists for the event.
broadcast VARCHAR
Primary broadcast or streaming service, when listed.
ConstraintsPRIMARY KEY (event_id)
Example

This year's UFC events in date order.

SELECT event_id, event_name, start_time, event_state
FROM ufc.main.current_season_events
ORDER BY start_time;
Link
upcoming_events 1 example15 cols

Scheduled UFC events for this year and next, one row per event

Columns
league VARCHAR
ESPN league slug: ufc, pfl, or bellator.
event_idnot null BIGINT
ESPN event identifier (use with event_bouts).
event_name VARCHAR
Event name, for example 'UFC 324: Gaethje vs. Pimblett'.
short_name VARCHAR
Short event name, for example 'UFC 324' or 'UFC Fight Night'.
start_time TIMESTAMP WITH TIME ZONE
Scheduled start of the first bout in UTC.
season INTEGER
Calendar year the event belongs to.
venue VARCHAR
Venue name.
city VARCHAR
Venue city.
region VARCHAR
Venue state, province, or region, when supplied.
country VARCHAR
Venue country.
status VARCHAR
Event status description, such as Scheduled or Final.
event_state VARCHAR
Event state: pre (scheduled), in (live), or post (finished).
completed BOOLEAN
Whether every bout on the event has finished.
bout_count INTEGER
Number of bouts ESPN lists for the event.
broadcast VARCHAR
Primary broadcast or streaming service, when listed.
ConstraintsPRIMARY KEY (event_id)
Example

The upcoming UFC schedule.

SELECT event_id, event_name, start_time, city, country, bout_count
FROM ufc.main.upcoming_events
ORDER BY start_time;
Link
Table functions
all_current_rankings () 1 example

Official current UFC rankings from ufc.com (scan behind current_rankings)

No arguments
Returns columns
division VARCHAR
Division name, for example Lightweight or Men's Pound-for-Pound
division_order INTEGER
Display order of the division on ufc.com (1 = men's pound-for-pound)
gender VARCHAR
men or women
pound_for_pound BOOLEAN
Whether this is a pound-for-pound list rather than a weight class
rank INTEGER
Ordinal rank position (0 = champion, 1-15 contenders); ties share a rank
is_champion BOOLEAN
Whether the fighter holds the division title
is_interim_champion BOOLEAN
Whether the title shown is an interim title
fighter_name VARCHAR
Fighter's name as shown on ufc.com
fighter_slug VARCHAR
ufc.com athlete slug, stable within ufc.com
ufc_athlete_url VARCHAR
Fighter's ufc.com athlete page
rank_change INTEGER
Places gained (positive) or lost (negative) since the previous update
newly_ranked BOOLEAN
Whether ufc.com marks the fighter as newly ranked (previously NR)
Example

Current champions straight from the backing scan.

SELECT division, rank, fighter_name
FROM ufc.main.all_current_rankings()
WHERE is_champion
ORDER BY division_order;
Link
all_current_season_events () 1 example

Every UFC event in the current calendar year (scan behind current_season_events)

No arguments
Returns columns
league VARCHAR
ESPN league slug: ufc, pfl, or bellator
event_id BIGINT
ESPN event identifier (use with event_bouts)
event_name VARCHAR
Event name, for example 'UFC 324: Gaethje vs. Pimblett'
short_name VARCHAR
Short event name, for example 'UFC 324' or 'UFC Fight Night'
start_time TIMESTAMP WITH TIME ZONE
Scheduled start of the first bout in UTC
season INTEGER
Calendar year the event belongs to
venue VARCHAR
Venue name
city VARCHAR
Venue city
region VARCHAR
Venue state, province, or region, when supplied
country VARCHAR
Venue country
status VARCHAR
Event status description, such as Scheduled or Final
event_state VARCHAR
Event state: pre (scheduled), in (live), or post (finished)
completed BOOLEAN
Whether every bout on the event has finished
bout_count INTEGER
Number of bouts ESPN lists for the event
broadcast VARCHAR
Primary broadcast or streaming service, when listed
Example

Count this year's finished and scheduled UFC events from the backing scan.

SELECT event_state, count(*) AS events
FROM ufc.main.all_current_season_events()
GROUP BY event_state
ORDER BY event_state;
Link
all_upcoming_events () 1 example

Scheduled UFC events this year and next (scan behind upcoming_events)

No arguments
Returns columns
league VARCHAR
ESPN league slug: ufc, pfl, or bellator
event_id BIGINT
ESPN event identifier (use with event_bouts)
event_name VARCHAR
Event name, for example 'UFC 324: Gaethje vs. Pimblett'
short_name VARCHAR
Short event name, for example 'UFC 324' or 'UFC Fight Night'
start_time TIMESTAMP WITH TIME ZONE
Scheduled start of the first bout in UTC
season INTEGER
Calendar year the event belongs to
venue VARCHAR
Venue name
city VARCHAR
Venue city
region VARCHAR
Venue state, province, or region, when supplied
country VARCHAR
Venue country
status VARCHAR
Event status description, such as Scheduled or Final
event_state VARCHAR
Event state: pre (scheduled), in (live), or post (finished)
completed BOOLEAN
Whether every bout on the event has finished
bout_count INTEGER
Number of bouts ESPN lists for the event
broadcast VARCHAR
Primary broadcast or streaming service, when listed
Example

The next three scheduled UFC events from the backing scan.

SELECT event_name, start_time, city
FROM ufc.main.all_upcoming_events()
ORDER BY start_time
LIMIT 3;
Link
card_fighters (event_id INTEGER) 2 examples

Every fighter on a UFC event card with record, physical attributes, and outcome

Arguments
event_id INTEGER
UFC live-data event id (sequential, e.g. 1291 = 2025-11-08); find ids with feed_events().
Returns columns
event_id INTEGER
UFC live-data event identifier
fight_id INTEGER
UFC live-data fight identifier
fight_order INTEGER
Running order on the card; 1 is the main event
fighter_id INTEGER
UFC fighter identifier
corner VARCHAR
Corner: Red or Blue
fighter_name VARCHAR
Fighter's full name
nickname VARCHAR
Fighter's nickname, when known
outcome VARCHAR
Bout outcome for this fighter: Win, Loss, Draw, or NC; null before the fight
wins INTEGER
Professional wins in the published record
losses INTEGER
Professional losses in the published record
draws INTEGER
Professional draws in the published record
no_contests INTEGER
Professional no contests in the published record
date_of_birth DATE
Date of birth
age INTEGER
Age in years as reported by UFC
stance VARCHAR
Fighting stance, such as Orthodox or Southpaw
height_in DECIMAL(4,1)
Height in inches
reach_in DECIMAL(4,1)
Reach in inches
weigh_in_lbs DECIMAL(5,1)
Official weigh-in weight in pounds, when published
born_city VARCHAR
City of birth
born_country VARCHAR
Country of birth
fighting_out_of_city VARCHAR
City the fighter trains or fights out of
fighting_out_of_country VARCHAR
Country the fighter trains or fights out of
performance_of_the_night BOOLEAN
Whether the fighter earned a Performance of the Night bonus
ufc_athlete_url VARCHAR
Fighter's ufc.com page (lower-case; joins current_rankings)
Examples (2)

Size and stance of every fighter on feed event 1291.

SELECT fighter_name, corner, outcome, height_in, reach_in, stance,
  weigh_in_lbs
FROM ufc.main.card_fighters(1291)
ORDER BY fight_order, corner DESC;

Fighters on the UFC 324 card (2026-01-24, UFC feed event 1294) who hold a current ufc.com ranking, matched on ufc_athlete_url; a fighter appears once per list they are ranked on.

SELECT c.fighter_name, r.division, r.rank
FROM ufc.main.card_fighters(1294) AS c
JOIN ufc.main.current_rankings AS r USING (ufc_athlete_url)
ORDER BY r.rank, r.division, c.fighter_name;
Link
event_bouts (espn_event_id BIGINT, league := VARCHAR) 1 example

Bouts and results for one ESPN MMA event (UFC, PFL, or Bellator)

Positional arguments
espn_event_id BIGINT
ESPN event identifier, from events() or upcoming_events.
Named arguments
league := VARCHAR
ESPN league slug: ufc (default), pfl, or bellator (Bellator events end in 2024). Β· default "ufc"
Returns columns
league VARCHAR
ESPN league slug: ufc, pfl, or bellator
event_id BIGINT
ESPN event identifier
event_name VARCHAR
Event name
bout_id BIGINT
ESPN competition identifier for the bout
match_number INTEGER
Running order; 1 is the main event
card_segment VARCHAR
Card segment slug: main, prelims1, or prelims2
card_segment_name VARCHAR
Card segment display name, such as Main Card or Prelims
start_time TIMESTAMP WITH TIME ZONE
Scheduled bout start time in UTC
weight_class VARCHAR
Weight class
note VARCHAR
ESPN bout note, such as 'Lightweight - Main Event - Title Fight'
title_fight BOOLEAN
Whether ESPN labels the bout a title fight
status VARCHAR
Bout status description, such as Scheduled or Final
completed BOOLEAN
Whether the bout has finished
fighter1_id BIGINT
ESPN athlete identifier of the first-listed fighter
fighter1_name VARCHAR
First-listed fighter's name
fighter1_record VARCHAR
First-listed fighter's current record (W-L-D), not at bout time
fighter2_id BIGINT
ESPN athlete identifier of the second-listed fighter
fighter2_name VARCHAR
Second-listed fighter's name
fighter2_record VARCHAR
Second-listed fighter's current record (W-L-D), not at bout time
winner_id BIGINT
ESPN athlete identifier of the winner; null for a draw, NC, or unfought bout
winner_name VARCHAR
Winner's name
method VARCHAR
Result method, such as KO/TKO, Submission, or Decision - Unanimous
method_detail VARCHAR
Finishing technique or detail, such as Punch or Rear Naked Choke
ending_round INTEGER
Round in which the bout ended (or the current round if live)
ending_time VARCHAR
Clock time within the ending round, as M:SS
fight_duration_seconds INTEGER
Total bout time in seconds, assuming five-minute rounds
judges_scores VARCHAR
Judges' totals for decisions, each as fighter1-fighter2 (not winner first)
referee_name VARCHAR
Referee
Example

Results of UFC 324, main event first.

SELECT match_number, card_segment, weight_class, winner_name, method,
  ending_round, ending_time
FROM ufc.main.event_bouts(600057024)
ORDER BY match_number;
Link
events (league := VARCHAR, season := INTEGER) 2 examples

MMA event calendar (UFC, PFL, or Bellator) for one year, from ESPN

Named arguments
league := VARCHAR
ESPN league slug: ufc (default), pfl, or bellator (Bellator events end in 2024). Β· default "ufc"
season := INTEGER
Calendar year. NULL selects the current year. Β· default null
Returns columns
league VARCHAR
ESPN league slug: ufc, pfl, or bellator
event_id BIGINT
ESPN event identifier (use with event_bouts)
event_name VARCHAR
Event name, for example 'UFC 324: Gaethje vs. Pimblett'
short_name VARCHAR
Short event name, for example 'UFC 324' or 'UFC Fight Night'
start_time TIMESTAMP WITH TIME ZONE
Scheduled start of the first bout in UTC
season INTEGER
Calendar year the event belongs to
venue VARCHAR
Venue name
city VARCHAR
Venue city
region VARCHAR
Venue state, province, or region, when supplied
country VARCHAR
Venue country
status VARCHAR
Event status description, such as Scheduled or Final
event_state VARCHAR
Event state: pre (scheduled), in (live), or post (finished)
completed BOOLEAN
Whether every bout on the event has finished
bout_count INTEGER
Number of bouts ESPN lists for the event
broadcast VARCHAR
Primary broadcast or streaming service, when listed
Examples (2)

Every UFC event in 2025.

SELECT event_id, event_name, start_time, city, country, bout_count
FROM ufc.main.events(season := 2025)
ORDER BY start_time;

The 2026 PFL calendar.

SELECT event_id, event_name, start_time, event_state
FROM ufc.main.events(season := 2026, league := 'pfl')
ORDER BY start_time;
Link
feed_events (first_id INTEGER, last_id INTEGER) 1 example

List UFC live-data feed events whose ids fall in a range (event-id discovery)

Arguments
first_id INTEGER
First UFC feed event id to probe.
last_id INTEGER
Last UFC feed event id to probe (span <= 100).
Returns columns
event_id INTEGER
UFC live-data event identifier (sequential integer)
event_name VARCHAR
Event name, for example 'UFC 315: Muhammad vs. Della Maddalena'
start_time TIMESTAMP WITH TIME ZONE
Scheduled event start time in UTC
time_zone VARCHAR
Local UTC offset label supplied by UFC, such as GMT-08:00
status VARCHAR
Event status: Upcoming, Live, or Final
organization VARCHAR
Promoting organization name
venue VARCHAR
Venue name
city VARCHAR
Venue city
region VARCHAR
Venue state, province, or region, when supplied
country VARCHAR
Venue country
fight_count INTEGER
Number of fights currently on the card
main_event VARCHAR
Main event as 'Red fighter vs. Blue fighter'
Example

Find UFC feed events with ids 1285-1300.

SELECT event_id, event_name, start_time, status, fight_count
FROM ufc.main.feed_events(1285, 1300)
ORDER BY start_time;
Link
fight_card (event_id INTEGER) 1 example

Official UFC fight card for one event: one row per fight with both corners

Arguments
event_id INTEGER
UFC live-data event id (sequential, e.g. 1291 = 2025-11-08); find ids with feed_events().
Returns columns
event_id INTEGER
UFC live-data event identifier
event_name VARCHAR
Event name
event_start_time TIMESTAMP WITH TIME ZONE
Scheduled event start time in UTC
fight_id INTEGER
UFC live-data fight identifier
fight_order INTEGER
Running order on the card; 1 is the main event
card_segment VARCHAR
Card segment: Main, Prelims1 (prelims), or Prelims2 (early prelims)
card_segment_start_time TIMESTAMP WITH TIME ZONE
Scheduled start of this card segment in UTC
broadcaster VARCHAR
Broadcaster or streaming service for the segment
status VARCHAR
Fight status: Upcoming, Live, or Final
weight_class VARCHAR
Weight class description, such as Welterweight or Catch Weight
weight_class_abbreviation VARCHAR
UFC weight class abbreviation, such as WW
weight_range VARCHAR
Weight range in pounds for the class, such as '156-170'
catch_weight_lbs DECIMAL(5,1)
Agreed catch weight in pounds, when the bout is at catch weight
scheduled_rounds INTEGER
Number of scheduled rounds (3 or 5)
rule_set VARCHAR
Rule set description, such as '5 Rnd (5-5-5-5-5)'
referee_name VARCHAR
Assigned referee
red_fighter_id INTEGER
UFC fighter identifier in the red corner
red_fighter_name VARCHAR
Red-corner fighter's full name
red_record VARCHAR
Red-corner professional record as W-L-D when the card was published
blue_fighter_id INTEGER
UFC fighter identifier in the blue corner
blue_fighter_name VARCHAR
Blue-corner fighter's full name
blue_record VARCHAR
Blue-corner professional record as W-L-D when the card was published
Example

The card for UFC Fight Night on 2025-11-08 (feed id 1291).

SELECT fight_order, card_segment, weight_class, red_fighter_name,
  blue_fighter_name
FROM ufc.main.fight_card(1291)
ORDER BY fight_order;
Link
fight_results (event_id INTEGER) 2 examples

Official UFC results for one event: winner, method, round, time, judges, bonuses

Arguments
event_id INTEGER
UFC live-data event id (sequential, e.g. 1291 = 2025-11-08); find ids with feed_events().
Returns columns
event_id INTEGER
UFC live-data event identifier
fight_id INTEGER
UFC live-data fight identifier
fight_order INTEGER
Running order on the card; 1 is the main event
card_segment VARCHAR
Card segment: Main, Prelims1, or Prelims2
weight_class VARCHAR
Weight class description
status VARCHAR
Fight status: Upcoming, Live, or Final
outcome VARCHAR
win when one fighter won; otherwise Draw, NC, or null if not yet fought
winner_fighter_id INTEGER
UFC fighter identifier of the winner
winner_name VARCHAR
Winner's full name
loser_fighter_id INTEGER
UFC fighter identifier of the loser
loser_name VARCHAR
Loser's full name
method VARCHAR
Result method, such as KO/TKO, Submission, or Decision - Unanimous
ending_round INTEGER
Round in which the fight ended
ending_time VARCHAR
Clock time within the ending round, as M:SS
ending_time_seconds INTEGER
Seconds elapsed in the ending round
fight_duration_seconds INTEGER
Total fight time in seconds, assuming five-minute rounds
ending_strike VARCHAR
Finishing strike for a KO/TKO, such as Punch or Knee
ending_target VARCHAR
Target of the finishing strike, such as Head
ending_position VARCHAR
Position at the finish, such as In Clinch or On Ground
ending_submission VARCHAR
Submission hold for a submission finish
ending_notes VARCHAR
Free-text result notes from UFC, when supplied
judges_scores VARCHAR
Judges' totals as 'winner-loser' (red-blue when no winner), comma separated
fight_of_the_night BOOLEAN
Whether the bout won Fight of the Night
performance_bonus_names VARCHAR
Fighters who earned Performance of the Night, comma separated
referee_name VARCHAR
Referee
Examples (2)

Results of UFC feed event 1291.

SELECT fight_order, winner_name, loser_name, method, ending_round,
  ending_time
FROM ufc.main.fight_results(1291)
ORDER BY fight_order;

Every result on UFC feed event 1291 with the winner's reach advantage over the loser in inches (negative when the shorter-reach fighter won), from fight_results joined to card_fighters.

SELECT r.fight_order, r.winner_name, r.loser_name, r.method,
  w.reach_in - l.reach_in AS winner_reach_edge_in
FROM ufc.main.fight_results(1291) AS r
JOIN ufc.main.card_fighters(1291) AS w ON w.fight_id = r.fight_id AND w.fighter_id = r.winner_fighter_id
JOIN ufc.main.card_fighters(1291) AS l ON l.fight_id = r.fight_id AND l.fighter_id = r.loser_fighter_id
ORDER BY r.fight_order;
Link
fight_round_stats (fight_id INTEGER) 1 example

Official UFC per-round statistics for both fighters in one fight

Arguments
fight_id INTEGER
UFC live-data fight id, from fight_card() or fight_results().
Returns columns
fight_id INTEGER
UFC live-data fight identifier
event_id INTEGER
UFC live-data event identifier
fighter_id INTEGER
UFC fighter identifier
fighter_name VARCHAR
Fighter's full name
corner VARCHAR
Corner: Red or Blue
outcome VARCHAR
Bout outcome for this fighter: Win, Loss, Draw, or NC
round_number INTEGER
Round number
knockdowns INTEGER
Knockdowns scored
total_strikes_landed INTEGER
Total strikes landed, significant and non-significant
total_strikes_attempted INTEGER
Total strikes attempted
sig_strikes_landed INTEGER
Significant strikes landed
sig_strikes_attempted INTEGER
Significant strikes attempted
sig_strike_accuracy_pct DECIMAL(5,2)
Significant strike accuracy as a percentage (0-100)
sig_head_landed INTEGER
Significant strikes landed to the head
sig_head_attempted INTEGER
Significant strikes attempted to the head
sig_body_landed INTEGER
Significant strikes landed to the body
sig_body_attempted INTEGER
Significant strikes attempted to the body
sig_leg_landed INTEGER
Significant strikes landed to the legs
sig_leg_attempted INTEGER
Significant strikes attempted to the legs
sig_distance_landed INTEGER
Significant strikes landed at distance
sig_distance_attempted INTEGER
Significant strikes attempted at distance
sig_clinch_landed INTEGER
Significant strikes landed in the clinch
sig_clinch_attempted INTEGER
Significant strikes attempted in the clinch
sig_ground_landed INTEGER
Significant strikes landed on the ground
sig_ground_attempted INTEGER
Significant strikes attempted on the ground
takedowns_landed INTEGER
Takedowns landed
takedowns_attempted INTEGER
Takedowns attempted
takedown_accuracy_pct DECIMAL(5,2)
Takedown accuracy as a percentage (0-100)
reversals INTEGER
Reversals
submissions_attempted INTEGER
Submission attempts
control_seconds INTEGER
Seconds of positional control
distance_seconds INTEGER
Seconds spent fighting at distance
clinch_seconds INTEGER
Seconds spent in the clinch
ground_seconds INTEGER
Seconds spent on the ground
Example

Significant strikes per round in fight 12000.

SELECT round_number, fighter_name, sig_strikes_landed,
  sig_strikes_attempted, sig_head_landed
FROM ufc.main.fight_round_stats(12000)
ORDER BY round_number, corner DESC;
Link
fight_scorecards (fight_id INTEGER) 2 examples

Round-by-round judges' scores for one UFC fight that went to a decision

Arguments
fight_id INTEGER
UFC live-data fight id, from fight_card() or fight_results().
Returns columns
fight_id INTEGER
UFC live-data fight identifier
judge_id INTEGER
UFC judge identifier
judge_name VARCHAR
Judge's full name
round_number INTEGER
Round scored
red_fighter_id INTEGER
Red-corner UFC fighter identifier
red_fighter_name VARCHAR
Red-corner fighter's full name
red_score INTEGER
Points awarded to the red corner for the round (10-point must system)
blue_fighter_id INTEGER
Blue-corner UFC fighter identifier
blue_fighter_name VARCHAR
Blue-corner fighter's full name
blue_score INTEGER
Points awarded to the blue corner for the round
Examples (2)

How each judge scored every round of fight 12000.

SELECT judge_name, round_number, red_fighter_name, red_score,
  blue_fighter_name, blue_score
FROM ufc.main.fight_scorecards(12000)
ORDER BY judge_name, round_number;

Fight 12000 round by round: significant strikes landed by each corner next to how many judges scored the round for each corner (red-corner Navajo Stirling outlanded Ivan Erslan 31-12 in round 1 but won it on only one of three cards).

WITH strikes AS (SELECT round_number, max(sig_strikes_landed) FILTER (WHERE corner = 'Red') AS red_landed, max(sig_strikes_landed) FILTER (WHERE corner = 'Blue') AS blue_landed FROM ufc.main.fight_round_stats(12000) GROUP BY round_number), votes AS (SELECT round_number, count(*) FILTER (WHERE red_score > blue_score) AS judges_for_red, count(*) FILTER (WHERE blue_score > red_score) AS judges_for_blue FROM ufc.main.fight_scorecards(12000) GROUP BY round_number) SELECT round_number, red_landed, blue_landed, judges_for_red, judges_for_blue
FROM strikes
JOIN votes USING (round_number)
ORDER BY round_number;
Link
fight_stats (fight_id INTEGER) 1 example

Official UFC whole-fight statistics for both fighters in one fight

Arguments
fight_id INTEGER
UFC live-data fight id, from fight_card() or fight_results().
Returns columns
fight_id INTEGER
UFC live-data fight identifier
event_id INTEGER
UFC live-data event identifier
fighter_id INTEGER
UFC fighter identifier
fighter_name VARCHAR
Fighter's full name
corner VARCHAR
Corner: Red or Blue
outcome VARCHAR
Bout outcome for this fighter: Win, Loss, Draw, or NC
knockdowns INTEGER
Knockdowns scored
total_strikes_landed INTEGER
Total strikes landed, significant and non-significant
total_strikes_attempted INTEGER
Total strikes attempted
sig_strikes_landed INTEGER
Significant strikes landed
sig_strikes_attempted INTEGER
Significant strikes attempted
sig_strike_accuracy_pct DECIMAL(5,2)
Significant strike accuracy as a percentage (0-100)
sig_head_landed INTEGER
Significant strikes landed to the head
sig_head_attempted INTEGER
Significant strikes attempted to the head
sig_body_landed INTEGER
Significant strikes landed to the body
sig_body_attempted INTEGER
Significant strikes attempted to the body
sig_leg_landed INTEGER
Significant strikes landed to the legs
sig_leg_attempted INTEGER
Significant strikes attempted to the legs
sig_distance_landed INTEGER
Significant strikes landed at distance
sig_distance_attempted INTEGER
Significant strikes attempted at distance
sig_clinch_landed INTEGER
Significant strikes landed in the clinch
sig_clinch_attempted INTEGER
Significant strikes attempted in the clinch
sig_ground_landed INTEGER
Significant strikes landed on the ground
sig_ground_attempted INTEGER
Significant strikes attempted on the ground
takedowns_landed INTEGER
Takedowns landed
takedowns_attempted INTEGER
Takedowns attempted
takedown_accuracy_pct DECIMAL(5,2)
Takedown accuracy as a percentage (0-100)
reversals INTEGER
Reversals
submissions_attempted INTEGER
Submission attempts
control_seconds INTEGER
Seconds of positional control
distance_seconds INTEGER
Seconds spent fighting at distance
clinch_seconds INTEGER
Seconds spent in the clinch
ground_seconds INTEGER
Seconds spent on the ground
Example

Striking and grappling totals for fight 12000.

SELECT fighter_name, knockdowns, sig_strikes_landed, sig_strikes_attempted,
  sig_strike_accuracy_pct, takedowns_landed, control_seconds
FROM ufc.main.fight_stats(12000);
Link
fighter (fighter_id BIGINT) 1 example

One MMA fighter's profile and career record from ESPN

Arguments
fighter_id BIGINT
ESPN athlete id (for example 3022677 = Conor McGregor), as returned by event_bouts().
Returns columns
fighter_id BIGINT
ESPN athlete identifier
fighter_name VARCHAR
Full name
first_name VARCHAR
First name
last_name VARCHAR
Last name
nickname VARCHAR
Nickname, when known
gender VARCHAR
Gender as listed by ESPN
date_of_birth DATE
Date of birth
age INTEGER
Age in years
height_in DECIMAL(4,1)
Height in inches
weight_lbs DECIMAL(4,1)
Listed weight in pounds
reach_in DECIMAL(4,1)
Reach in inches
stance VARCHAR
Stance, such as Orthodox or Southpaw
fighting_style VARCHAR
Primary fighting style, such as Striker or Wrestler
weight_class VARCHAR
Current weight class
association VARCHAR
Gym or team association
citizenship VARCHAR
Citizenship country
active BOOLEAN
Whether ESPN lists the fighter as active
record VARCHAR
Professional record as W-L-D
wins INTEGER
Professional wins
losses INTEGER
Professional losses
draws INTEGER
Professional draws
ko_tko_wins INTEGER
Wins by KO or TKO
ko_tko_losses INTEGER
Losses by KO or TKO
submission_wins INTEGER
Wins by submission
submission_losses INTEGER
Losses by submission
Example

Conor McGregor's profile and finishing record.

SELECT fighter_name, nickname, record, ko_tko_wins, submission_wins,
  height_in, reach_in, stance
FROM ufc.main.fighter(3022677);
Link
fighter_career_stats (fighter_id BIGINT) 1 example

A fighter's per-fight striking, clinch, takedown, and ground statistics from ESPN

Arguments
fighter_id BIGINT
ESPN athlete id (for example 3022677 = Conor McGregor), as returned by event_bouts().
Returns columns
fighter_id BIGINT
ESPN athlete identifier
event_id BIGINT
ESPN event identifier
bout_id BIGINT
ESPN competition identifier for the bout
event_name VARCHAR
Event name
event_time TIMESTAMP WITH TIME ZONE
Event date and time in UTC
result VARCHAR
Result for this fighter: W, L, D, or NC
opponent_name VARCHAR
Opponent's name
knockdowns INTEGER
Knockdowns scored
total_strikes_landed INTEGER
Total strikes landed
total_strikes_attempted INTEGER
Total strikes attempted
total_strike_accuracy_pct DECIMAL(5,2)
Total strike accuracy percentage
sig_strikes_landed INTEGER
Significant strikes landed
sig_strikes_attempted INTEGER
Significant strikes attempted
sig_distance_head_landed INTEGER
Significant distance head strikes landed
sig_distance_head_attempted INTEGER
Significant distance head strikes attempted
sig_distance_body_landed INTEGER
Significant distance body strikes landed
sig_distance_body_attempted INTEGER
Significant distance body strikes attempted
sig_distance_leg_landed INTEGER
Significant distance leg strikes landed
sig_distance_leg_attempted INTEGER
Significant distance leg strikes attempted
head_target_pct DECIMAL(5,2)
Head significant-strike accuracy percent
body_target_pct DECIMAL(5,2)
Body significant-strike accuracy percent
leg_target_pct DECIMAL(5,2)
Leg significant-strike accuracy percent
sig_clinch_head_landed INTEGER
Significant clinch head strikes landed
sig_clinch_head_attempted INTEGER
Significant clinch head strikes attempted
sig_clinch_body_landed INTEGER
Significant clinch body strikes landed
sig_clinch_body_attempted INTEGER
Significant clinch body strikes attempted
sig_clinch_leg_landed INTEGER
Significant clinch leg strikes landed
sig_clinch_leg_attempted INTEGER
Significant clinch leg strikes attempted
takedowns_landed INTEGER
Takedowns landed
takedowns_attempted INTEGER
Takedowns attempted
takedown_slams INTEGER
Takedowns completed as slams
takedown_accuracy_pct DECIMAL(5,2)
Takedown accuracy percentage
reversals INTEGER
Reversals
sig_ground_head_landed INTEGER
Significant ground head strikes landed
sig_ground_head_attempted INTEGER
Significant ground head strikes attempted
sig_ground_body_landed INTEGER
Significant ground body strikes landed
sig_ground_body_attempted INTEGER
Significant ground body strikes attempted
sig_ground_leg_landed INTEGER
Significant ground leg strikes landed
sig_ground_leg_attempted INTEGER
Significant ground leg strikes attempted
advances INTEGER
Ground position advances
submissions_attempted INTEGER
Submission attempts
Example

Conor McGregor's striking by fight.

SELECT event_name, opponent_name, result, sig_strikes_landed,
  sig_strikes_attempted, takedowns_landed
FROM ufc.main.fighter_career_stats(3022677)
ORDER BY event_time DESC;
Link
fighter_fight_history (fighter_id BIGINT) 1 example

A fighter's professional fight history from ESPN, most recent first

Arguments
fighter_id BIGINT
ESPN athlete id (for example 3022677 = Conor McGregor), as returned by event_bouts().
Returns columns
fighter_id BIGINT
ESPN athlete identifier
fight_number INTEGER
Recency rank; 1 is the most recent fight
event_id BIGINT
ESPN event identifier
bout_id BIGINT
ESPN competition identifier for the bout
league_id INTEGER
ESPN numeric league identifier for the promotion
league VARCHAR
Promotion name when known to the worker: UFC, PFL, or Bellator
event_name VARCHAR
Event name
event_short_name VARCHAR
Short event name
event_time TIMESTAMP WITH TIME ZONE
Event date and time in UTC
result VARCHAR
Result for this fighter: W, L, D, or NC
opponent_id BIGINT
ESPN athlete identifier of the opponent
opponent_name VARCHAR
Opponent's name
method VARCHAR
Result method as ESPN displays it, such as KO/TKO or Decision - Unanimous
ending_round INTEGER
Round in which the fight ended
ending_time VARCHAR
Clock time within the ending round, as M:SS, when known
title_fight BOOLEAN
Whether the bout was a title fight
Example

Conor McGregor's fight history.

SELECT fight_number, event_time, event_name, opponent_name, result, method,
  ending_round
FROM ufc.main.fighter_fight_history(3022677)
ORDER BY fight_number;
Link

Try these queries

rankings_have_champions β€” The official rankings list a champion in every weight class.

SELECT count(*) >= 8 AS has_champions
FROM ufc.main.current_rankings
WHERE is_champion AND NOT pound_for_pound;

Uses current_rankings

current_season_has_events β€” ESPN lists UFC events for the current year.

SELECT count(*) > 0 AS populated FROM ufc.main.current_season_events;

Uses current_season_events

Fight 12000 round by round: significant strikes landed by each corner next to how many judges scored the round for each corner (red-corner Navajo Stirling outlanded Ivan Erslan 31-12 in round 1 but won it on only one of three cards).

WITH strikes AS (SELECT round_number, max(sig_strikes_landed) FILTER (WHERE corner = 'Red') AS red_landed, max(sig_strikes_landed) FILTER (WHERE corner = 'Blue') AS blue_landed FROM ufc.main.fight_round_stats(12000) GROUP BY round_number), votes AS (SELECT round_number, count(*) FILTER (WHERE red_score > blue_score) AS judges_for_red, count(*) FILTER (WHERE blue_score > red_score) AS judges_for_blue FROM ufc.main.fight_scorecards(12000) GROUP BY round_number) SELECT round_number, red_landed, blue_landed, judges_for_red, judges_for_blue
FROM strikes
JOIN votes USING (round_number)
ORDER BY round_number

Uses fight_round_statsfight_scorecards

Every result on UFC feed event 1291 with the winner's reach advantage over the loser in inches (negative when the shorter-reach fighter won), from fight_results joined to card_fighters.

SELECT r.fight_order, r.winner_name, r.loser_name, r.method,
  w.reach_in - l.reach_in AS winner_reach_edge_in
FROM ufc.main.fight_results(1291) AS r
JOIN ufc.main.card_fighters(1291) AS w ON w.fight_id = r.fight_id AND w.fighter_id = r.winner_fighter_id
JOIN ufc.main.card_fighters(1291) AS l ON l.fight_id = r.fight_id AND l.fighter_id = r.loser_fighter_id
ORDER BY r.fight_order

Uses fight_resultscard_fighters

Fighters on the UFC 324 card (2026-01-24, UFC feed event 1294) who hold a current ufc.com ranking, matched on ufc_athlete_url; a fighter appears once per list they are ranked on.

SELECT c.fighter_name, r.division, r.rank
FROM ufc.main.card_fighters(1294) AS c
JOIN ufc.main.current_rankings AS r USING (ufc_athlete_url)
ORDER BY r.rank, r.division, c.fighter_name

Uses card_fighterscurrent_rankings

The upcoming UFC schedule.

SELECT event_id, event_name, start_time, city, country, bout_count
FROM ufc.main.upcoming_events
ORDER BY start_time

Uses upcoming_events

19 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Who are the current UFC champions in every men's and women's weight class?
  • When and where is the next scheduled UFC event, and what is it called?
  • How many UFC events have already taken place this calendar year, and how many PFL events did ESPN list for 2026?
  • Using ESPN event id 600057024 (UFC 324), who won the main event and by what method?
  • Find the UFC live-data feed event id for UFC 324 (feed ids between 1290 and 1300) and name the two fighters in its main event.
  • Which fighter on UFC feed event 1291 had the longest reach, and how long was it?

UFC is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.