Golf Data
Golf data for PGA, LPGA, and DP World Tour via ESPN endpoints, with no API keys needed.
- CCM score
- 59 of 100
- skills.sh installs
- 824
- GitHub stars
- 274
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers tournament leaderboards, hole-by-hole scorecards, season schedules, golfer profiles and season stats, and golf news
- Includes the
sports-skills golfCLI commandsget_leaderboard,get_schedule,get_player_info,get_player_overview,get_scorecard, andget_news, selected with a--tourflag - Requires an explicit tour selection and takes player IDs from leaderboard results or ESPN golf URLs rather than guessing them
- Designed for queries on golf scores, schedules, and golfer form, while other sports and betting odds route to separate skills
Install
$ npx -y skills add machina-sports/sports-skills --skill golf-data -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Golf Data (PGA / LPGA / DP World Tour)
Before writing queries, consult references/api-reference.md for endpoints, player IDs, and score formats.
Setup
Before first use, check if the CLI is available:
which sports-skills || pip install sports-skills
If pip install fails with a Python version error, the package requires Python 3.10+. Find a compatible Python:
python3 --version # check version
# If < 3.10, try: python3.12 -m pip install sports-skills
# On macOS with Homebrew: /opt/homebrew/bin/python3.12 -m pip install sports-skills
No API keys required.
Quick Start
Prefer the CLI — it avoids Python import path issues:
sports-skills golf get_leaderboard --tour=pga
sports-skills golf get_schedule --tour=pga --year=2026
sports-skills golf get_news --tour=pga
CRITICAL: Before Any Query
CRITICAL: Before calling any data endpoint, verify:
- The
tourparameter is specified (pga,lpga, oreur) — there is no default tour. - Player IDs are obtained from
get_leaderboardresults or ESPN golf URLs — never guessed.
Important: Golf is Not a Team Sport
Details
- Repository
- github.com/machina-sports/sports-skills
- First seen
- Jun 3, 2026
Questions
What does the golf-data skill do?
The golf-data skill pulls PGA Tour, LPGA and DP World Tour data from ESPN public endpoints. It covers tournament leaderboards, scorecards, season schedules, golfer profiles and overviews, and golf news.
Does golf-data need an API key or account?
No, golf-data is zero config and needs no API keys. The skill calls public ESPN endpoints, and the CLI can be installed with pip install sports-skills.
How do I install the golf-data skill?
Run npx -y skills add machina-sports/sports-skills --skill golf-data -y in a project. The agent can then query golf scores, leaderboards and golfer profiles.
Can golf-data show live scores for the PGA Tour and LPGA?
Yes, golf-data returns the current tournament leaderboard for the PGA Tour, LPGA and DP World Tour, with each golfer's score relative to par. Use the tour parameter to choose the tour, since there is no default.
More from machina-sports/sports-skills
All 18Similar to Golf Data
tennis-dataSkillmachina-sports/sports-skills805 installsTennis scores, calendars, rankings, player profiles, and news for the ATP and WTA via ESPN endpoints.
mlb-dataSkillmachina-sports/sports-skills822 installsComprehensive MLB data skill pairing ESPN scores and rosters with pitch-level analytics and history back to 1901.
pp-espnSkillmvanhorn/printing-press-library3.9K installsCommand-line sports lookup for live scores, standings, schedules, and box scores across 10 leagues.
Livetennisapi McpMCP serverlivetennisapi125 starsLive tennis scores, players, fixtures, odds, and archive results from the Live Tennis API.