
Golf Data
Pulls live PGA Tour, LPGA, and DP World Tour data from ESPN's public endpoints without any API keys. You get tournament leaderboards, hole-by-hole scorecards, season schedules, golfer profiles with stats, and news. The skill is clear about what golf data looks like: individual athletes in multi-day tournaments with scores relative to par, not team matchups. It's direct about what doesn't exist too, no FedEx Cup standings or betting odds here. If you're building anything that needs current golf scores or player info across the major tours, this handles the ESPN API quirks so you don't have to figure out their player ID system or score formats yourself.
- skills.sh installs
- 780
- GitHub stars
- 268
- last updated
- Aug 21, 2026
Install
$ npx -y skills add machina-sports/sports-skills --skill golf-data --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/machina-sports/sports-skills
- Categories
- Backend & APIs, Automation & Workflows
- First seen
- Jun 3, 2026