Clubs and courses
A club is the place: a name, an address, a position and a website. A club has one or more courses.
In the API a course is one playable layout: the holes you play, in order, from hole 1. That is what a scorecard describes and what a round is scored on. A club with three nines, A, B and C, can therefore have the courses A+B, B+C and C+A, each with its own par, stroke index and ratings, and each nine as a nine-hole course when the club publishes it.
Played holes and physical holes
holes_count is the number of holes played on the layout: 18 or 9 in almost all cases, sometimes 6, 12 or another number. physical_holes_count is the number of holes it is built on, which can be fewer: an 18-hole round on a nine-hole course plays the same nine holes twice.
When holes_count is 18 and physical_holes_count is 9, the round is two laps of the same nine; loops then gives the same loop_id for both halves.
Halves and loops
An 18-hole layout has two halves, holes 1–9 and holes 10–18. loops lists them in playing order, each with a loop_id that is the same on every layout at the club that plays the same nine. Two halves are the same loop when par is the same hole by hole and at least one tee has exactly the same length on all nine holes.
The front and back nine of an 18-hole layout are not courses of their own. When a half has its own nine-hole rating, the 18-hole layout carries it on its tees: a rating with holes 9 and half front or back. To offer a nine-hole round, take holes 1–9 or 10–18 of the layout and use that rating when there is one. used_in on a separate nine-hole course lists the 18-hole layouts that play it.
Tees
A tee is one set of markers. It has the name the scorecard prints, a color in plain English when one is stated, and the length of each hole in distances_m. total_m is the sum of those lengths.
Par and stroke index usually belong to the course. When a tee has its own par or stroke index, for example a women's tee where a hole is par 5 instead of par 4, the tee carries its own par_men, par_women, index_men or index_women.
Ratings
Each tee has a list of ratings, one per category: men or women. A rating has the course_rating (strokes, one decimal), the slope_rating, the number of holes it applies to and the par_total it was issued for, which can differ between men and women on the same tee.
On an 18-hole layout a rating with half set to front or back is the nine-hole rating for that half, given only where one exists for that tee.
Always read holes before you use a rating. On a nine-hole course, a rating with holes 18 is the rating for playing the nine twice, with the par_total of the two laps; a rating with holes 9 is for one lap.
Rated tees
By default the API serves each course with only the tees that have a course rating and slope, and leaves out a course without any. With include_unrated=true you get everything: rated on each tee tells whether it has a rating, and rating_status on each course says rated, partial or unrated.
Green positions
Some courses have a GPS position for the middle of each green (latitude and longitude, WGS 84). They are not part of the course itself: greens_count on a course says how many of its holes have one, greens_courses_count on a country how many of its courses do, and GET /v1/courses/{id}/greens returns them, one entry per hole. A hole without a position has null for lat and lon; nothing is estimated. Fetching a course's positions counts as one course request, on top of the course. Positions are added country by country.
Missing values
A value we do not know is null. That applies to single values and to entries in a list: a tee can know the length of seventeen holes and have null for the eighteenth, and then total_m is null too. Nothing is ever filled in with 0, estimated, or taken from another tee.
Women's par and stroke index are null when there are no separate values for women; use the men's values in that case.
Units
Lengths are whole meters. Add units=yards to a course request to get distances_yd and total_yd as well. Where a course is measured in yards, as in England, source_unit is yards and the yards you get are exactly those on the card.
Ids
Ids are lowercase strings that start with the country prefix, for example gb-sct-kilmacolm-golf-club-kilmacolm-18. Treat them as opaque: they are stable, but do not build or parse them. A replaced id answers 301 and names its successor; a withdrawn id answers 410.
Countries and regions
country is the ISO 3166-1 code in upper case, for example SE or GB. England, Scotland, Wales and Northern Ireland have their own prefixes (gb-eng, gb-sct, gb-wls, gb-nir) and their ISO 3166-2 code in region; for every other country region is null. A club is listed under the country it lies in: Jersey (je), Guernsey (gg) and the Isle of Man (im) are countries of their own. GET /v1/countries lists the countries your key can see.
Club details
A club can have a location (latitude and longitude, with confidence confirmed when two independent positions agree within 3 km), an address, a website and other_names. Each is null when unknown.
Updates
Every course passes the same checks before a release. updated_at is when the content of the course last changed, which is what updated_since filters on.
Data is provided as is. When you find a mistake, report it.