UK Postcodes

Average: 2.2 (58 votes)

Developed by: 
Stuart Harrison

An API for Codepoint Open. Shows the Latitude, Longitude, Easting, Northing and Local Authority details (county, district, ward) for a given point. Also shows nearest postcodes to a postcode and allows reverse geocoding (lat/lng to postcode)

Data available in XML, JSON, CSV and RDF.

Dataset Name: Codepoint Open
Dataset URL:
Dataset Provider: Ordnance Survey

Apps submitted to are currently approved for publication on the general level of their context and appropriateness. Whilst we review these on a periodical basis, we do not own responsibility for the regular update and maintenance of these apps. Any queries about individual apps or tools published need to be directed to the originator.


Coverage of UK Postcodes

Does not seem to include Northern Ireland so should be called GB Postcodes, NOT UK Postcodes

 Flag as offensive 

Re: Coverage of UK Postcodes

I wasn't aware that it didn't contain NI data when I bought the domain. However, I have found this source of data, which I'm happy to add, but not sure of licensing constraints:

 Flag as offensive 

Northern Ireland Postcodes

The NISRA postcode data for Northern Ireland is freely re-usable under the Click Use PSI Licence. I've made the data available as a single CSV here

 Flag as offensive 

another source for NI

you can find a download of all UK postcodes including northern ireland at

a) there is no statement of licensing conditions and
b) the data is only to postcode district i.e. "outward code" level

 Flag as offensive 


I recently opted to use the Geocoder from Googlemaps based on the fact that I couldnt' find any real documentation on the allowed uses of the UK Postcode Data. All online references seem to suggest the same - that the data may not be queried as part of any application carrying out postcode to longitude and latitude conversion. Has something changed with this and have OS now given up the copyright to this data or they simply allowing people to build apps based on the data with the intention of taking legal action against them in the future?

 Flag as offensive 

Doesn't seem to work anymore

Is this app still active, doesn't find any of the postcodes I try, just returns not found.

 Flag as offensive 

App works fine

I've just updated the code, and taken on the project with Stuart Harrison. The service is working.

 Flag as offensive 

Doesn't work

It doens't work for me anymore either.

 Flag as offensive 

Get empty JSONs frequently

Hi there,

I use this service for my registration page.

Its not a high volume usage, perhaps 100 queries a day. Very regularly though I get empty JSON returns.

It also happens if I make the same request twice, even manually via my browser.

If this is by design for throttling purposes its seems a little severe! No error is returned either which doesnt help, just an empty reponse.

Can you shed any light on this..?



 Flag as offensive 

Looks like this app is no

Looks like this app is no longer actively maintained.

Perhaps you can fix it yourself by making a pull request on github?

 Flag as offensive 

County data?

Description above says UK Postcode API returns county, district and ward for a postcode. My tests show there is no former postal county information returned. Has this data now been removed and if so is there any alternative open data source for this information? Thanks for any insight you might have here.

 Flag as offensive 

You can find information

You can find information about all postcode in UK at Address Data including cencus information of each postcode unit.

 Flag as offensive 

App is no longer maintained but found a better site

The site is not updated for a while you can check this new site Free Address And Postcode Lookup Tool. I hope this helps.

 Flag as offensive