Skip to content

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
View on GitHub

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 golf CLI commands get_leaderboard, get_schedule, get_player_info, get_player_overview, get_scorecard, and get_news, selected with a --tour flag
  • 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 -y

Installs 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 tour parameter is specified (pga, lpga, or eur) — there is no default tour.
  • Player IDs are obtained from get_leaderboard results 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 18

Similar to Golf Data