Search by postcode

Find a postcode

Nearest to a point

Add data to a CSV file

Upload a CSV with a column of postcode data and add information about those postcodes to it. Information includes latitude/longitude and areas.


Upload a CSV

Use the API

The API provides programmatic access to the postcode data, using the JSON api specification.


Use the API

Browse by area type


Use the API

The API provides programmatic access to the postcode data, using the JSON api specification.

The .json at the end of the url is optional, requests will return json by default unless .html is added.

ONS GSS codes are used for area IDs.

Example requests

Get data on a postcode /postcodes/AB12+3CD.json Example Example HTML
Get full data on a postcode (includes names of all the areas) /postcodes/AB12+3CD.json?full Example
Get data about a postcode nearest
to a latitude, longitude point
/points/51.501009,-0.141588.json Example Example HTML
Get data about an area
Includes 5 random postcodes from the area
/areas/E01000001.json Example Example HTML
Get an area's boundaries as geojson
NB not available for all areas
/areas/E01000001.geojson Example
Search for areas containing a string /areas/search.json?q=search+term Example Example HTML
Get information about a type of area
(local authority, parliamentary constituency, etc)
/areatypes/pcon.json Example Example HTML
Get information about all types of area /areatypes.json Area types HTML