OpenGolfAPI

The open database of every golf course in America. Free forever. ODbL licensed.

17,322
Courses
15,600+
Scorecards
77,000+
Tee Records
244,000+
Hole Records
Try the API GitHub Donate

What You Get (Free)

REST API

Search courses, get details, browse by state. 1,000 calls/day, no API key needed.

MCP Server

Drop-in golf data for any AI agent. ChatGPT, Claude, Gemini — they all work.

Bulk Download

Full dataset as GeoJSON + CSV. Updated weekly. Use it however you want.

ODbL Licensed

Same license as OpenStreetMap. Commercial use OK. Just attribute us.

Try It Now

No signup. No API key. Just curl.

# Search for courses
curl "https://api.opengolfapi.org/v1/courses/search?q=pebble+beach"

# Get all courses in California
curl "https://api.opengolfapi.org/v1/courses/state/CA"

# Get course detail with scorecard
curl "https://api.opengolfapi.org/v1/courses/{id}"

# MCP server for AI agents
npx @opengolfapi/mcp-server

Sample Response

{
  "name": "Pebble Beach Golf Links",
  "state": "CA",
  "city": "Pebble Beach",
  "type": "Resort/Public",
  "par": 72,
  "year_built": 1919,
  "scorecard": [
    { "hole": 1, "par": 4 },
    { "hole": 2, "par": 5 },
    // ... all 18 holes
  ]
}

Free vs Premium

OpenGolfAPI gives you the foundation. GolfAGI gives you the intelligence.

DataOpenGolfAPI (Free)GolfAGI (Premium)
Course name, location, typeIncludedIncluded
Par + hole-by-hole scorecardIncludedIncluded
Phone, website, addressIncludedIncluded
Tee ratings, slopes, yardagesGolfAGI →77K+ tee records
Yardages per tee per holeGolfAGI →5 tee sets avg
Climate + best months to playGolfAGI →NOAA 30-year data
Nearby hotels + restaurantsGolfAGI →150K+ POIs
Real-time weather forecastGolfAGI →Weather.gov live
Difficulty percentile rankingGolfAGI →vs nearby courses
Tee time booking linksGolfAGI →GolfNow affiliate
Tee recommendation by handicapGolfAGI →Slope-based algo
MCP tools for AI agents2 tools8 tools

Support Open Golf Data

We maintain 17,000+ courses and keep the API running. Help us grow to global coverage.

Donate on Open Collective

Data Sources

All data sourced from public, ODbL-compatible sources. Zero proprietary dependencies.

OpenStreetMap

Course locations + boundaries

NOAA

30-year climate normals (public domain)

Nominatim

Addresses + postal codes (OSM-based)

Course Websites

Phone, email, hours (public facts)

ODbL-1.0   Same license as OpenStreetMap. Attribution required.