Course Endpoints
GG365 Golf API
Documentation for the Golf Globe 365 API - Travel Agency Integration
Course Endpoints
These endpoints provide access to golf course information, including searching, filtering, and detailed course data.
List All Courses
Code
Retrieves a paginated list of all golf courses.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number for pagination (default: 1) |
limit | integer | Number of results per page (default: 20, max: 100) |
country | string | Filter by country (e.g., "Spain", "Portugal") |
region | string | Filter by region (e.g., "Algarve", "Costa del Sol") |
bookingCode | string | Filter by booking code (e.g., "AGP", "HRG") |
Response
Code
Get Course Details
Code
Retrieves detailed information about a specific golf course.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
courseId | string | Unique identifier for the course |
Response
Code
Search Courses by Name
Code
Searches for courses by name or partial name match.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
query | string | Search query for course name (required) |
page | integer | Page number for pagination (default: 1) |
limit | integer | Number of results per page (default: 20, max: 100) |
country | string | Filter by country |
Response
Similar to the List All Courses response, but filtered by the search query.
Search Courses by Booking Code
Code
Finds all courses associated with a specific booking code, typically used for travel agent search.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
bookingCode | string | Booking code for the region (e.g., "AGP", "HRG") |
Response
Similar to the List All Courses response, but filtered by booking code.
Booking codes are typically airport codes or region codes used by travel agents. Common examples:
- "AGP": Costa del Sol region (Spain)
- "HRG": Red Sea region (Egypt)
- "FAO": Algarve region (Portugal)
Filter Courses by Attributes
Code
Advanced filtering of courses by multiple attributes.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
country | string | Filter by country |
region | string | Filter by region |
courseType | string | Filter by course type (resort, public, private) |
holesCount | integer | Filter by number of holes (9, 18) |
isOnline | boolean | Filter by online booking availability |
facilities | string | Comma-separated list of required facilities |
page | integer | Page number for pagination (default: 1) |
limit | integer | Number of results per page (default: 20, max: 100) |
Response
Similar to the List All Courses response, but filtered by the specified attributes.