Golf course API
Course shapes, green slopes, elevation and measured yards for US golf courses, as JSON and GeoJSON. One course free. Every plan gets all the data.
What one call returns
- The course: name, city, state, position, holes.
- Its shapes: greens, tees, fairways, bunkers, water and hole lines as GeoJSON, from OpenStreetMap, plus the shapes Par5 traced or confirmed from aerial photos and lidar (kept apart).
- Green slopes: each green’s tilt in percent, the direction it falls toward and its high-to-low drop in feet.
- Holes: yards measured along the hole, the rise from tee to green and the plays-like yards, heights every 10 m, the carry to each bunker and water, and the fairway’s width at 200, 250 and 300 yards.
- Fairways and bunkers: fairway grades, bunker depths.
- How sure it is: whether the course passed Course Check (each hole checked against lidar and aerial photos), and the year its ground was surveyed.
Find a course, then fetch it
curl --compressed -H "Authorization: Bearer $PAR5_KEY" \ "https://chthgzbcijnwwcfqpcjx.supabase.co/functions/v1/course-api/v1/courses?q=mckinney&state=TX" curl --compressed -H "Authorization: Bearer $PAR5_KEY" \ "https://chthgzbcijnwwcfqpcjx.supabase.co/functions/v1/course-api/v1/courses/osm-way-595547873"
Search by name, city, state or distance from a point. A course is about 65 KB gzipped. Every answer has an ETag, so an unchanged course costs nothing to check again.
Priced per course
Free: 1 course. Then 5 courses for $25 a month, 10 for $40, 25 for $75, every course in a state for $149, or every US course for $299. Three sample courses are open to every key. See pricing and how many courses each state has.
Where the data comes from
Course shapes: © OpenStreetMap contributors (ODbL 1.0). Elevation: USGS 3D Elevation Program and state lidar programs. Aerial photos: USDA NAIP. Par5 builds the slopes, yards and checks from these itself.
More: golf course elevation data · golf green slope data · how it compares
