Enter a postcode

Postcode Lookup API

Try it here. Enter a UK postcode and the live service lists the addresses. Pick one and the form fills. Typing a partial address instead? Lookahead search is the same service and the same credits.

ePostcode is used by hundreds of companies in the UK that are already benefitting from the best value address management service available.

Live UK addresses. No account needed to try it.

Same service, two searches

Two ways to find a UK address

Both methods use the same ePostcode API and the same credits. This page is the postcode method. Lookahead search is the other.

Faster checkoutThe customer picks an address instead of typing every line.
Fewer bad addressesMatches come from Royal Mail PAF, so the record is deliverable.
Form fills itselfLine 1, line 2, town, county and postcode come back together.
Location includedLatitude and longitude are included. UPRN is optional.
Royal Mail PAF30 million+ residential, commercial and rural UK addresses.
Multiple ResidenceOptional file for buildings with more than one residence.
Not Yet BuiltOptional file for addresses that are not yet on PAF.
Ordnance Survey UPRNUnique Property Reference Number, one extra credit when you ask for it.
GeocodingLatitude and longitude returned with the premise.
BFPO and PO BoxesForces post and Post Office boxes sit in the same UK file.

Multiple Residence and Not Yet Built are optional. Bureau cleansing for a whole file is on the data cleansing page. The search methods above use the same live service.

Features

Find every address at a postcode

Enter the postcode and return the premises. Lookahead search, where the customer types a partial address, is on the address validation page.

Comprehensive Address Database

Access to the complete UK address database with over 30 million addresses including residential, commercial, and new build properties.

  • 30M+ UK addresses
  • Regular PAF updates
  • Royal Mail PAF licensed

Postcode in, list out

The customer enters a postcode. ePostcode returns the premises at that postcode so they can pick the right one.

  • One postcode, every premise
  • Residential and commercial
  • Same credits as lookahead search

Lightning Fast API

Ultra-fast postcode lookups with response times under 100ms, globally distributed infrastructure, and 99.9% uptime guarantee.

  • Sub-50ms response
  • Global CDN
  • 99.9% uptime SLA

Simple API Integration

Easy-to-integrate RESTful API with comprehensive documentation, code examples, and client libraries for all major platforms.

  • RESTful API
  • SDK libraries
  • Code examples

PAF Certified Data

Royal Mail Postcode Address File (PAF) licensed data ensuring the highest quality, accuracy, and up-to-date address information.

  • Royal Mail licensed
  • Regular audits
  • Quality assured

Security & Compliance

Enterprise-grade security with HTTPS encryption, GDPR compliance, and secure data handling practices.

  • HTTPS encryption
  • GDPR compliant
  • Secure authentication
Capabilities

Technical Capabilities

Powerful features designed for developers

Postcode Search

Enter a postcode such as BS1 4DJ and retrieve the addresses at that postcode, with optional UPRN and coordinates on the premise you select.

Prefer to type the address?

Lookahead search suggests matches from a partial address, then fills the form. It is the same API. See it on the address validation page.

Geocoding

Get latitude and longitude coordinates for every address, enabling mapping, distance calculations, and location-based services.

Rich Metadata

Access comprehensive address data including postcode district, county, region, constituency, and local authority information.

Real-Time Updates

Our database is updated automatically with the latest Royal Mail PAF data, ensuring you always have access to the most current address information.

Data Retention

Historical address data retained for audit trails and compliance purposes, with full versioning and change tracking capabilities.

Pricing

Pay As You Go, from 3.5p to 2.3p

Credits last for up to 3 years. The more you buy, the more you save. Above 1,000,000 lookups, please call.

See pricing
Solutions

Where a postcode lookup belongs

Checkout, CRM and the other forms that already ask for a postcode. Enter it, pick the premises, and the address fields fill.

Checkout

The customer enters the postcode at checkout and picks the delivery address. The lines fill before the order is placed, so the despatch address matches the PAF file.

CRM

Add the lookup to the account screen. Staff type a postcode and the address lands in the same CRM fields on every record.

Onboarding

Quote, policy and application forms that collect a postcode get a complete UK address back in one step.

Despatch

Capture the postcode when the order is taken, so the delivery address is complete before the label is printed.

Contact centre

The agent asks for the postcode, confirms the premises, and the screen fills while the customer is still on the line.

Public sector forms

Application and service forms that ask for a postcode return the matching addresses from the Royal Mail PAF file.

Developers

Easy API Integration

Get started in minutes with our simple RESTful API

API Features

  • RESTful API - Simple HTTP requests
  • JSON Responses - Easy to parse
  • Fast Response - Sub-50ms typical
  • Secure - HTTPS with API key auth
  • Well Documented - Complete guides
  • Code Examples - Multiple languages

Base URL:

https://wsp.epostcode.com/uk/v1/
View Full Documentation
Example: Search for Addresses
// cURL Request - Open Search (keywords)
curl -X GET "https://wsp.epostcode.com/uk/v1/Search?key=YOUR_API_KEY_HERE&phrase=mossland%20road&opensearch=true"

// cURL Request - Exact Postcode
curl -X GET "https://wsp.epostcode.com/uk/v1/Search?key=YOUR_API_KEY_HERE&phrase=G524XZ&opensearch=false"

// JavaScript (Fetch)
fetch('https://wsp.epostcode.com/uk/v1/Search?key=YOUR_API_KEY_HERE&phrase=mossland%20road&opensearch=true')
.then(response => response.json())
.then(data => {
  console.log(data);
  // Access items array
  data.items.forEach(item => {
    console.log(item.text); // Address summary
    if (item.type === 'Premise') {
      // Single address - can get full details
      fetchPremiseDetails(item.key);
    } else if (item.type === 'Group') {
      // Multiple addresses - search again with this key
    }
  });
})
.catch(error => console.error('Error:', error));

// JSON Response - Search Endpoint (Open Search)
{
  "items": [
    {
      "key": "G52 4XZ",
      "text": "Mossland Road, Hillington Park, Glasgow, G52 4XZ - 24 Addresses",
      "type": "Group"
    },
    {
      "key": "ST3 5AB",
      "text": "Mossland Road, Stoke-on-Trent, ST3 5AB - 26 Addresses",
      "type": "Group"
    }
  ]
}

// JSON Response - Search Endpoint (Exact Postcode)
{
  "items": [
    {
      "key": "52502003",
      "text": "Merlin House, 20 Mossland Road, Glasgow, G52 4XZ",
      "type": "Premise"
    },
    {
      "key": "52502004",
      "text": "22 Mossland Road, Glasgow, G52 4XZ",
      "type": "Premise"
    }
  ]
}

// Get Detailed Data for a Premise
// Use the 'key' from Premise results to get full address details
GET /GetPremise?key=YOUR_API_KEY&id=52502003

// JSON Response - GetPremise Endpoint (Default)
{
  "item": {
    "id": "52502003",
    "domesticId": "52502003",
    "buildingName": "Merlin House",
    "buildingNumber": 20,
    "street": "Mossland Road",
    "district": "Hillington Park",
    "city": "Glasgow",
    "company": "Etellect Ltd",
    "postalCode": "G52 4XZ",
    "countryName": "Scotland",
    "province": "Renfrewshire",
    "lat": "55.863168",        // ✓ Latitude included FREE
    "long": "-4.379078"        // ✓ Longitude included FREE
  }
}

// To include UPRN data, add uprn=true (+1 extra credit)
GET /GetPremise?key=YOUR_API_KEY&id=52502003&uprn=true

// JSON Response - With UPRN
{
  "item": {
    "id": "52502003",
    "lat": "55.863168",
    "long": "-4.379078",
    "uprn": "123105666",       // ✓ UPRN included (+1 credit)
    "udprn": "52502003",
    // ... other address fields
  }
}

Ready to Improve Your Address Accuracy?

ePostcode is used by hundreds of companies in the UK that are already benefitting from the best value address management service available.

30M+ UK Addresses
99.9% Accuracy Rate
100ms Response Time