Golf
PGA Tour, DP World, LIV, LPGA, Champions and Korn Ferry leaderboards plus OWGR
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available Β· $10/month organization minimum
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;
| 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.
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;
INSTALL vgi FROM community;
LOAD vgi;
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
SELECT player_name, score_to_par
FROM golf.main.leaderboard(event_id := 401811941)
WHERE sort_order = 1;
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connectorβs deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
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;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'golf' AS golf
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT player_name, score_to_par
FROM golf.main.leaderboard(event_id := 401811941)
WHERE sort_order = 1;
Query Farm operates Golf for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
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;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use golf as the catalog alias for the query below.
4. Run a query
SELECT player_name, score_to_par
FROM golf.main.leaderboard(event_id := 401811941)
WHERE sort_order = 1;
Technical details
- Verified connector release
- v0.3.1
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
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
Leaderboards, schedules, hole-by-hole scorecards, PGA Tour season statistics and the Official World Golf Ranking, fetched on demand.
Data model
Tournaments are keyed by ESPN event_id and golfers by ESPN player_id, shared across tours. The ranking uses OWGR's own owgr_player_id. Scores to par are integers (E = 0); round scores are strokes.
Data comes from ESPN's undocumented golf endpoints and OWGR's public backend. This worker is not affiliated with ESPN, Disney, any tour or OWGR.
Sources and references
- ESPN Golf: tour schedules, leaderboards, scorecards and golfer profiles.
- Official World Golf Ranking: the current world ranking behind
current_world_rankings. - Disney Terms of Use: the terms that govern ESPN's data.
Catalog
Everything golf exposes once attached β read straight from the worker's
released build.
main 5 tables Β· 12 functions
Golf tournaments, players and world rankings
Schema 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;
current_leaderboard
PGA Tour leaderboard for the event in progress or most recently finished
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;
current_player_stats
Current PGA Tour season statistics, one row per player
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;
current_schedule
Current PGA Tour season schedule with winners, one row per tournament
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;
current_world_rankings
Current Official World Golf Ranking top 1,000, one row per golfer
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;
tours
Supported golf tours and the slug each tour argument accepts
List tour slugs.
SELECT tour, name, gender FROM golf.main.tours ORDER BY tour;
all_current_leaderboard ()
Current PGA Tour leaderboard (scan behind current_leaderboard)
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;
all_current_player_stats ()
Current PGA Tour season statistics (scan behind current_player_stats)
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;
all_current_schedule ()
Current PGA Tour season schedule (scan behind current_schedule)
Read the backing scan directly.
SELECT start_date, event_name, status
FROM golf.main.all_current_schedule()
ORDER BY start_date;
all_current_world_rankings ()
Current OWGR top 1,000 (scan behind current_world_rankings)
Read the backing scan directly.
SELECT rank, player_name, average_points
FROM golf.main.all_current_world_rankings()
ORDER BY rank
LIMIT 10;
all_tours ()
Supported golf tours and their slugs (scan behind the tours table)
List the supported tours.
SELECT tour, name FROM golf.main.all_tours() ORDER BY tour;
course_holes (event_id BIGINT, tour := VARCHAR)
Par and yardage per hole for a tournament's course setup
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;
leaderboard (event_id := BIGINT, tour := VARCHAR)
Full tournament leaderboard for a tour and ESPN event id
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;
player (player_id BIGINT)
Biographical profile and season summary for one golfer
Scottie Scheffler's profile.
SELECT player_name, birth_date, birth_city, college, turned_pro
FROM golf.main.player(9478);
player_scorecard (event_id BIGINT, player_id BIGINT, tour := VARCHAR)
Hole-by-hole scorecard for one golfer in one tournament
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;
schedule (season := INTEGER, tour := VARCHAR)
Tournament schedule and results for a tour season
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;
season_player_stats (season := INTEGER)
PGA Tour season statistics: FedExCup, earnings, scoring, driving, greens
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;
world_rankings (max_rank := INTEGER)
Current Official World Golf Ranking (OWGR) to a chosen depth
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;
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;
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
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
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.
Related workers
Cricket
Sports
Cricket matches, scorecards, ball-by-ball deliveries, standings, and ICC rankings as SQL tables
Formula 1
Sports
F1 standings, results, calendars, lap times, and session timing as SQL tables
MLB
Sports
MLB standings, schedules, box scores and player statistics