ONS Postcode Lookup Web Service

Overview

This web service enables you to absorb Postcode lookups into you app.

Both REST and SOAP services allow you to switch the period used for the data. Currently, the following datasets are available:

REST

http:/sws.substance.net/ons/rest

This service will return a json encoded array will all in the information about the requested postcode. If an incomplete postcode if reqested, a summary of the matches will be returned.

Parameters

  • - full or part postcode

REST

http:/sws.substance.net/ons/rest/getcodename

This method enables to the lookup of various code

Parameters

  • - One of the following values:
    • ladcua
    • pct
    • ward
    • gor
    • county
  • - The code to look up

REST

http:/sws.substance.net/ons/rest/convertwardto2012

Ward code formats changed in 2012, this method allows you to convert the current format to the pre 2012 format.

Parameters

  • - The ward code to look up

SOAP

http:/sws.substance.net/ons/soap

The following methods are available via the SOAP web service:

Further information about these methods can be found here.