How The Address44 UK Postcode Lookup API Works
Create an http post and send the Postcode to the Address44 endpoint as shown below. The API will return a list of matching addresses as a JSON string.
Basic Example Code Using PHP
Example UK Postcode Lookup API JSON Returned
A fictional example of the JSON formatted array of addresses you will receive in return is below. If your access-key is not correct you will receive an http 403 response. If there are no matches, nothing will be returned.
Advanced Example Code Using PHP
This example retrieves and decodes the addresses for a postcode. It then puts that data into a drop down select box. You can modify this code to use it however you require.
Sign up to the Free Trial and get started with the UK Postcode Lookup API in minutes.