Full Address Search functionality:
To get a full address from our JSON/JSONP Web Service we do the following:
Simply use the "Sign Up for Trial" link at top right of this page to open a trial account. We will then send you a data key, which is used to identify your account, when using the following service.
Step 2 Call JSONService/JSONSearchForAddress.aspx for list of address at Postcode
JSONService/JSONSearchForAddress.aspx
Returns a series of lines, from which the user can select full royal mail address information (Royal mail PAF Database). JSONGetAddressRecord.aspx (Step 2) is then called with the selected address id, to get full address information.
JSONGetAddressRecord.aspx
cross=true
Call JSON web service with your data key, which is e-mailed to you when you open an account. The data key identifies your account and licenses within our system.
Web Service www.simplylookupadmin.co.uk/JSONservice/JSONSearchForAddress.aspx?datakey=Your Data Key &postcode=pe132ql
www.simplylookupadmin.co.uk/JSONservice/JSONSearchForAddress.aspx?datakey=Your Data Key &postcode=pe132ql
Returns json { "found":"1", "credits_display_text":"Evaluation till 3 Apr 2011", "accountadminpage":"https://www.simplylookupadmin.co.uk/WebAccountLogin.aspx? doid=1&coid=3333305462&Pay=yes", "errormessage":"", "maxresults":"0", "recordcount":"7", "records":[ {"l":"Victoria Lodge 18 Victoria Road Wisbech", "id":"31597197_2535693S_F"}, {"l":"1 Victoria Road Wisbech", "id":"11570811_0S_F"}, {"l":"2 Victoria Road Wisbech", "id":"34692202_0S_F"}, {"l":"3 Victoria Road Wisbech", "id":"11570828_0S_F"}, {"l":"5 Victoria Road Wisbech", "id":"11570842_0S_F"}, {"l":"46 Victoria Road Wisbech", "id":"34692229_0S_F"}, {"l":"48 Victoria Road Wisbech", "id":"11570841_0S_F"} ] }
{ "found":"1", "credits_display_text":"Evaluation till 3 Apr 2011", "accountadminpage":"https://www.simplylookupadmin.co.uk/WebAccountLogin.aspx? doid=1&coid=3333305462&Pay=yes", "errormessage":"", "maxresults":"0", "recordcount":"7", "records":[ {"l":"Victoria Lodge 18 Victoria Road Wisbech", "id":"31597197_2535693S_F"}, {"l":"1 Victoria Road Wisbech", "id":"11570811_0S_F"}, {"l":"2 Victoria Road Wisbech", "id":"34692202_0S_F"}, {"l":"3 Victoria Road Wisbech", "id":"11570828_0S_F"}, {"l":"5 Victoria Road Wisbech", "id":"11570842_0S_F"}, {"l":"46 Victoria Road Wisbech", "id":"34692229_0S_F"}, {"l":"48 Victoria Road Wisbech", "id":"11570841_0S_F"} ] }
If address returned then found = 1, else found = 0,error in errormessage
found = 1
found = 0
errormessage
errormessage should be displayed if populated
Please note: Section 3.5 of the terms and conditions state: "The Customer, when using the Postcode Lookup service via Web Service, must make sure each user is identified by a unique Computer name, in each call to the Web Service if used internally”. In simple language this means that each user must be identified by a unique computer name, in username, if used by a company employee
Call JSONService/JSONGetAddressRecordV2.aspx Get Address Record
JSONService/JSONGetAddressRecordV2.aspx
Gets the full address information given the Address ID listed in previous step. Now call to get the full address record information for the address line selected by user.
A second version of this call, JSONGetAddressRecordV2.aspx, is provided which returns the ‘unique’ and ‘spare’ field in addition to the normal address fields. See Data Returned below.
Call JSON web service with your data key.
Web Service www.simplylookupadmin.co.uk/JSONservice/JSONGetAddressRecordV2.aspx?datakey=Your Data Key&id=11570838_0S_F
www.simplylookupadmin.co.uk/JSONservice/JSONGetAddressRecordV2.aspx?datakey=Your Data Key&id=11570838_0S_F
Returns json { "found":"1", "credits_display_text":"Evaluation expires 3 Apr 2011", "accountadminpage":"https://www.simplylookupadmin.co.uk/WebAccountLogin.aspx? doid=1&coid=3333305462&Pay=yes", "errormessage":"", "id":"31567757_2957290S_F", "organisation":"Tesco", "line1":"23 Barford Road", "line2":"", "line3":"", "town":"St. Neots", "county":"Cambridgeshire", "postcode":"PE19 2SA", "country":"England", "rawpostcode":"PE192SA", "deliverypointsuffix":"1N", "nohouseholds":"1", "smallorg":"Y", "pobox":"", "mailsortcode":"66140", "spare":"23||Barford Road||||||||||", "unique":"23", "udprn":"50394326" }
{ "found":"1", "credits_display_text":"Evaluation expires 3 Apr 2011", "accountadminpage":"https://www.simplylookupadmin.co.uk/WebAccountLogin.aspx? doid=1&coid=3333305462&Pay=yes", "errormessage":"", "id":"31567757_2957290S_F", "organisation":"Tesco", "line1":"23 Barford Road", "line2":"", "line3":"", "town":"St. Neots", "county":"Cambridgeshire", "postcode":"PE19 2SA", "country":"England", "rawpostcode":"PE192SA", "deliverypointsuffix":"1N", "nohouseholds":"1", "smallorg":"Y", "pobox":"", "mailsortcode":"66140", "spare":"23||Barford Road||||||||||", "unique":"23", "udprn":"50394326" }
It is a requirement of the royal mail that if postcode lookup software is used by an employee of a company, then the user must be uniquely identified so we can apply a user count.
Therefore the URL must contain a User ID:
Web Service www.simplylookupadmin.co.uk/JSONservice/JSONSearchForAddress.aspx?datakey=Your Data Key &postcode=pe132ql&username=UserID or www.simplylookupadmin.co.uk/JSONservice/JSONGetAddressRecordV2.aspx?datakey=Your Data Key&id=11570838_0S_F&username=UserID
www.simplylookupadmin.co.uk/JSONservice/JSONSearchForAddress.aspx?datakey=Your Data Key &postcode=pe132ql&username=UserID or www.simplylookupadmin.co.uk/JSONservice/JSONGetAddressRecordV2.aspx?datakey=Your Data Key&id=11570838_0S_F&username=UserID
This will be the datakey beginning with "I"
Section 3.5 of the Terms and Conditions state: "The Customer, when using the Postcode Lookup service via Web Service, must make sure each user is identified by a unique Computer name, in each call to the Web Service if used internally”. In simple language this means that each user must be identified by a unique computer name, in username parameter, if used by a company employee.
Final step is to test, to enable easy testing please use our special test postcodes.
This type of license returns: (see example below)
● see Additional Data Returned by Postcode Finder API for more information