Golf course API for Wales
Country code gb-wls · one of 130+ countries in the API
Par, stroke index and tee lengths for every hole of 150+ golf courses in Wales, with course rating and slope on 150+ of them. Use it in your own code through the API, or download it as CSV with no code. Checked before each release and updated at least every quarter.
Wales is one part of it: the same API has 32,000+ golf courses in 130+ countries, in the same format and with the same key. See the other countries.
What you get for a course in Wales
- Every hole. Par and stroke index, for men and for women where they differ.
- Every tee. The length of each hole from each tee, in metres and, with
units=yards, in yards. - Ratings for handicaps. Course rating and slope per tee, for men and for women, for eighteen holes and for each nine where the course has them.
- The club. Address, position on the map, website and other names the club goes by.
- GPS for the greens. The position of the middle of each green, for a growing number of courses, from a request of its own. In Wales: so far.
- Nothing invented. A value we cannot stand behind is left empty, so a missing rating shows as missing and never as a placeholder.
A course in Wales, straight from the API
This is Pontnewydd at Pontnewydd Golf Club as the API answers today: every hole, every tee and the ratings. Pick a tee to see its lengths and its rating.
Pontnewydd
| Hole | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Out |
|---|---|---|---|---|---|---|---|---|---|---|
| White | 285 | 334 | 214 | 382 | 137 | 315 | 490 | 178 | 300 | 2635 |
| Par | 4 | 4 | 3 | 5 | 3 | 4 | 5 | 3 | 4 | 35 |
| Par (W) | 4 | 4 | 3 | 5 | 3 | 4 | 5 | 3 | 4 | 35 |
| Index | 15 | 5 | 9 | 1 | 11 | 13 | 7 | 3 | 17 |
| Hole | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | In | Tot |
|---|---|---|---|---|---|---|---|---|---|---|---|
| White | 285 | 334 | 214 | 382 | 193 | 334 | 490 | 105 | 300 | 2637 | 5272 |
| Par | 4 | 4 | 3 | 5 | 3 | 4 | 5 | 3 | 4 | 35 | 70 |
| Par (W) | 4 | 4 | 3 | 5 | 3 | 4 | 5 | 3 | 4 | 35 | 70 |
| Index | 14 | 4 | 10 | 2 | 8 | 6 | 12 | 18 | 16 |
A real API response, drawn as a scorecard. Red marks a women's par that differs from the men's.
| A | B | C | D | E | F | G | H | I | J | K | L | M | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Tee | Category | Course rating | Slope | Par | Length | Hole 1 | Hole 2 | Hole 3 | Hole 4 | Hole 5 | Hole 6 | … |
| 2 | White | Men | 65.7 | 125 | 70 | 5272 | 285 | 334 | 214 | 382 | 137 | 315 | |
| 3 | White | Women | 71.7 | 121 | 70 | 5272 | 285 | 334 | 214 | 382 | 137 | 315 | |
| 4 | Yellow | Men | 65.0 | 123 | 70 | 5108 | 274 | 334 | 207 | 365 | 134 | 315 | |
| 5 | Yellow | Women | 71.2 | 120 | 70 | 5108 | 274 | 334 | 207 | 365 | 134 | 315 | |
| 6 | Red | Men | 64.3 | 120 | 70 | 4946 | 266 | 334 | 201 | 360 | 121 | 315 | |
| 7 | Red | Women | 70.0 | 115 | 70 | 4946 | 266 | 334 | 201 | 360 | 121 | 315 | |
| 8 | Blue | Men | 58.3 | 106 | 70 | 3435 | 199 | 167 | 190 | 300 | 108 | 179 | |
| 9 | Blue | Women | 61.2 | 97 | 70 | 3435 | 199 | 167 | 190 | 300 | 108 | 179 |
The same course as the CSV file you download for Excel or Google Sheets: one row per tee, every hole in yards.
The same course as JSON, shortened to one tee:
{
"id": "gb-wls-pontnewydd-golf-club-pontnewydd-18",
"course_name": "Pontnewydd",
"club": {
"address": {
"city": "Cwmbran",
"housenumber": null,
"postcode": null,
"region": "Torfaen",
"street": "Maesgwyn Farm, Upper Cwmbran"
},
"id": "gb-wls-pontnewydd-golf-club",
"location": {
"confidence": "confirmed",
"lat": 51.670603,
"lon": -3.039094
},
"name": "Pontnewydd Golf Club",
"other_names": [
{
"value": "Pontnewydd Golf Course"
}
],
"website": {
"value": "https://www.pontnewyddgolf.co.uk"
}
},
"country": "GB",
"region": "GB-WLS",
"holes_count": 18,
"physical_holes_count": null,
"par_total": 70,
"par_men": [4, 4, 3, 5, 3, 4, 5, 3, 4, 4, 4, 3, 5, 3, 4, 5, 3, 4],
"par_women": null,
"index_men": [15, 5, 9, 1, 11, 13, 7, 3, 17, 14, 4, 10, 2, 8, 6, 12, 18, 16],
"index_women": null,
"tees": [
{
"color": "white",
"distances_m": [260, 305, 195, 349, 125, 288, 448, 162, 274, 260, 305, 195, 349, 176, 305, 448, 96, 274],
"distances_m_women": null,
"distances_yd": [285, 334, 214, 382, 137, 315, 490, 178, 300, 285, 334, 214, 382, 193, 334, 490, 105, 300],
"distances_yd_women": null,
"index_men": null,
"index_women": null,
"kind": "regular",
"name": "White",
"par_men": [4, 4, 3, 4, 3, 4, 5, 3, 4, 4, 4, 3, 4, 3, 4, 5, 3, 4],
"par_women": [4, 4, 3, 4, 3, 4, 5, 3, 4, 4, 4, 3, 4, 3, 4, 5, 3, 4],
"rated": true,
"ratings": [
{
"category": "men",
"course_rating": 65.7,
"half": null,
"holes": 18,
"par_total": 68,
"slope_rating": 125
},
{
"category": "women",
"course_rating": 71.7,
"half": null,
"holes": 18,
"par_total": 68,
"slope_rating": 121
},
{
"category": "men",
"course_rating": 32.8,
"half": "front",
"holes": 9,
"par_total": 34,
"slope_rating": 124
},
{
"category": "women",
"course_rating": 35.9,
"half": "front",
"holes": 9,
"par_total": 34,
"slope_rating": 122
},
{
"category": "men",
"course_rating": 32.9,
"half": "back",
"holes": 9,
"par_total": 34,
"slope_rating": 125
},
{
"category": "women",
"course_rating": 35.8,
"half": "back",
"holes": 9,
"par_total": 34,
"slope_rating": 119
}
],
"source_unit": "yards",
"total_m": 4814,
"total_m_women": null,
"total_yd": 5272,
"total_yd_women": null
}
],
"rating_status": "rated",
"loops": null,
"part_of": null,
"used_in": null,
"updated_at": "2026-10-19T03:25:01.023740+00:00",
"data_version": "46247fe5cc2f6f624206acf1b51a7b303998b745db46a8967b005f69006c233a"
}Download Wales as CSV
No code needed. Sign in, choose Wales on your account page and see every course in it, then download one club's scorecard or the whole country as one CSV file that opens in Excel, Numbers or Google Sheets, with one row per tee. It counts the same as the API: one course request per course.
Clubs and courses in Wales
A few of the clubs you can fetch: Celtic Manor Resort Golf Club in Newport, Nefyn & District Golf Club in Pwllheli, St Pierre Golf Club in Chepstow, The Vale Resort Golf Club in Hensol, Aberdare Golf Club in Aberdare and Abergele Golf Club in Abergele.
There are clubs in Swansea, Cardiff, Newport, Bridgend, Wrexham, Cwmbran, Llandudno and Abergavenny, among many other places. Search by town, by region or within a radius of a point, and the answer lists each club with its courses.
Fetch the courses in Wales
The country code is gb-wls. Listing and searching are free on every plan, so you can find your courses before you spend a single course request.
curl "https://api.golfdata.io/v1/courses?country=gb-wls&limit=100" \
-H "Authorization: Bearer $GOLFDATA_KEY"Find the clubs in one place:
curl "https://api.golfdata.io/v1/clubs?country=gb-wls&q=Swansea" \
-H "Authorization: Bearer $GOLFDATA_KEY"Each course you fetch counts one course request and answers with its holes, tees and ratings:
curl "https://api.golfdata.io/v1/courses/{id}?units=yards" \
-H "Authorization: Bearer $GOLFDATA_KEY"Or take every course and club in Wales as one file, which counts one course request per course in it:
curl "https://api.golfdata.io/v1/export/gb-wls" \
-H "Authorization: Bearer $GOLFDATA_KEY"The quickstart has the same calls in JavaScript and Python, and the API reference lists every field.
Which plan fits Wales
Each bar shows how much of Wales a plan's quota covers in one period. The Basic plan is the smallest one that takes the whole country, as one country file or course by course.
Starter
$25 / month
Part of Wales in one month
50 course requests a month
Search and lists are free
Choose StarterFits all of Wales
Basic
$79 / month
All of Wales in one month
500 course requests a month
Search and lists are free
Choose BasicPlus
$159 / month
All of Wales in one month
2,000 course requests a month
Search and lists are free
Choose PlusBusiness
$399 / month
All of Wales in one month
10,000 course requests a month
Search and lists are free
Choose Business
World
Every country, from day one
All of Wales in one year
If you only need some clubs, a smaller plan does it, or buy the course requests once without a plan; they never expire. You pay for the courses you fetch, and lists and search never count. A new account starts with a free trial of 10 course requests on any course. Prices are in US dollars, excluding VAT, and checkout shows them in your own currency: see the plans and prices.
Questions
Can I calculate a course handicap from this data?
Yes. A tee comes with the course rating, the slope and the par that the rating belongs to, for men and for women, which is what turns a handicap index into strokes for the round. A tee without a rating is left out unless you ask for it with include_unrated=true.
Does the data have GPS positions for the greens?
For a growing number of courses, yes: the position of the middle of each green, from GET /v1/courses/{id}/greens or as a column in the CSV download. In Wales, have them so far. greens_count on a course and in the free course lists tells how many holes have a position, so you can check before you ask. It counts one course request on top of the course.
How do I keep my copy of Wales up to date?
Ids are stable, and a new release comes at least every quarter. The change feed tells you which courses were added, changed or removed since the release you hold, so you fetch only those again. A course that moved answers 301 with its new id, and one that closed answers 410.
What if a course is missing or a value is wrong?
Report it through the API or write to hello@golfdata.io. Every report is checked, and corrections go out with the next release.
Other countries
- United States
- Japan
- England
- Canada
- Australia
- Germany
- France
- Spain
- Scotland
- South Africa
- New Zealand
- Denmark
- Netherlands
- Ireland
- Italy
- Czech Republic
- Austria
- Norway
- Finland
- Portugal
- Switzerland
- Argentina
- Brazil
- Philippines
- Northern Ireland
- Belgium
- South Korea
- Vietnam
- Mexico
- Iceland
- Colombia
- Thailand
- Slovenia
- Turkey
- Kenya
- Poland
- Malaysia
- United Arab Emirates
- India
- Singapore
- Zimbabwe
- Hungary
- Latvia
- Morocco
- Zambia
- Cyprus
- Chile
- Indonesia
- China
- Hong Kong
- Slovakia
- Egypt
- Dominican Republic
These are the largest. The API has courses in 130+ countries: See all countries.