API Endpoints

Public Services & Amenities

Local Councils

Tokens
× 1

API Credit Cost


Endpoint Overview

Local Councils endpoint provides information about the local council responsible for a postcode area, including contact details.


Coverage

EnglandEngland
ScotlandScotland
WalesWales
N. IrelandN. Ireland

Update Frequency

Bi-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/local-councils/?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/local-councils/?key={api_key}&postcode=WS3+3PD

For example:

https://api.postcodearea.co.uk/local-councils/?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/local-councils/?key=&postcode=WS3+3PD
{"data":[{"Name":"Stafford Borough Council","SNAC Code":"41UG","Address 1":"Civic Centre","Address 2":"Riverside","Town":"Stafford","City":"","County":"Staffordshire","Postcode":"ST16 3AQ","Telephone Number":"01785 619 000","Telephone Number Description":"Customer contact centre","Fax":"01785 619 219","Email":"info@staffordbc.gov.uk","Opening Hours":"","Latitude":"52.80503","Longitude":"-2.114771","Distance":5.69},{"Name":"Telford & Wrekin Council","SNAC Code":"00GF","Address 1":"Addenbrooke House","Address 2":"Ironmasters Way","Town":"Telford","City":"","County":"Shropshire","Postcode":"TF3 4NT","Telephone Number":"01952 380 000","Telephone Number Description":"Switchboard","Fax":"","Email":"contact@telford.gov.uk","Opening Hours":"","Latitude":"52.68023","Longitude":"-2.445858","Distance":11.12},{"Name":"Cannock Chase District Council","SNAC Code":"41UB","Address 1":"PO Box 28","Address 2":"Beecroft Road","Town":"Cannock","City":"","County":"Staffordshire","Postcode":"WS11 1BG","Telephone Number":"01543 462 621","Telephone Number Description":"","Fax":"01543 462 317","Email":"customerservices@cannockchasedc.gov.uk","Opening Hours":"","Latitude":"52.69194","Longitude":"-2.028409","Distance":11.3},{"Name":"South Staffordshire Council","SNAC Code":"41UF","Address 1":"Council Offices","Address 2":"Wolverhampton Road","Town":"Codsall","City":"","County":"South Staffordshire","Postcode":"WV8 1PX","Telephone Number":"01902 696 000","Telephone Number Description":"","Fax":"01902 696 800","Email":"info@sstaffs.gov.uk","Opening Hours":"","Latitude":"52.62567","Longitude":"-2.191961","Distance":11.4},{"Name":"Wolverhampton City Council","SNAC Code":"00CW","Address 1":"Civic Centre","Address 2":"St. Peters Square","Town":"","City":"Wolverhampton","County":"West Midlands","Postcode":"WV1 1SH","Telephone Number":"01902 551155","Telephone Number Description":"Customer services","Fax":"01902 551195","Email":"city.direct@wolverhampton.gov.uk","Opening Hours":"Monday to Thursday, 8.30am to 5pm. Friday, 8.30am to 4.30pm","Latitude":"52.58714","Longitude":"-2.129638","Distance":14.69}],"response_time":0,"Source":"PostcodeArea API","Output Area":"Radius","Radius":10,"Distance Unit":"Mile","Records":5,"Unique Fields":16,"Referrer":"api.postcodearea.co.uk","Host":"https://api.postcodearea.co.uk/local-councils/?key=pa_XWQAV24RXCUU19NGUFM11TKTLN&postcode=st200ly","Endpoint":"/local-councils/?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