API Endpoints

Community and Leisure

Golf Courses

Tokens
× 1

API Credit Cost


Endpoint Overview

The Golf Courses endpoint provides a list of golf courses within a postcode radius, including details on their size, facilities, and locations.


Coverage

EnglandEngland
ScotlandScotland
WalesWales
N. IrelandN. Ireland

Update Frequency

Annually

Request Format

HTTP Method:

GET

To use the API you should send an HTTP request to the following endpoint URL. This will return a JSON response.

https://api.postcodearea.co.uk/golf-courses/?key=&postcode={postcode}

Note that your key has automatically been added to the API endpoint for convenience.

Querystring Parameters:

{postcode}

A valid UK postcode (e.g., SW1A 1AA). Note that you can send the postcode with or without the space separating the outward and inward codes. For example, both "SW1A 1AA" and "SW1A1AA" are both valid.

{api_key}

A valid API key that authenticates your account.


Authorisation

For every endpoint request your API Key should be sent as part of the querystring:

https://api.postcodearea.co.uk/golf-courses/?key={api_key}&postcode=WS3+3PD

For example:

https://api.postcodearea.co.uk/golf-courses/?key=&postcode=WS3+3PD

Example Request and Response

If the above URL endpoint exists and the API key is valid, our system will return the following example response:

https://api.postcodearea.co.uk/golf-courses/?key=&postcode=WS3+3PD
{"data":[{"Course Name":"Aqualate Golf Club","Street":"Stafford Road","Town":"Newport","County":"Shropshire","Postcode":"TF10 9BY","Phone":"01952 811699","Phone Alt":"01952 4020991","Website":"www.aqualategolf.co.uk","Email":"N/A","Type of Club":"Members","Course Type":"Parkland","Yardage Markers":"Yes","Changing Rooms":"Yes","Driving Range":"Yes","Number of Holes":"9 Hole","Yardage":"5659","Par":"69","Handicap Certificates Required":"No","Soft Spikes Required":"No","Pro Shop":"Yes","Custom Club Fitting Service":"Yes","Club Hire":"No","Trolley Hire":"Yes","Buggy Hire":"No","Lessons Available":"Yes","Accommodation Available":"No","Bar":"No","Breakfast":"No","Lunch":"No","Dinner":"No","Latitude":"52.76983","Longitude":"-2.35866","Distance":4.7943132869328},{"Course Name":"Stafford Castle Golf Club","Street":"Newport Road","Town":"Stafford","County":"Staffordshire","Postcode":"ST16 1BP","Phone":"01785 223821","Phone Alt":"01785 212200","Website":"N/A","Email":"N/A","Type of Club":"Members","Course Type":"Parkland","Yardage Markers":"Yes","Changing Rooms":"Yes","Driving Range":"No","Number of Holes":"9 Hole","Yardage":"6071","Par":"71","Handicap Certificates Required":"Yes","Soft Spikes Required":"No","Pro Shop":"Yes","Custom Club Fitting Service":"Yes","Club Hire":"No","Trolley Hire":"Yes","Buggy Hire":"No","Lessons Available":"Yes","Accommodation Available":"No","Bar":"Yes","Breakfast":"No","Lunch":"Yes","Dinner":"Yes","Latitude":"52.80176","Longitude":"-2.13198","Distance":4.93615768743174},{"Course Name":"Izaak Walton Golf Club","Street":"Cold Norton","Town":"Stone","County":"Staffordshire","Postcode":"ST15 0NS","Phone":"01785 760900","Phone Alt":"01785760808","Website":"www.izaakwaltongolfclub.co.uk","Email":"secretary@izaakwaltongolfclub.co.uk","Type of Club":"members","Course Type":"Parkland","Yardage Markers":"Yes","Changing Rooms":"Yes","Driving Range":"Yes","Number of Holes":"18 Hole","Yardage":"6281","Par":"72","Handicap Certificates Required":"No","Soft Spikes Required":"No","Pro Shop":"Yes","Custom Club Fitting Service":"Yes","Club Hire":"No","Trolley Hire":"Yes","Buggy Hire":"No","Lessons Available":"Yes","Accommodation Available":"No","Bar":"Yes","Breakfast":"Yes","Lunch":"Yes","Dinner":"Yes","Latitude":"52.87539","Longitude":"-2.194607","Distance":6.48178400935742},{"Course Name":"Lilleshall Hall Golf Club","Street":"Lilyhurst Road","Town":"Newport","County":"Shropshire","Postcode":"TF10 9AS","Phone":"01952 604776","Phone Alt":"01952 604776","Website":"www.lilleshallhallgolfclub.co.uk","Email":"honsec@lhgc.entadsl.com","Type of Club":"Members","Course Type":"Parkland","Yardage Markers":"No","Changing Rooms":"Yes","Driving Range":"No","Number of Holes":"18 Hole","Yardage":"5813","Par":"68","Handicap Certificates Required":"No","Soft Spikes Required":"No","Pro Shop":"Yes","Custom Club Fitting Service":"Yes","Club Hire":"No","Trolley Hire":"Yes","Buggy Hire":"No","Lessons Available":"Yes","Accommodation Available":"No","Bar":"Yes","Breakfast":"Yes","Lunch":"Yes","Dinner":"No","Latitude":"52.72753","Longitude":"-2.374602","Distance":6.72614709897134}],"response_time":0.0156,"Source":"PostcodeArea API","Output Area":"Radius","Radius":10,"Distance Unit":"Mile","Records":4,"Unique Fields":33,"Referrer":"api.postcodearea.co.uk","Host":"https://api.postcodearea.co.uk/golf-courses/?key=pa_XWQAV24RXCUU19NGUFM11TKTLN&postcode=st200ly","Endpoint":"/golf-courses/?key=pa_XWQAV24RXCUU19NGUFM11TKTLN&postcode=st200ly"}

Error Handling

HTTP Status Code Error Message Reason
400 Invalid postcode format The postcode provided is not valid.
401 Unauthorised request API key missing or invalid.
404 Postcode not found No data available for the given postcode.
404 No Results Found No data available for the given radius.
429 Too many requests Exceeded rate limit.
500 Internal server error An unexpected issue occurred.

Caching Policy

You may temporarily cache data retrieved from the API for performance optimisation purposes, provided that the cached data is:

  1. Stored in-memory only (e.g., application-level cache).
  2. Retained for no longer than one hour.

Caching API data to any persistent storage, including but not limited to databases, files, or external systems, constitutes a breach of our API Terms and Conditions. Such actions are strictly prohibited to ensure data accuracy and compliance with our licensing agreements.

If you have specific requirements for extended caching, you must seek prior written consent from us.


Get started today

Ready to use this data for your own business or organisation? Sign up today and get immediate access to all the PostcodeArea API endpoints.

Share this page