Raw schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "What you are looking for, in plain English. May be empty when near is given; with near, it filters courses by name or town."
},
"near": {
"type": "object",
"description": "Optional. A point to search around, such as the person's location or their hotel. Courses come back nearest first, each with its distance in miles.",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
"required": [
"lat",
"lng"
],
"additionalProperties": false
},
"radius_miles": {
"type": "number",
"description": "Optional, with near. How far to look, in miles. Default 25, maximum 250."
},
"coverage": {
"type": "string",
"enum": [
"contours",
"traced",
"scorecard",
"rated"
],
"description": "Optional. Only courses GolfCore has this for: 'contours' lidar green contour maps, 'traced' a traced course map, 'scorecard' a hole-by-hole card, 'rated' USGA course and slope ratings."
},
"scope": {
"type": "array",
"items": {
"type": "string",
"enum": [
"product",
"country",
"region",
"city",
"courses",
"scorecards",
"slug"
]
},
"description": "Optional. Narrow the search to these scopes: 'slug' treats the query as a GolfCore course slug and returns that exact course, 'courses' matches courses by name and town, 'scorecards' attaches each course's per-hole card and tee ratings to it, 'city', 'region' and 'country' return pages that count and list every course in a place, 'product' returns GolfCore's own pages. Omit to search all of them. Combine freely, e.g. [\"slug\",\"scorecards\"] for one exact card, or [\"city\",\"courses\"]. Leave 'scorecards' out when you only need to know which courses exist; the cards are large."
},
"limit": {
"type": "integer",
"description": "Results per scope. Default 5, maximum 20."
}
},
"additionalProperties": false
}