OpenGolfAPI

For developers & AI agents

Golf's open data layer. Yours in one call.

32,600+ courses with scorecards, tees & geometry, 16 scoring formats, and Sign in with OpenGolf — all keyless to read, over REST and MCP. Mint a key when you're ready to write shots, moments & identity. No contract, no card.

Just a golfer? Get your OpenGolf ID → — no key needed to play.

Try it right now — no key

Reads are keyless. Paste this into a terminal:

curl "https://api.opengolfapi.org/v1/courses/search?q=pebble"

# → Pebble Beach Golf Links · par 72 · Pebble Beach, CA · lat/lng · website … (JSON)

Or give your AI agent all 56 tools in one line:

npx @opengolfapi/mcp-server

Full API reference → · The MCP →

What you get

Read the docs → · The MCP →