Skip to content

Golf

PGA Tour, DP World, LIV, LPGA, Champions and Korn Ferry leaderboards plus OWGR

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/golf/index.md to help me query Golf 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.

masters_2026_champion

Example output Β· captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT player_name, score_to_par
FROM golf.main.leaderboard(event_id := 401811941)
WHERE sort_order = 1;
Result
player_name score_to_par
Rory McIlroy -12

Quick start

Choose where to run Golf, 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 'golf' AS golf (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-golf'
);

3. Run a query

query.sql
SELECT player_name, score_to_par
FROM golf.main.leaderboard(event_id := 401811941)
WHERE sort_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 'golf' AS golf (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-golf'
);

Overview

Read-only professional golf leaderboards, schedules, statistics and world rankings

Catalog

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

golf 1 schema
main 5 tables Β· 12 functions

Golf tournaments, players and world rankings

Schema examples (5)
Examples (5)

Current PGA Tour top ten.

SELECT position, player_name, score_to_par, thru, status
FROM golf.main.current_leaderboard
ORDER BY sort_order
LIMIT 10;

Lowest single round in the current event.

SELECT player_name, least(round_1, round_2, round_3, round_4) AS best_round
FROM golf.main.current_leaderboard
ORDER BY best_round NULLS LAST
LIMIT 5;

The 2025 major champions with their season win totals and FedExCup points rank, joining the schedule's winner_id to that season's statistics.

SELECT s.event_name, s.winner_name, s.winning_score, p.wins AS season_wins,
  p.fedex_cup_rank
FROM golf.main.schedule(season := 2025) s
JOIN golf.main.season_player_stats(season := 2025) p ON p.player_id = s.winner_id
WHERE s.event_name IN ('Masters Tournament', 'PGA Championship', 'U.S. Open', 'The Open')
ORDER BY s.start_date;

Scottie Scheffler's average score to par on Augusta's par 3s, 4s and 5s at the 2026 Masters, with each group's average yardage from the course setup.

SELECT c.par, count(*) AS holes_played, round(avg(c.yards)) AS avg_yards,
  round(avg(s.score_to_par), 3) AS avg_to_par
FROM golf.main.player_scorecard(401811941, 9478) s
JOIN golf.main.course_holes(401811941) c ON c.course_id = s.course_id AND c.hole = s.hole
GROUP BY c.par
ORDER BY c.par;
1 more example

The 2026 Masters top ten with each golfer's current world ranking, joined on name because OWGR ids are not ESPN ids.

SELECT l.position, l.player_name, l.score_to_par, w.rank AS world_rank
FROM golf.main.leaderboard(event_id := 401811941) l
LEFT JOIN golf.main.current_world_rankings w ON w.player_name = l.player_name
ORDER BY l.sort_order
LIMIT 10;
Tables
current_leaderboard 2 examples34 cols

PGA Tour leaderboard for the event in progress or most recently finished

Columns
tour VARCHAR
Tour slug the event belongs to.
event_idnot null BIGINT
ESPN tournament identifier (opaque integer key).
event_name VARCHAR
Tournament name.
season INTEGER
Season year of the tournament.
event_status VARCHAR
Tournament status, for example Final, In Progress or Scheduled.
event_completed BOOLEAN
Whether the tournament is final.
entry_idnot null BIGINT
ESPN competitor identifier: the player id, or a team id in team events.
entry_type VARCHAR
athlete for individual entries or team for pairs/team events.
player_id BIGINT
ESPN golfer identifier (opaque integer key); NULL for team entries.
player_name VARCHAR
Golfer name, or the pairing name for a team entry.
player_short_name VARCHAR
Abbreviated golfer name, for example R. McIlroy.
country VARCHAR
Country the golfer represents, as ESPN labels the flag.
amateur BOOLEAN
Whether the golfer is playing as an amateur.
position VARCHAR
Displayed finishing or current position, for example 1, T3 or -.
position_number INTEGER
Numeric finishing place (1 = first) without the tie marker; NULL when unranked.
is_tied BOOLEAN
Whether the position is shared.
sort_order INTEGER
ESPN leaderboard order (1 = leader); ranks every entry including cuts.
status VARCHAR
Player status, for example Finish, Missed Cut or Withdrawn.
status_code VARCHAR
Machine status code, for example STATUS_FINISH or STATUS_CUT.
score_to_par INTEGER
Total score in strokes relative to par; negative is under par; E maps to 0.
score_to_par_display VARCHAR
ESPN's displayed score to par, for example -12, E or +3.
total_strokes INTEGER
Total strokes (count) across completed rounds.
round_1 INTEGER
Strokes in round 1; NULL when not played.
round_2 INTEGER
Strokes in round 2; NULL when not played.
round_3 INTEGER
Strokes in round 3; NULL when not played (for example after a cut).
round_4 INTEGER
Strokes in round 4; NULL when not played.
rounds_played INTEGER
Number of regulation rounds with a recorded score.
current_round INTEGER
Round number (1-based) the player is on or last completed; one past the final round for players who went to a playoff.
thru INTEGER
Holes completed in the current round (or playoff holes played); 18 when a round is finished.
in_playoff BOOLEAN
Whether the player took part in a playoff for the title.
tee_time TIMESTAMP WITH TIME ZONE
Tee time for the player's current or last round, in UTC.
earnings DECIMAL(14,2)
Prize money in US dollars for this entry; meaningful once the event is final.
fedex_cup_points DOUBLE
FedExCup points earned at this event (points); 0 for non-members and wherever ESPN publishes none (for example FedExCup Fall events).
movement INTEGER
Positions gained (positive) or lost during the current round.
ConstraintsPRIMARY KEY (event_id, entry_id)
Examples (2)

Current PGA Tour top ten.

SELECT position, player_name, score_to_par, thru, status
FROM golf.main.current_leaderboard
ORDER BY sort_order
LIMIT 10;

Lowest single round in the current event.

SELECT player_name, least(round_1, round_2, round_3, round_4) AS best_round
FROM golf.main.current_leaderboard
ORDER BY best_round NULLS LAST
LIMIT 5;
Link
current_player_stats 2 examples24 cols

Current PGA Tour season statistics, one row per player

Columns
season INTEGER
PGA Tour season year.
player_idnot null BIGINT
ESPN golfer identifier (opaque integer key).
player_name VARCHAR
Golfer name.
first_name VARCHAR
Given name.
last_name VARCHAR
Family name.
country VARCHAR
Country the golfer represents, as ESPN labels the flag.
age INTEGER
Current age in years.
fedex_cup_rank INTEGER
Rank by FedExCup points (1 = points leader). After the TOUR Championship this is the points order, not the final FedExCup finish decided by starting strokes.
fedex_cup_points DOUBLE
FedExCup points accumulated in the season (points).
earnings DECIMAL(14,2)
Official money won in US dollars.
events_played INTEGER
Count of tournaments started this season.
rounds_played INTEGER
Count of measured official rounds this season; NULL (with the per-round averages) when ESPN tracks none, typically for non-members.
cuts_made INTEGER
Count of tournaments in which the player survived the cut.
top_ten_finishes INTEGER
Count of finishes in tenth place or better.
wins INTEGER
Count of tournament victories this season.
scoring_average DOUBLE
Weighted scoring average per round.
driving_distance DOUBLE
Average driving distance in yards.
driving_accuracy_pct DOUBLE
Percentage of tee shots finishing in the fairway (0-100).
greens_in_regulation_pct DOUBLE
Percentage of greens hit in regulation (0-100).
putts_per_hole DOUBLE
ESPN's putts-per-hole average (labelled STROKESPERHOLE upstream).
sand_save_pct DOUBLE
Percentage of greenside bunker saves (0-100).
birdies_per_round DOUBLE
Average birdies per round.
last_tournament_name VARCHAR
The golfer's most recent tournament on any tour, as ESPN reports it.
last_tournament_end_date DATE
End date of that tournament.
ConstraintsPRIMARY KEY (player_id)
Examples (2)

Current FedExCup standings top ten.

SELECT fedex_cup_rank, player_name, fedex_cup_points, wins, earnings
FROM golf.main.current_player_stats
ORDER BY fedex_cup_rank
LIMIT 10;

Best scoring averages among regulars.

SELECT player_name, scoring_average, rounds_played
FROM golf.main.current_player_stats
WHERE rounds_played >= 40
ORDER BY scoring_average
LIMIT 10;
Link
current_schedule 2 examples16 cols

Current PGA Tour season schedule with winners, one row per tournament

Columns
tour VARCHAR
Tour slug.
season INTEGER
Season year.
event_idnot null BIGINT
ESPN tournament identifier; pass to leaderboard(event_id := ...).
event_name VARCHAR
Tournament name.
start_date DATE
First scheduled day of the tournament.
end_date DATE
Final scheduled day of the tournament.
status VARCHAR
Tournament status, for example Final, In Progress or Scheduled.
state VARCHAR
Lifecycle state: pre, in or post.
completed BOOLEAN
Whether the tournament is final.
field_size INTEGER
Number of entries ESPN lists for the event.
winner_id BIGINT
ESPN id (opaque integer key) of the winning player or team; NULL until final.
winner_name VARCHAR
Winning player, pairing or team; NULL until final.
winning_score VARCHAR
Winning score as displayed: to par for stroke play, points for cups.
winning_score_to_par INTEGER
Winning score in strokes relative to par, excluding playoff holes; NULL for match-play or cup events. Stableford events (the Barracuda Championship) carry points here.
playoff BOOLEAN
Whether the winner was decided in a playoff; NULL until the tournament is final.
broadcast VARCHAR
US broadcast networks listed by ESPN.
ConstraintsPRIMARY KEY (event_id)
Examples (2)

Winners so far this season.

SELECT start_date, event_name, winner_name, winning_score
FROM golf.main.current_schedule
WHERE completed
ORDER BY start_date;

Multiple winners this season.

SELECT winner_name, count(*) AS wins
FROM golf.main.current_schedule
WHERE completed
GROUP BY winner_name
HAVING count(*) > 1
ORDER BY wins DESC;
Link
current_world_rankings 2 examples19 cols

Current Official World Golf Ranking top 1,000, one row per golfer

Columns
rank INTEGER
Official World Golf Ranking position (1 = world number one).
is_tied BOOLEAN
Whether the ranking position is shared.
owgr_player_idnot null BIGINT
OWGR player identifier (not the ESPN id).
player_name VARCHAR
Golfer name.
first_name VARCHAR
Given name.
last_name VARCHAR
Family name.
country VARCHAR
Country the golfer represents.
country_code VARCHAR
IOC country code, for example USA or NIR.
region VARCHAR
OWGR region, for example Europe or North America.
birth_date DATE
Date of birth.
is_amateur BOOLEAN
Whether the golfer is an amateur.
total_points DOUBLE
Total ranking points over the two-year window.
average_points DOUBLE
Average ranking points per event (total points divided by the applied divisor).
events_played INTEGER
Events counted in the window (actual divisor).
divisor_applied INTEGER
Number of events used as the divisor, after the 40-event minimum and 52-event maximum.
points_won DOUBLE
Ranking points won in the two-year window before decay (points).
points_lost DOUBLE
Points lost to the ranking's time decay (negative).
last_week_rank INTEGER
Rank in the previous weekly ranking; NULL when unranked.
end_last_year_rank INTEGER
Rank at the end of the previous calendar year; NULL when the golfer was unranked then.
ConstraintsPRIMARY KEY (owgr_player_id)
Examples (2)

World top ten.

SELECT rank, player_name, country, average_points
FROM golf.main.current_world_rankings
ORDER BY rank
LIMIT 10;

Top-100 golfers by country.

SELECT country, count(*) AS golfers
FROM golf.main.current_world_rankings
WHERE rank <= 100
GROUP BY country
ORDER BY golfers DESC;
Link
tours 1 example6 cols

Supported golf tours and the slug each tour argument accepts

Columns
tournot null VARCHAR
Tour slug accepted by every tour argument, for example pga or liv.
name VARCHAR
Tour name.
abbreviation VARCHAR
Short tour abbreviation.
espn_league_id INTEGER
ESPN league identifier for the tour (opaque integer key).
gender VARCHAR
Field gender: men or women.
has_season_stats BOOLEAN
Whether season_player_stats() covers this tour (PGA Tour only).
ConstraintsPRIMARY KEY (tour)
Example

List tour slugs.

SELECT tour, name, gender FROM golf.main.tours ORDER BY tour;
Link
Table functions
all_current_leaderboard () 1 example

Current PGA Tour leaderboard (scan behind current_leaderboard)

No arguments
Returns columns
tour VARCHAR
Tour slug the event belongs to
event_id BIGINT
ESPN tournament identifier (opaque integer key)
event_name VARCHAR
Tournament name
season INTEGER
Season year of the tournament
event_status VARCHAR
Tournament status, for example Final, In Progress or Scheduled
event_completed BOOLEAN
Whether the tournament is final
entry_id BIGINT
ESPN competitor identifier: the player id, or a team id in team events
entry_type VARCHAR
athlete for individual entries or team for pairs/team events
player_id BIGINT
ESPN golfer identifier (opaque integer key); NULL for team entries
player_name VARCHAR
Golfer name, or the pairing name for a team entry
player_short_name VARCHAR
Abbreviated golfer name, for example R. McIlroy
country VARCHAR
Country the golfer represents, as ESPN labels the flag
amateur BOOLEAN
Whether the golfer is playing as an amateur
position VARCHAR
Displayed finishing or current position, for example 1, T3 or -
position_number INTEGER
Numeric finishing place (1 = first) without the tie marker; NULL when unranked
is_tied BOOLEAN
Whether the position is shared
sort_order INTEGER
ESPN leaderboard order (1 = leader); ranks every entry including cuts
status VARCHAR
Player status, for example Finish, Missed Cut or Withdrawn
status_code VARCHAR
Machine status code, for example STATUS_FINISH or STATUS_CUT
score_to_par INTEGER
Total score in strokes relative to par; negative is under par; E maps to 0
score_to_par_display VARCHAR
ESPN's displayed score to par, for example -12, E or +3
total_strokes INTEGER
Total strokes (count) across completed rounds
round_1 INTEGER
Strokes in round 1; NULL when not played
round_2 INTEGER
Strokes in round 2; NULL when not played
round_3 INTEGER
Strokes in round 3; NULL when not played (for example after a cut)
round_4 INTEGER
Strokes in round 4; NULL when not played
rounds_played INTEGER
Number of regulation rounds with a recorded score
current_round INTEGER
Round number (1-based) the player is on or last completed; one past the final round for players who went to a playoff
thru INTEGER
Holes completed in the current round (or playoff holes played); 18 when a round is finished
in_playoff BOOLEAN
Whether the player took part in a playoff for the title
tee_time TIMESTAMP WITH TIME ZONE
Tee time for the player's current or last round, in UTC
earnings DECIMAL(14,2)
Prize money in US dollars for this entry; meaningful once the event is final
fedex_cup_points DOUBLE
FedExCup points earned at this event (points); 0 for non-members and wherever ESPN publishes none (for example FedExCup Fall events)
movement INTEGER
Positions gained (positive) or lost during the current round
Example

Read the backing scan directly.

SELECT event_name, position, player_name, score_to_par, thru
FROM golf.main.all_current_leaderboard()
ORDER BY sort_order
LIMIT 10;
Link
all_current_player_stats () 1 example

Current PGA Tour season statistics (scan behind current_player_stats)

No arguments
Returns columns
season INTEGER
PGA Tour season year
player_id BIGINT
ESPN golfer identifier (opaque integer key)
player_name VARCHAR
Golfer name
first_name VARCHAR
Given name
last_name VARCHAR
Family name
country VARCHAR
Country the golfer represents, as ESPN labels the flag
age INTEGER
Current age in years
fedex_cup_rank INTEGER
Rank by FedExCup points (1 = points leader). After the TOUR Championship this is the points order, not the final FedExCup finish decided by starting strokes
fedex_cup_points DOUBLE
FedExCup points accumulated in the season (points)
earnings DECIMAL(14,2)
Official money won in US dollars
events_played INTEGER
Count of tournaments started this season
rounds_played INTEGER
Count of measured official rounds this season; NULL (with the per-round averages) when ESPN tracks none, typically for non-members
cuts_made INTEGER
Count of tournaments in which the player survived the cut
top_ten_finishes INTEGER
Count of finishes in tenth place or better
wins INTEGER
Count of tournament victories this season
scoring_average DOUBLE
Weighted scoring average per round
driving_distance DOUBLE
Average driving distance in yards
driving_accuracy_pct DOUBLE
Percentage of tee shots finishing in the fairway (0-100)
greens_in_regulation_pct DOUBLE
Percentage of greens hit in regulation (0-100)
putts_per_hole DOUBLE
ESPN's putts-per-hole average (labelled STROKESPERHOLE upstream)
sand_save_pct DOUBLE
Percentage of greenside bunker saves (0-100)
birdies_per_round DOUBLE
Average birdies per round
last_tournament_name VARCHAR
The golfer's most recent tournament on any tour, as ESPN reports it
last_tournament_end_date DATE
End date of that tournament
Example

Read the backing scan directly.

SELECT fedex_cup_rank, player_name, fedex_cup_points
FROM golf.main.all_current_player_stats()
ORDER BY fedex_cup_rank
LIMIT 10;
Link
all_current_schedule () 1 example

Current PGA Tour season schedule (scan behind current_schedule)

No arguments
Returns columns
tour VARCHAR
Tour slug
season INTEGER
Season year
event_id BIGINT
ESPN tournament identifier; pass to leaderboard(event_id := ...)
event_name VARCHAR
Tournament name
start_date DATE
First scheduled day of the tournament
end_date DATE
Final scheduled day of the tournament
status VARCHAR
Tournament status, for example Final, In Progress or Scheduled
state VARCHAR
Lifecycle state: pre, in or post
completed BOOLEAN
Whether the tournament is final
field_size INTEGER
Number of entries ESPN lists for the event
winner_id BIGINT
ESPN id (opaque integer key) of the winning player or team; NULL until final
winner_name VARCHAR
Winning player, pairing or team; NULL until final
winning_score VARCHAR
Winning score as displayed: to par for stroke play, points for cups
winning_score_to_par INTEGER
Winning score in strokes relative to par, excluding playoff holes; NULL for match-play or cup events. Stableford events (the Barracuda Championship) carry points here
playoff BOOLEAN
Whether the winner was decided in a playoff; NULL until the tournament is final
broadcast VARCHAR
US broadcast networks listed by ESPN
Example

Read the backing scan directly.

SELECT start_date, event_name, status
FROM golf.main.all_current_schedule()
ORDER BY start_date;
Link
all_current_world_rankings () 1 example

Current OWGR top 1,000 (scan behind current_world_rankings)

No arguments
Returns columns
rank INTEGER
Official World Golf Ranking position (1 = world number one)
is_tied BOOLEAN
Whether the ranking position is shared
owgr_player_id BIGINT
OWGR player identifier (not the ESPN id)
player_name VARCHAR
Golfer name
first_name VARCHAR
Given name
last_name VARCHAR
Family name
country VARCHAR
Country the golfer represents
country_code VARCHAR
IOC country code, for example USA or NIR
region VARCHAR
OWGR region, for example Europe or North America
birth_date DATE
Date of birth
is_amateur BOOLEAN
Whether the golfer is an amateur
total_points DOUBLE
Total ranking points over the two-year window
average_points DOUBLE
Average ranking points per event (total points divided by the applied divisor)
events_played INTEGER
Events counted in the window (actual divisor)
divisor_applied INTEGER
Number of events used as the divisor, after the 40-event minimum and 52-event maximum
points_won DOUBLE
Ranking points won in the two-year window before decay (points)
points_lost DOUBLE
Points lost to the ranking's time decay (negative)
last_week_rank INTEGER
Rank in the previous weekly ranking; NULL when unranked
end_last_year_rank INTEGER
Rank at the end of the previous calendar year; NULL when the golfer was unranked then
Example

Read the backing scan directly.

SELECT rank, player_name, average_points
FROM golf.main.all_current_world_rankings()
ORDER BY rank
LIMIT 10;
Link
all_tours () 1 example

Supported golf tours and their slugs (scan behind the tours table)

No arguments
Returns columns
tour VARCHAR
Tour slug accepted by every tour argument, for example pga or liv
name VARCHAR
Tour name
abbreviation VARCHAR
Short tour abbreviation
espn_league_id INTEGER
ESPN league identifier for the tour (opaque integer key)
gender VARCHAR
Field gender: men or women
has_season_stats BOOLEAN
Whether season_player_stats() covers this tour (PGA Tour only)
Example

List the supported tours.

SELECT tour, name FROM golf.main.all_tours() ORDER BY tour;
Link
course_holes (event_id BIGINT, tour := VARCHAR) 2 examples

Par and yardage per hole for a tournament's course setup

Positional arguments
event_id BIGINT
ESPN tournament id from schedule().
Named arguments
tour := VARCHAR
Tour slug: pga (PGA Tour), eur (DP World Tour), liv (LIV Golf), lpga (LPGA Tour), champions-tour (PGA Tour Champions) or ntw (Korn Ferry Tour). Β· default "pga"
Returns columns
tour VARCHAR
Tour slug
event_id BIGINT
ESPN tournament identifier
course_id BIGINT
ESPN course identifier
course_name VARCHAR
Course name
host_course BOOLEAN
Whether this is the event's host course
course_par INTEGER
Total par for the course
course_yards INTEGER
Total yardage for the course
hole INTEGER
Hole number, 1-18
par INTEGER
Par for the hole
yards INTEGER
Hole yardage as set up for the event
Examples (2)

Augusta National's 2026 Masters setup.

SELECT hole, par, yards
FROM golf.main.course_holes(401811941)
ORDER BY hole;

Scottie Scheffler's average score to par on Augusta's par 3s, 4s and 5s at the 2026 Masters, with each group's average yardage from the course setup.

SELECT c.par, count(*) AS holes_played, round(avg(c.yards)) AS avg_yards,
  round(avg(s.score_to_par), 3) AS avg_to_par
FROM golf.main.player_scorecard(401811941, 9478) s
JOIN golf.main.course_holes(401811941) c ON c.course_id = s.course_id AND c.hole = s.hole
GROUP BY c.par
ORDER BY c.par;
Link
leaderboard (event_id := BIGINT, tour := VARCHAR) 3 examples

Full tournament leaderboard for a tour and ESPN event id

Named arguments
event_id := BIGINT
ESPN tournament id from schedule(). NULL selects the current or most recent event. Β· default null
tour := VARCHAR
Tour slug: pga (PGA Tour), eur (DP World Tour), liv (LIV Golf), lpga (LPGA Tour), champions-tour (PGA Tour Champions) or ntw (Korn Ferry Tour). Β· default "pga"
Returns columns
tour VARCHAR
Tour slug the event belongs to
event_id BIGINT
ESPN tournament identifier (opaque integer key)
event_name VARCHAR
Tournament name
season INTEGER
Season year of the tournament
event_status VARCHAR
Tournament status, for example Final, In Progress or Scheduled
event_completed BOOLEAN
Whether the tournament is final
entry_id BIGINT
ESPN competitor identifier: the player id, or a team id in team events
entry_type VARCHAR
athlete for individual entries or team for pairs/team events
player_id BIGINT
ESPN golfer identifier (opaque integer key); NULL for team entries
player_name VARCHAR
Golfer name, or the pairing name for a team entry
player_short_name VARCHAR
Abbreviated golfer name, for example R. McIlroy
country VARCHAR
Country the golfer represents, as ESPN labels the flag
amateur BOOLEAN
Whether the golfer is playing as an amateur
position VARCHAR
Displayed finishing or current position, for example 1, T3 or -
position_number INTEGER
Numeric finishing place (1 = first) without the tie marker; NULL when unranked
is_tied BOOLEAN
Whether the position is shared
sort_order INTEGER
ESPN leaderboard order (1 = leader); ranks every entry including cuts
status VARCHAR
Player status, for example Finish, Missed Cut or Withdrawn
status_code VARCHAR
Machine status code, for example STATUS_FINISH or STATUS_CUT
score_to_par INTEGER
Total score in strokes relative to par; negative is under par; E maps to 0
score_to_par_display VARCHAR
ESPN's displayed score to par, for example -12, E or +3
total_strokes INTEGER
Total strokes (count) across completed rounds
round_1 INTEGER
Strokes in round 1; NULL when not played
round_2 INTEGER
Strokes in round 2; NULL when not played
round_3 INTEGER
Strokes in round 3; NULL when not played (for example after a cut)
round_4 INTEGER
Strokes in round 4; NULL when not played
rounds_played INTEGER
Number of regulation rounds with a recorded score
current_round INTEGER
Round number (1-based) the player is on or last completed; one past the final round for players who went to a playoff
thru INTEGER
Holes completed in the current round (or playoff holes played); 18 when a round is finished
in_playoff BOOLEAN
Whether the player took part in a playoff for the title
tee_time TIMESTAMP WITH TIME ZONE
Tee time for the player's current or last round, in UTC
earnings DECIMAL(14,2)
Prize money in US dollars for this entry; meaningful once the event is final
fedex_cup_points DOUBLE
FedExCup points earned at this event (points); 0 for non-members and wherever ESPN publishes none (for example FedExCup Fall events)
movement INTEGER
Positions gained (positive) or lost during the current round
Examples (3)

The final 2026 Masters leaderboard.

SELECT position, player_name, score_to_par, round_1, round_2, round_3,
  round_4, earnings
FROM golf.main.leaderboard(event_id := 401811941)
ORDER BY sort_order;

Top ten at LIV Golf Indianapolis 2026.

SELECT position, player_name, score_to_par, total_strokes
FROM golf.main.leaderboard(tour := 'liv', event_id := 401811430)
ORDER BY sort_order
LIMIT 10;

The 2026 Masters top ten with each golfer's current world ranking, joined on name because OWGR ids are not ESPN ids.

SELECT l.position, l.player_name, l.score_to_par, w.rank AS world_rank
FROM golf.main.leaderboard(event_id := 401811941) l
LEFT JOIN golf.main.current_world_rankings w ON w.player_name = l.player_name
ORDER BY l.sort_order
LIMIT 10;
Link
player (player_id BIGINT) 1 example

Biographical profile and season summary for one golfer

Arguments
player_id BIGINT
ESPN golfer id (shared across tours).
Returns columns
player_id BIGINT
ESPN golfer identifier, shared across tours
player_name VARCHAR
Golfer name
first_name VARCHAR
Given name
last_name VARCHAR
Family name
birth_date DATE
Date of birth
age INTEGER
Current age in years
gender VARCHAR
Gender as reported by ESPN
citizenship VARCHAR
Country of citizenship
birth_city VARCHAR
City of birth
birth_state VARCHAR
State or region of birth
birth_country VARCHAR
Country of birth
height VARCHAR
Displayed height, for example 6' 3"
weight VARCHAR
Displayed weight, for example 200 lbs
hand VARCHAR
Playing hand: Right or Left
turned_pro INTEGER
Year the golfer turned professional
debut_year INTEGER
Year of the golfer's tour debut
college VARCHAR
College attended, when any
status VARCHAR
ESPN roster status, for example Active
season_scoring_average DOUBLE
Current-season scoring average in ESPN's summary
season_earnings DECIMAL(14,2)
Current-season official money in US dollars
season_fedex_cup_points DOUBLE
Current-season FedExCup points
season_fedex_cup_rank INTEGER
Current-season FedExCup rank
Example

Scottie Scheffler's profile.

SELECT player_name, birth_date, birth_city, college, turned_pro
FROM golf.main.player(9478);
Link
player_scorecard (event_id BIGINT, player_id BIGINT, tour := VARCHAR) 3 examples

Hole-by-hole scorecard for one golfer in one tournament

Positional arguments
event_id BIGINT
ESPN tournament id from schedule().
player_id BIGINT
ESPN golfer id from leaderboard().
Named arguments
tour := VARCHAR
Tour slug: pga (PGA Tour), eur (DP World Tour), liv (LIV Golf), lpga (LPGA Tour), champions-tour (PGA Tour Champions) or ntw (Korn Ferry Tour). Β· default "pga"
Returns columns
tour VARCHAR
Tour slug
event_id BIGINT
ESPN tournament identifier
player_id BIGINT
ESPN golfer identifier
round INTEGER
Round number, 1-based
hole INTEGER
Hole number, 1-18
par INTEGER
Par for the hole
strokes INTEGER
Strokes the player took on the hole
score_to_par INTEGER
Strokes minus par: -1 birdie, 0 par, +1 bogey
score_type VARCHAR
ESPN's result label, for example BIRDIE, PAR, BOGEY or EAGLE
round_strokes INTEGER
Total strokes for the round
round_score_to_par_display VARCHAR
Displayed round score to par, for example -5
round_out_strokes INTEGER
Strokes on the front nine of the round
round_in_strokes INTEGER
Strokes on the back nine of the round
tee_time TIMESTAMP WITH TIME ZONE
Round tee time in UTC
course_id BIGINT
ESPN course identifier for the round
Examples (3)

Scottie Scheffler's 2026 Masters scorecard.

SELECT round, hole, par, strokes, score_type
FROM golf.main.player_scorecard(401811941, 9478)
ORDER BY round, hole;

Rory McIlroy's 2026 Masters birdies, pars and bogeys.

SELECT score_type, count(*) AS holes
FROM golf.main.player_scorecard(401811941, 3470)
GROUP BY score_type
ORDER BY holes DESC;

Scottie Scheffler's average score to par on Augusta's par 3s, 4s and 5s at the 2026 Masters, with each group's average yardage from the course setup.

SELECT c.par, count(*) AS holes_played, round(avg(c.yards)) AS avg_yards,
  round(avg(s.score_to_par), 3) AS avg_to_par
FROM golf.main.player_scorecard(401811941, 9478) s
JOIN golf.main.course_holes(401811941) c ON c.course_id = s.course_id AND c.hole = s.hole
GROUP BY c.par
ORDER BY c.par;
Link
schedule (season := INTEGER, tour := VARCHAR) 3 examples

Tournament schedule and results for a tour season

Named arguments
season := INTEGER
Season year. NULL selects the tour's current season. Β· default null
tour := VARCHAR
Tour slug: pga (PGA Tour), eur (DP World Tour), liv (LIV Golf), lpga (LPGA Tour), champions-tour (PGA Tour Champions) or ntw (Korn Ferry Tour). Β· default "pga"
Returns columns
tour VARCHAR
Tour slug
season INTEGER
Season year
event_id BIGINT
ESPN tournament identifier; pass to leaderboard(event_id := ...)
event_name VARCHAR
Tournament name
start_date DATE
First scheduled day of the tournament
end_date DATE
Final scheduled day of the tournament
status VARCHAR
Tournament status, for example Final, In Progress or Scheduled
state VARCHAR
Lifecycle state: pre, in or post
completed BOOLEAN
Whether the tournament is final
field_size INTEGER
Number of entries ESPN lists for the event
winner_id BIGINT
ESPN id (opaque integer key) of the winning player or team; NULL until final
winner_name VARCHAR
Winning player, pairing or team; NULL until final
winning_score VARCHAR
Winning score as displayed: to par for stroke play, points for cups
winning_score_to_par INTEGER
Winning score in strokes relative to par, excluding playoff holes; NULL for match-play or cup events. Stableford events (the Barracuda Championship) carry points here
playoff BOOLEAN
Whether the winner was decided in a playoff; NULL until the tournament is final
broadcast VARCHAR
US broadcast networks listed by ESPN
Examples (3)

Every 2025 PGA Tour winner.

SELECT start_date, event_name, winner_name, winning_score
FROM golf.main.schedule(season := 2025)
ORDER BY start_date;

The current LPGA Tour calendar.

SELECT start_date, event_name, status
FROM golf.main.schedule(tour := 'lpga')
ORDER BY start_date;

The 2025 major champions with their season win totals and FedExCup points rank, joining the schedule's winner_id to that season's statistics.

SELECT s.event_name, s.winner_name, s.winning_score, p.wins AS season_wins,
  p.fedex_cup_rank
FROM golf.main.schedule(season := 2025) s
JOIN golf.main.season_player_stats(season := 2025) p ON p.player_id = s.winner_id
WHERE s.event_name IN ('Masters Tournament', 'PGA Championship', 'U.S. Open', 'The Open')
ORDER BY s.start_date;
Link
season_player_stats (season := INTEGER) 2 examples

PGA Tour season statistics: FedExCup, earnings, scoring, driving, greens

Named arguments
season := INTEGER
PGA Tour season year. NULL selects the current season. Β· default null
Returns columns
season INTEGER
PGA Tour season year
player_id BIGINT
ESPN golfer identifier (opaque integer key)
player_name VARCHAR
Golfer name
first_name VARCHAR
Given name
last_name VARCHAR
Family name
country VARCHAR
Country the golfer represents, as ESPN labels the flag
age INTEGER
Current age in years
fedex_cup_rank INTEGER
Rank by FedExCup points (1 = points leader). After the TOUR Championship this is the points order, not the final FedExCup finish decided by starting strokes
fedex_cup_points DOUBLE
FedExCup points accumulated in the season (points)
earnings DECIMAL(14,2)
Official money won in US dollars
events_played INTEGER
Count of tournaments started this season
rounds_played INTEGER
Count of measured official rounds this season; NULL (with the per-round averages) when ESPN tracks none, typically for non-members
cuts_made INTEGER
Count of tournaments in which the player survived the cut
top_ten_finishes INTEGER
Count of finishes in tenth place or better
wins INTEGER
Count of tournament victories this season
scoring_average DOUBLE
Weighted scoring average per round
driving_distance DOUBLE
Average driving distance in yards
driving_accuracy_pct DOUBLE
Percentage of tee shots finishing in the fairway (0-100)
greens_in_regulation_pct DOUBLE
Percentage of greens hit in regulation (0-100)
putts_per_hole DOUBLE
ESPN's putts-per-hole average (labelled STROKESPERHOLE upstream)
sand_save_pct DOUBLE
Percentage of greenside bunker saves (0-100)
birdies_per_round DOUBLE
Average birdies per round
last_tournament_name VARCHAR
The golfer's most recent tournament on any tour, as ESPN reports it
last_tournament_end_date DATE
End date of that tournament
Examples (2)

The 2025 FedExCup points top ten.

SELECT fedex_cup_rank, player_name, fedex_cup_points, earnings, wins,
  scoring_average
FROM golf.main.season_player_stats(season := 2025)
ORDER BY fedex_cup_rank
LIMIT 10;

Longest 2025 drivers with at least 40 rounds.

SELECT player_name, driving_distance, driving_accuracy_pct
FROM golf.main.season_player_stats(season := 2025)
WHERE rounds_played >= 40
ORDER BY driving_distance DESC
LIMIT 10;
Link
world_rankings (max_rank := INTEGER) 1 example

Current Official World Golf Ranking (OWGR) to a chosen depth

Named arguments
max_rank := INTEGER
How deep into the ranking to read; each 1,000 ranks is one upstream request. Β· default 1000
Returns columns
rank INTEGER
Official World Golf Ranking position (1 = world number one)
is_tied BOOLEAN
Whether the ranking position is shared
owgr_player_id BIGINT
OWGR player identifier (not the ESPN id)
player_name VARCHAR
Golfer name
first_name VARCHAR
Given name
last_name VARCHAR
Family name
country VARCHAR
Country the golfer represents
country_code VARCHAR
IOC country code, for example USA or NIR
region VARCHAR
OWGR region, for example Europe or North America
birth_date DATE
Date of birth
is_amateur BOOLEAN
Whether the golfer is an amateur
total_points DOUBLE
Total ranking points over the two-year window
average_points DOUBLE
Average ranking points per event (total points divided by the applied divisor)
events_played INTEGER
Events counted in the window (actual divisor)
divisor_applied INTEGER
Number of events used as the divisor, after the 40-event minimum and 52-event maximum
points_won DOUBLE
Ranking points won in the two-year window before decay (points)
points_lost DOUBLE
Points lost to the ranking's time decay (negative)
last_week_rank INTEGER
Rank in the previous weekly ranking; NULL when unranked
end_last_year_rank INTEGER
Rank at the end of the previous calendar year; NULL when the golfer was unranked then
Example

Japanese golfers in the top 2000.

SELECT rank, player_name, country, average_points, events_played
FROM golf.main.world_rankings(max_rank := 2000)
WHERE country_code = 'JPN'
ORDER BY rank;
Link

Try these queries

six_tours_supported β€” The catalog covers six tours.

SELECT count(*) AS tours FROM golf.main.tours;

Uses tours

scorecard_matches_round_totals β€” Scottie Scheffler's 2026 Masters hole scores sum to his round totals.

SELECT bool_and(total = round_strokes) AS consistent
FROM (SELECT round, sum(strokes) AS total, any_value(round_strokes) AS round_strokes FROM golf.main.player_scorecard(401811941, 9478) GROUP BY round);

Uses player_scorecard

world_rankings_are_populated β€” The OWGR table has a world number one.

SELECT count(*) >= 1 AS has_leader
FROM golf.main.current_world_rankings
WHERE rank = 1;

Uses current_world_rankings

Current PGA Tour top ten.

SELECT position, player_name, score_to_par, thru, status
FROM golf.main.current_leaderboard
ORDER BY sort_order
LIMIT 10

Uses current_leaderboard

The 2025 major champions with their season win totals and FedExCup points rank, joining the schedule's winner_id to that season's statistics.

SELECT s.event_name, s.winner_name, s.winning_score, p.wins AS season_wins,
  p.fedex_cup_rank
FROM golf.main.schedule(season := 2025) s
JOIN golf.main.season_player_stats(season := 2025) p ON p.player_id = s.winner_id
WHERE s.event_name IN ('Masters Tournament', 'PGA Championship', 'U.S. Open', 'The Open')
ORDER BY s.start_date

Uses scheduleseason_player_stats

The 2026 Masters top ten with each golfer's current world ranking, joined on name because OWGR ids are not ESPN ids.

SELECT l.position, l.player_name, l.score_to_par, w.rank AS world_rank
FROM golf.main.leaderboard(event_id := 401811941) l
LEFT JOIN golf.main.current_world_rankings w ON w.player_name = l.player_name
ORDER BY l.sort_order
LIMIT 10

Uses leaderboardcurrent_world_rankings

25 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.

  • Show the top ten finishers at the 2026 Masters with their scores to par.
  • How many birdies did Scottie Scheffler (ESPN id 9478) make at the 2026 Masters?
  • List the par-3 holes at Augusta National for the 2026 Masters and their yardages.
  • List every 2025 PGA Tour event and who won it.
  • Which five PGA Tour players earned the most FedExCup points in 2025?
  • Show the top five at the 2026 LIV Golf Indianapolis event (ESPN event 401811430).

Golf 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.