Guide

Changelog

This page lists changes to the API itself. New courses, countries and ratings in each data release are in the release notes.

Changes to the API contract, newest first. Data updates (courses added, changed or removed) are listed per release by GET /v1/releases and GET /v1/changes, not here.

Version 1 is stable. New endpoints, query parameters, response headers and fields in existing objects may be added within v1; clients must ignore fields they do not recognise. Removing or renaming a field, changing its type, unit or meaning, or changing an existing error code requires v2, which will be announced in advance.

Added

  • outside_radius on /v1/clubs: when a search with q, lat and lng finds no club within radius_km, the response names the nearest clubs that the same q finds outside the radius (at most 3, nearest first), in the same form as data and with distance_km from the point. An empty array means q finds no club with a position in the countries searched. Other responses are unchanged.

2026-12-04 (country codes)

Changed

  • country on /v1/courses and /v1/clubs also takes gb, which gives all of the United Kingdom: England, Northern Ireland, Scotland and Wales (gb-eng, gb-nir, gb-sct and gb-wls). The other codes are unchanged. An unknown code still answers 400 bad_request, and the message now says that GET /v1/countries lists the codes.

Changed

  • Search (q on /v1/courses and /v1/clubs) finds more when the text as typed is found nowhere: apostrophes, punctuation and spaces are then ignored (Royal St George's finds The Royal St Georges Golf Club, stockbrook finds Stock Brook), and after that every word is looked for on its own, in any order (Turnberry Ailsa, Sandhurst, Victoria). These steps match from the start of a word and also look in the names of a club's courses, and for courses in the club's other names, city and province. A search that finds something as typed still finds the same courses and clubs; when it also names a place, the ones near the place are added (below).
  • Words common to golf names are optional when every other word is found: Wentworth GC, Carnoustie Golf Links and Falsterbo GK find the club whether or not its name has Golf Club, Links or Golfklubb. GC, CC, G&CC and GK are read as Golf Club, Country Club, Golf & Country Club and Golfklubb, St as Saint, Mt as Mount, and & as and. A search made only of such words does not match everything.
  • Spelling: when neither the names nor a place find anything, names are searched with up to one wrong letter in words of 5 letters or more, and two in words of 8 or more (wokefiled finds Wakefield).
  • A club is also found under some names it is known by that are not among its other_names, such as an earlier name or the name of the resort it belongs to. These names are used only for searching and are not in the answer.

Added

  • sort on /v1/courses and /v1/clubs: id (default, as before) or relevance. With relevance and q, the best matches come first: a name that is the search, then a name that starts with it, then the search at the start of a word, then the other matches; ties by id. The steps above are then taken together (a club named exactly as typed no longer hides one that matches word by word). The cursor of a relevance page is not a course or club id; pass it back unchanged with the same q and sort. sort=relevance cannot be combined with lat and lng (400); a list without q is sorted by id either way.
  • Places in q: when the search is a town, city, county or region, by its English or local name (Gothenburg, Göteborg, Munich, West Sussex), the answer also has the clubs and courses within about 25 km of the place, more for a large place and at most 60 km. A state, province or county also has every club whose address names it, wherever in it the club is (Texas finds the clubs with TX in the address, County Dublin those with Co. Dublin). Each place counts on its own (Melbourne finds the clubs near Melbourne, Australia and near Melbourne, Florida); with country, only the places in that country. When neither the names nor the search as a place find anything, the place is tried without golf's common words (Gothenburg golf club finds the clubs near Gothenburg). With sort=relevance the name matches come first and then the place's clubs, nearest first; in the default order the name matches come first, by id, and then the place's other clubs, by id, so a search that found something before lists the same clubs first in the same order. A club that only a place found has distance_km, the distance from the place.
  • match in course and club lists when q is given: text when the search was found as typed (or without punctuation and spaces), words when it was found word by word, place when no name matched and the list is the clubs or courses near the place, spelling when only a spelling correction found something, and null when nothing was found.
  • unrated_count in course and club lists when q is given: how many more matches the same search has with include_unrated=true, which also lists courses and clubs without a course rating. null when the request already has the option, for a position search, and when the release has no such option.

Removed

  • city and region on /v1/clubs. They matched only the exact spelling of a club's address (region=TX found the Texas clubs, region=Texas none), and many addresses have no town or region. A request that still sends either now answers 400 bad_request instead of a list that is not filtered. Use q, which finds clubs by name, town or region (above), or lat and lng for the clubs around a point. This is an exception to the v1 rules above, made because the filters were not in use.

2026-12-03 (green positions)

Added

  • GET /v1/courses/{id}/greens: the position of the middle of the green for each hole of a course (WGS 84), one entry per hole in playing order: {"hole", "lat", "lon"}. A hole without a position has lat and lon null; a course without any has greens null. A missing position is never estimated. The id is answered as GET /v1/courses/{id} (301 for a replaced id, 410 for a withdrawn one).
  • GET /v1/export/{country}/greens: the green positions of every course of a country that has any, as one gzip file (the same objects as the request above, sorted by course id). A country without green positions answers 404.
  • greens_count on a course and in course lists: the number of holes with a green position. greens_courses_count on a country in /v1/countries: the number of courses with at least one. Both are present from the first release that carries green positions.
  • What counts (hosted service): green positions count on their own, on top of the course. The request for one course counts 1 when the course has at least one position and 0 when it has none; the country file counts the number of courses in it. A plan without country files answers 403 plan_limit for the file. The course, the course lists and GET /v1/export/{country} do not carry the positions and count as before.
  • A release where green positions were added, moved or removed has a new data_version, and /v1/changes lists the courses concerned as changed. updated_at on a course does not move for green positions alone.

2026-11-21 (free trial)

Changed

  • A new account gets a free trial instead of a demo key (hosted service). A trial key sees every country in the current release and has 10 course requests in all; lists, search and the other free calls are as for every key. It has no country files. plan in GET /v1/usage is trial, period_quota is the trial's course requests and quota_used_this_period what has been used; period_end is null, since the trial does not start again.
  • When the trial is used up, GET /v1/courses/{id} and GET /v1/courses/batch answer 403 plan_limit without Retry-After. 429 quota_exceeded is still the answer for a used-up quota on a paid plan.

2026-11-20 (tee order)

Changed

  • The tees of a course are listed longest first and shortest last. Tees of the same length keep their order.

2026-11-18 (front and back nines)

Changed

  • The front and back nine of an 18-hole layout are no longer listed as courses of their own. The 18-hole layout carries each half's nine-hole rating on its tees (ratings[] with holes 9 and half front or back), as before. An id that was such a half answers 301 to the 18-hole layout (moved in a batch, alias_of in /v1/changes). Nine-hole courses of their own, and the nines of a club with three or more nines, are listed as before.
  • part_of is null on almost every course. loops[].course_id no longer points at a half.

Added

  • kind on every tee: regular, winter, temporary or youth. Winter and temporary tees stay in the default view; the field lets a tee picker sort or hide them without reading the tee's name.

Changed

  • French tees for youth age classes (U8, U10, U12, Ben, Min, each for boys G and girls F) are no longer in the default view of a course. They are served with include_unrated=true, where they keep their ratings.
  • A club's 18-hole rounds that are put together from two of its nine-hole courses are served as courses of their own (A + B and B + A) when the club has no 18-hole course.
  • Course names: our own additions are in English outside Sweden ((played twice), (9 holes), 18-hole course), and two courses of one club that shared a name now carry the number of holes.
  • Search (q) folds letters such as ø, æ, œ and ł: Kobenhavn finds København.
  • On courses of nine holes, index_men and index_women are the ranks 1-9. A card that prints the nine's index out of an 18-hole series (1, 3, 5 … or 7 … 18) is served in the same order as 1 … 9.
  • A tee that was served twice, once for men and once as <name> (Women), is one tee with both ratings and the women's own lengths in distances_m_women.
  • Spanish course names no longer repeat the club's name, and Spanish tee names no longer repeat the course's.
  • Some courses in the United States that were listed as clubs of their own are served under their main club. The course ids are unchanged; the old club ids answer 301.
  • color on a tee is no longer black when the tee is named after another colour (Red, Blue/White); it is the colour of the name. Where the colour is not known it is null.
  • A few clubs are served under the country they lie in (Mexico, Germany, France, Belgium, Indonesia). Their course and club ids have the new country prefix; the old ids answer 301.
  • Tees for juniors in every country (Junior, Kids, Jugend and the like) have kind youth and are served with include_unrated=true only, as the French youth tees are.
  • index_men and index_women on a tee, and index_women on a course, are null when the card only numbers the holes in order (1, 2, 3 …); the course's index applies.
  • par_women is given on a tee that has its own par when the women's rating on the tee is for that par.
  • Club, course and tee names: abbreviations, capitals and reversed forms are written out (The Club at Cordillera, Club de golf Rockland, Arcadia Bluffs GC), and company forms such as Ltd and Inc are left out.
  • A tee that was listed once for men and once for women under names such as Blue (M) and Blue (W) is one tee, Blue, with both ratings.
  • A nine-hole rating on a course of nine holes played twice is given once for front and once for back.
  • More women's ratings on Japanese courses.
  • Some facilities that were listed as one club per course are one club with several courses. The course ids are unchanged; the old club ids answer 301.
  • Default values (course_rating equal to par with slope_rating 113) and tees without any hole lengths are no longer served.

2026-11-18 (quota per paid period)

Added

  • period_quota, period_start, period_end and quota_used_this_period in GET /v1/usage: the quota of the paid plan, the day (UTC) the current paid period started, when it ends, and the course requests counted in it. All four are null without a plan quota (a demo key keeps daily_quota).
  • The yearly plan world (plan in GET /v1/usage). Its quota applies to the year; 429 quota_exceeded then says yearly quota of course requests used up.

Changed

  • A paid plan's quota now applies to the period you paid for and starts again when the plan renews, instead of on the first day of each calendar month. Retry-After on 429 quota_exceeded gives the seconds to the end of the period. A larger plan starts a new period at once with a full quota.
  • monthly_quota and X-Quota-Monthly are given on the monthly plans only, and are counted over the paid month. quota_used_this_month still counts the calendar month.
  • The plan pro is no longer offered.

2026-11-15 (women's lengths on a tee)

Added

  • distances_m_women and total_m_women on tees: the length of each hole for women when women play other lengths than men on a tee of the same name (for example another teeing area on some holes), and their sum. Both are null when the tee has no lengths of its own for women; distances_m then applies to women too, as before. With units=yards the same values are in distances_yd_women and total_yd_women. Until now such a tee showed the men's lengths only. Ratings, par and stroke index are unchanged.

2026-11-12 (plans and country prefixes)

Changed

  • Clubs are listed under the country they lie in. Northern Ireland has its own prefix gb-nir (country GB, region GB-NIR) instead of ie; Jersey (je), Guernsey (gg) and the Isle of Man (im) are no longer under gb-eng; New Caledonia (nc), French Polynesia (pf), Chad (td), Djibouti (dj) and Burkina Faso (bf) are no longer under fr, Curaçao (cw) not under nl and Greenland (gl) not under dk. The course and club ids of these clubs start with the new prefix; the old ids answer 301 with the new id, are listed as moved in a batch request and as removed with alias_of in GET /v1/changes. Nothing else about these courses changed.
  • color on tees is always English in lower case, as documented: some tees in Denmark and Sweden were served as gul, Rød or Hvid. A tee with two colours is green/white; a word that is not a known colour is null.
  • While the data is being updated, requests answer 503 with the code unavailable and a Retry-After header (seconds) instead of 500. Try again after that many seconds.

Added

  • plan in GET /v1/usage: the key's plan, demo for a demo key that sees only the demo clubs, or null for a customer set up by hand.
  • The OpenAPI file at https://api.golfdata.io/openapi.json, without a key.
  • Retry-After on every 429 quota_exceeded: 60 seconds for the per-minute limit on free calls, otherwise the seconds until the quota starts again (the next UTC day, or the first day of the next month for a monthly quota).
  • Plans with a quota of course requests per calendar month (UTC), listed on the pricing page. What counts is unchanged: a course answering 200 counts 1, a country file the number of courses in it, everything else is free. The quota starts again on the first day of each month; unused requests are not carried over.
  • Header X-Quota-Monthly and the field monthly_quota in GET /v1/usage (null without a monthly quota). X-Quota-Remaining is what is left of the quota that runs out first. A used-up monthly quota answers 429 with the code quota_exceeded. Keys without a plan are unchanged.

2026-11-05 (one-time cleanup of v1)

Removed

  • Before v1 opened to the public, the contract was cleaned once, with the one customer told in advance. These fields are no longer served: approval and layout_type on courses; approved_at and layout_type in course lists; distances_source, length_note, printed_total_m, printed_front9_m and printed_back9_m on tees; effective_date on ratings; phone on clubs; notice, selection and club_meta in /v1/meta; and course_ids in /v1/countries. Use updated_at for when a course last changed, units=yards for yards, and /v1/courses?country= for the courses of a country. From here on the v1 rules above apply without exception.

2026-11-05 (accounts)

Added

  • Accounts on golfdata.io with a demo key (hosted service). A demo key works on every endpoint but sees only a demo release with a few example clubs: other ids answer 404 and other countries 400. A key whose plan does not include country files gets 403 with the new error code plan_limit from GET /v1/export/{country}. Keys you already have are unchanged.

Changed

  • Only course data counts toward a daily quota: GET /v1/courses/{id} answering 200 counts 1, and GET /v1/export/{country} counts the number of courses in the file. Lists, search, clubs, changes, releases, usage, reports and 304 answers are free, with a per-minute limit on keys with a plan (429 quota_exceeded). No key has a quota today, so nothing changes for existing customers.

Added

  • GET /v1/courses/batch?ids=…: several courses in one request (at most 100 ids), with the ids that moved, were withdrawn or are unknown listed apart. Each course returned counts toward the quota.
  • Header X-Request-Cost (what the request counted) and the fields quota_used_today and quota_used_this_month in GET /v1/usage. requests_today and requests_this_month still count every request.

2026-11-04 (address)

Changed

  • The production address is https://api.golfdata.io. The previous address keeps answering during the transition, with the same keys and the same data; switch to the new one at your convenience.

2026-10-31 (include_unrated)

Added

  • include_unrated=true on every GET: the same release with the tees and courses that the default leaves out because they lack a course rating and slope. The default (include_unrated=false) is unchanged. Both views have the same data_version, but each has its own history in /v1/releases and /v1/changes; ask those with the same value as when you fetched. The history of the include_unrated=true view starts with the first release that has it. The country file is named ...-include-unrated.json.gz, and a 301 keeps include_unrated=true (after units=yards). Any other value than true or false answers 400.
  • rated on every tee: true when the tee has a course rating and slope.
  • rating_status on every course (summary and detail): rated (every tee), partial (some tees) or unrated (no tee). Without include_unrated, a course in a country of selection.rated_tees_only is always rated.
  • selection.include_unrated in GET /v1/meta: false or true for the view.

2026-10-31

Changed

  • A course is served with only the tees that have a course rating and slope. A tee without a rating is no longer listed, and a course where some tees lack a rating is now included with its rated tees (before, such a course was left out). A course without any rated tee is still not served. Nine-hole ratings from 9-hole courses stay on their tee. A course served with fewer tees than its scorecard prints is otherwise unchanged (par, stroke index, lengths).

Added

  • selection.rated_tees_only and selection.trimmed_courses_count in GET /v1/meta: the countries where the rule above applies and the number of courses served without some of their tees. selection.full_rating_only is kept and is empty.

2026-10-30

Added

  • loops on courses: the loops a layout is played on, each with a stable loop_id (<club id>-loop-<n>). An 18-hole course has two entries in playing order, {"holes": [1, 9], "loop_id", "course_id"} and {"holes": [10, 18], ...} (on a nine played twice, the first and second loop); a 9-hole course has one entry for holes 1-9. Two halves, or a half and a 9-hole course, at the same club are the same loop when par is equal hole by hole and at least one tee has exactly the same length on all nine holes; stroke index is not compared. Combinations that share a loop therefore share its loop_id, also where the loop is not a course of its own. course_id is the 9-hole course that is the loop when there is exactly one (on the 9-hole course itself, its own id), otherwise null. loop_id is null for a half that belongs to no loop, and loops is null when no half does. A loop_id stays the same in later releases while any layout that plays the loop remains.
  • used_in on 9-hole courses: the 18-hole courses whose loops give this course as course_id, as {"course_id", "holes"}, or null.
  • Both fields are links only. Par, stroke index, lengths and ratings stay on each course as before, and a change in the links alone does not list a course as changed in /v1/changes.

2026-10-29

Added

  • Par and stroke index per tee: tees[].par_men, par_women, index_men and index_women, hole by hole, where the tee has its own values (for example a women's tee where a hole is par 5). null means the tee has no values of its own; use the course-level values.
  • 9-hole ratings per half: tees[].ratings[].half is front (holes 1-9) or back (holes 10-18) for a 9-hole rating of one half of an 18-hole course, and null for a rating of the whole course. On a nine played twice (layout_type: "published_two_loops") front and back are the first and second loop. Given only where that tee has a nine-hole rating; never computed.
  • other_names on clubs: other names the same club is known by, as {"value"} objects. The club search (q on /v1/clubs) finds them.
  • updated_at on courses (summary and detail): when the course last changed through an approval. It is the newest approval among the course itself, the 9-hole courses whose ratings it carries, and, for a 9-hole course with part_of, the 18-hole course it belongs to. A later update of a course moves it; approved_at covers only the course's own record.
  • GET /v1/export/{country}: a whole country as one gzip file. Once decompressed it is one JSON document with every course (as GET /v1/courses/{id}, in meters) and every club (as GET /v1/clubs/{id}), sorted by id, plus data_version. The same release always gives the same bytes, so the ETag changes only with data_version. Counts as one request.
  • POST /v1/reports (hosted service): report an error in a course or club with course_id or club_id, a message and an optional field. Answered 202 with a report id (the request's X-Request-Id). At most 100 reports per customer and UTC day. A report changes nothing by itself; a fix shows up in a later release.
  • part_of on courses: {"id", "half"} when a 9-hole course is one half, or one loop, of an 18-hole course in the API; otherwise null.
  • GET /v1/releases: the releases the service knows, newest first, with the number of courses and clubs added, changed and removed in each.
  • GET /v1/changes?since={data_version}: what changed since a data version you hold: added and changed IDs, and removed IDs with alias_of when an ID was replaced. An unknown since answers 400: fetch everything again.
  • 410 gone for course and club IDs that were withdrawn. IDs that never existed still answer 404.
  • 301 for club IDs that were merged into another club, with Location: /v1/clubs/{new-id} and {"alias_of": "{new-id}"}, as for courses.
  • ETag on every 200 response. Send it back in If-None-Match to get 304 Not Modified without a body. 200 responses carry Cache-Control: private, no-cache.
  • X-Request-Id on every response. Quote it when you contact us.
  • GET /v1/usage: your own calls today and this month (UTC) and your daily quota, if any.

Removed (pilot period, no customer used these fields)

  • The extra fields on club metadata: source, licence, match, ref, retrieved_at and confirmed_by on location, address, website and phone, and club_meta.sources in /v1/meta. Only the values are delivered (location keeps lat, lon and confidence).
  • sources on courses (with the Source object). A course is not listed as changed in /v1/changes because of this.

Changed

  • Phone numbers are no longer delivered: phone on clubs is always null. The field stays, so nothing breaks.
  • approval.evidence_note is shorter for some ratings (the note is still in Swedish).
  • updated_since filters on updated_at instead of approved_at (for clubs: the newest updated_at among their courses). updated_at is never earlier than approved_at, so no course drops out of a result.
  • Error messages are in English. Error codes are unchanged; match on code, not on message.

Note

  • Send a User-Agent header of your own. Requests with a generic client signature (for example Python's default Python-urllib) can be stopped by the hosting provider's browser check with 403 before they reach the API.

Fixed

  • With units=yards, a tee without lengths now has distances_yd: null (as distances_m) instead of an empty list.

Described

  • openapi.json: the whole contract as OpenAPI 3.1, with a description of every field.

2026-10-28

  • Pilot of API v1 for Spain: GET /v1/meta, /v1/countries, /v1/courses (search, country, updated_since, paging), /v1/courses/{id} (units=yards, 301 for replaced IDs), /v1/clubs (search, city, region, near a point, updated_since) and /v1/clubs/{id}.
  • API key per customer (Authorization: Bearer ...), countries per customer, and a daily call counter in X-Requests-Today.