Postcode Programming API  Simply Postcode Software HTTP/XML Web Service

V2 Legacy HTTP/XML Web Service offers a simple way to interact with our postcode address lookup service. A simple web request URL returns XML which can be read by almost any programming language.   This service provides up to date Royal Mail address information, that is updated daily.

This data source can be used by any web server or programming language that supports a server-side scripting language that can parse JSON data, to provide Postcode Software Lookup and Nearest Store locator within your software/Web site.

The service is available across a simple HTTP protocol. Each request is a standard HTTP GET request with the query string forming the request parameters, and returns the address Lookup information as XML data feed.

V3 Open API: has replaced this V2 Legacy HTTP/XML Web Service - For web/desktop applications, we have an Open API web service that takes a Postcode, Postcode + Part of address, or “Search as you type” words and returns a list of matching addresses, which can be used by almost any programming stack.

The user then selects an address from the list presented, and another call is made to the Open API to get the detailed address record and its geolocation. More info about Open API

V2 HTTP/XML Web Service Offers:

 

The service is available across a simple HTTP protocol. Each request is a standard HTTP GET request with the query string forming the request parameters, and returns the address Lookup information as XML.

 

Demonstration Video

 
 
   Simply Postcode: HTTP/XML Web Service for any web site
  0:00 Advantages
  0:45 Download code
  1:00 Example Program
  2:20 Demo of HTTP request
  3:00 Formed URL


V2 HTTP/XML Web Service Features

The HTTP/XML Web Service has the following features:

  • Daily updated Data from Royal Mail
  • Platform/Language independent
  • Offers full access to all data we provide (Full/Thoroughfare/Geographic Longitude and Latitude)
  • Data always up to date
  • No Data Administration Cost for you
  • Can allow your customer to open an account, you get commission

 

V2 HTTP/XML Web Service Demo Program

 

HTTPExample.exe can be found in the root of the example download code. This demonstrates the HTTP requests in action.

Royal mail Postcode Address Lookup using HTTP request to get XML

Turning on “Show calls in detail to Demonstrate HTTP/XML Data” will show the URLs called and the XML returned by calls HTTP calls. This should help programmers of other languages understand the HTTP calls and returns data.

 

V2 HTTP/XML Web Service Example Code

 

The HTTP/XML examples:

HTTPExample.exe can be found in the root of the example download code. This demonstrates the HTTP requests in action.

Turning on “Show calls in detail to Demonstrate HTTP/XML Data” will show the URLs called and the XML returned by calls HTTP calls. This should help programmers of other languages understand the HTTP calls and returns data.

For Web Sites

Directory Language API Used Description
AJAX/AJAX ASP Full Address ASP HTTP/XML AJAX Full Address example
AJAX/AJAX ASP Full Address 2 Addresses ASP HTTP/XML AJAX Full Address example with 2 address box on same page
AJAX/AJAX ASP NET Full Address ASP.NET HTTP/XML AJAX Full Address example
AJAX/AJAX ASP NET Full Address 2 Addresses ASP.NET HTTP/XML AJAX Full Address example with 2 address box on same page
AJAX/AJAX ASP NET Full Address 2 Addresses C# C# HTTP/XML AJAX Full Address example
AJAX/AJAX ASP NET Full Address C# C# HTTP/XML AJAX Full Address example with 2 address box on same page
AJAX/AJAX ASP NET Thoroughfare ASP.NET HTTP/XML AJAX Thoroughfare/Street Address example
AJAX/AJAX ASP NET Thoroughfare 2 Addresses ASP.NET HTTP/XML AJAX Thoroughfare/Street Address example with 2 address box on same page
AJAX/AJAX ASP NET Thoroughfare 2 Addresses C# C# HTTP/XML AJAX Thoroughfare/Street Address example with 2 address box on same page
AJAX/AJAX ASP NET Thoroughfare C# C# HTTP/XML AJAX Thoroughfare/Street Address example
AJAX/AJAX ASP Thoroughfare ASP HTTP/XML AJAX Thoroughfare/Street Address example
AJAX/AJAX ASP Thoroughfare 2 Addresses ASP HTTP/XML AJAX Thoroughfare/Street Address example with 2 address box on same page
AJAX/AJAX PHP Full Address PHP HTTP/XML AJAX Full Address example
AJAX/AJAX PHP Full Address 2 Addresses PHP HTTP/XML AJAX Full Address example with 2 address box on same page
AJAX/AJAX PHP Thoroughfare PHP HTTP/XML AJAX Thoroughfare/Street Address example
AJAX/AJAX PHP Thoroughfare 2 Addresses PHP HTTP/XML AJAX Thoroughfare/Street Address example with 2 address box on same page
ASP ASP HTTP/XML How to get PostZon and Thoroughfare/Street data using HTTP/XML Web Service
PHP core code/Full Address core code PHP HTTP/XML Get Full using HTTP/XML Web Service
PHP core code/PostZon core code PHP HTTP/XML Get PostZon using HTTP/XML Web Service
PHP core code/Thoroughfare core code PHP HTTP/XML Get Thoroughfare/Street using HTTP/XML Web Service
Python Python HTTP/XML Get Thoroughfare/Street using HTTP/XML Web Service
Java Java HTTP/XML Get Thoroughfare/Street using HTTP/XML Web Service
Web Popup/ASP Full Address Web Pop-up ASP HTTP/XML Web Popup for full address using ASP
Web Popup/PHP Full Address Web Pop-up PHP HTTP/XML Web Popup for full address using ASP
Web Popup/VBNET 2005 Full Address Web Popup VB.NET HTTP/XML Web Popup for full address using .NET

For Desktop Software

Directory Language API Used Description
VB6 HTTP Example VB6 HTTP/XML Example of how to use HTTP/XML web service to get FULL, Thoroughfare/Street and PostZon Data
HTTPExample.exe Demo HTTP/XML Demonstrates the HTTP/XML calls by showing the url called and the XML results. Should run from this directory on any PC

 

Download Programming Examples (13Mb)

see below for list of examples