Lookahead Address Search Demo

Experience real-time address autocomplete with instant results. Type to search across 30+ million UK addresses with intelligent suggestions.

Try It Now - Start Typing

How It Works

Step 1: Start typing an address, postcode, or street name (e.g., "10 Downing Street", "SW1A 2AA", or "Mossland Road")

Step 2: Select a Group to see all addresses at that postcode, or select a Premise to view full address details

Step 3: Click any result to see complete address information including geocoding data

0
Searches Performed
0
Results Displayed
0ms
Avg Response Time
0
Credits Used
Intelligent Credit Algorithm

Only 1 credit per search session • Session = searches within 60 seconds with same first 3 characters • Group selections and viewing details = FREEGeocoding (lat/long) included FREE • UPRN only when requested with uprn=true (+1 credit)

Selected Address Details

Behind The Scenes - API Integration

This demo uses the ePostcode REST API Search endpoint with real-time requests. Every keystroke triggers a new API call, demonstrating the speed and responsiveness of our service.

Search Endpoint

// Search with opensearch=true (flexible matching) fetch('https://wsp.epostcode.com/uk/v1/search?key=API_KEY&phrase=...') .then(response => response.json()) .then(data => { // Display results in dropdown data.items.forEach(item => { if (item.type === 'Group') { // Show postcode group (multiple addresses) } else if (item.type === 'Premise') { // Show individual address } }); });

GetPremise Endpoint

// Get full address details when user selects fetch(`https://wsp.epostcode.com/uk/v1/getpremise?key=API_KEY&id=${id}`) .then(response => response.json()) .then(premise => { // Display full address with: // - Building name/number // - Street, locality, town // - Postcode, county // - Latitude & longitude (FREE) // - UPRN (with uprn=true, +1 credit) });

Key Features

• Real-time Search: Results appear as you type with sub-100ms response times

• Smart Grouping: Groups multiple addresses by postcode for efficient navigation

• Full Details: Get complete address data including free geocoding (lat/long)

• Flexible Matching: Search by postcode, street name, building number, or town

• PAF Certified: Access to 30+ million Royal Mail approved UK addresses

View Full API Documentation Get Your API Key

Download This Demo

Get the complete standalone package with source code, implementation guide, and setup instructions. Works offline with your own API key!

View Standalone Version & Download Package
Self-contained HTML file
Complete source code
Setup instructions
Customization guide