GET

/courses

Retrieve a paginated list of golf courses with optional filtering.

Available on all plans.

Query Parameters

ParameterTypeDefaultDescription
limitinteger10Number of results to return (max varies by plan: Free=10, Developer=20, Pro=25, Enterprise=50)
offsetinteger0Number of results to skip for pagination
statestringFilter by state name (e.g., "California")
citystringFilter by city (partial match)
searchstringSearch course names
min_ratingnumberMinimum rating (0-5)
order_bystringnameSort field: name, rating, city, state
orderstringascSort direction: asc or desc

Example Request

bash
curl "https://golfly.dev/api/v1/courses?state=California&limit=10" \
  -H "x-api-key: gf_your_api_key"

Response

json
{
  "data": [
    {
      "course_id": 12345,
      "name": "Pebble Beach Golf Links",
      "address": "1700 17 Mile Dr",
      "city": "Pebble Beach",
      "state": "California",
      "latitude": 36.5725,
      "longitude": -121.9486,
      "rating": "4.9",
      "num_reviews": 2847,
      "holes": 18,
      "par": "72",
      "length_yards": 6828,
      "slope": "145",
      "year_built": 1919,
      "architects": "Jack Neville, Douglas Grant"
    }
  ],
  "meta": {
    "total": 1014,
    "limit": 10,
    "offset": 0,
    "has_more": true
  }
}

Response Fields

FieldTypeDescription
course_idintegerUnique course identifier
namestringCourse name
addressstringStreet address
citystringCity location
statestringUS State
latitudenumberGPS latitude
longitudenumberGPS longitude
ratingstringAverage rating (0-5)
num_reviewsintegerNumber of reviews
holesintegerNumber of holes
parstringCourse par
length_yardsintegerTotal course length in yards
slopestringCourse slope rating
year_builtintegerYear course was established
architectsstringCourse architect(s)

Related