API Endpoints

Community and Leisure

Leisure Centres

Tokens
× 1

API Credit Cost


Endpoint Overview

The Leisure Centres endpoint lists sports and recreational facilities within a postcode radius, including gyms, pools, and activity centres.


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/v1/leisure-centres/?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/v1/leisure-centres/?key={api_key}&postcode=WS3+3PD

For example:

https://api.postcodearea.co.uk/v1/leisure-centres/?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/v1/leisure-centres/?key=&postcode=WS3+3PD
{"data":[{"Name":"Stafford Bowling Club","Street":"Castlefields","Village":"Newport Road","Locality":"","Town":"Stafford","County":"Staffordshire","Postcode":"ST16 1BG","Phone":"01785 242067","Website":"","Latitude":"52.8026","Longitude":"-2.126972","Distance":5.15273863279966},{"Name":"Stafford Sports Arenas","Street":"Unit 4/Queensville Retail Park","Village":"Silkmore Lane","Locality":"","Town":"Stafford","County":"Staffordshire","Postcode":"ST17 4UR","Phone":"01785 257081","Website":"","Latitude":"52.7947","Longitude":"-2.102731","Distance":6.07780097203627},{"Name":"Beaconside Sports Centre","Street":"Beaconside","Village":"","Locality":"","Town":"Stafford","County":"Staffordshire","Postcode":"ST18 0AD","Phone":"01785 353286","Website":"www.staff.ac.uk","Latitude":"52.81306","Longitude":"-2.083621","Distance":7.08023903362487},{"Name":"Penkridge Leisure Centre","Street":"Cannock Road","Village":"","Locality":"Penkridge","Town":"Stafford","County":"Staffordshire","Postcode":"ST19 5RX","Phone":"01785 714152","Website":"www.sstaffs.gov.uk","Latitude":"52.72214","Longitude":"-2.09837","Distance":7.69855205174871},{"Name":"West Bridge Park Sports Centre","Street":"Stafford Road","Village":"","Locality":"","Town":"Stone","County":"Staffordshire","Postcode":"ST15 8QW","Phone":"01785 619600","Website":"","Latitude":"52.90073","Longitude":"-2.145797","Distance":8.91876046171861},{"Name":"Idsall Sports Centre","Street":"Coppice Green Lane","Village":"","Locality":"","Town":"Shifnal","County":"Shropshire","Postcode":"TF11 8PD","Phone":"01952 460499","Website":"","Latitude":"52.67222","Longitude":"-2.36608","Distance":9.36865929124564},{"Name":"Alleynes Sports Centre","Street":"Oulton Road","Village":"","Locality":"","Town":"Stone","County":"Staffordshire","Postcode":"ST15 8DR","Phone":"01785 815715","Website":"","Latitude":"52.91092","Longitude":"-2.142545","Distance":9.60488574377197},{"Name":"Stirchley Recreation Centre","Street":"Grange Avenue","Village":"","Locality":"Stirchley","Town":"Telford","County":"Shropshire","Postcode":"TF3 1ET","Phone":"01952 596063","Website":"","Latitude":"52.65505","Longitude":"-2.435697","Distance":12.0645472462914}],"response_time":0.0469,"Source":"PostcodeArea API","Output Area":"Radius","Radius":10,"Distance Unit":"Mile","Records":8,"Unique Fields":12,"Referrer":"api.postcodearea.co.uk"}

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