UK Postcode & Address API for Developers

A minimal JSON API to lookup UK postcodes and addresses

Regularly updated addressing data using Royal Mail's Postcode Address File

2p per public website or app lookup. Open data is free

Sign up for a Free Trial Find out more
pricing

Simply Priced

Worry-free pricing with no hidden costs or lock-in. A flat, pay-as-you-go rate of 2p per lookup
ideal

Incredibly Accurate

Access the UK's most accurate address database. We use Royal Mail's Postcode Address File
support

Well Supported

Integrate quickly with clear documentation, open-source libraries and live support from developers

Postcode lookups just a HTTP request away
Sign up for an API Key to instantly access our simple API

GET /v1/postcodes/

REQUEST

					

Integrate postcode lookups with any form in moments
Add postcode lookups to any web form by embedding and configuring our jQuery Plugin

<!-- Add a div to house your 
     postcode input field -->
<div id="lookup_field"></div>

<!-- This is your existing form -->
<label>Address Line One</label>
<input id="first_line" type="text">

<label>Address Line Two</label>
<input id="second_line" type="text">

<label>Address Line Three</label>
<input id="third_line" type="text">

<label>Post Town</label>
<input id="post_town" type="text">

<label>Postcode</label>
<input id="postcode" type="text">
<script>
// Add this after your form
$.idealPostcodes.setup({
  // Add your API key
  api_key: 'ak_hk71kco54zGSgVf9ExxRVVNmolLNh',
  // Identify your fields with CSS selectors
  output_fields: {
    line_1: '#first_line',  
    line_2: '#second_line',         
    line_3: '#third_line',
    post_town: '#post_town',
    postcode: '#postcode'
  }
});

$('#lookup_field').setupPostcodeLookup();
</script>

Demonstrations limited to 15 lookups per IP, per day