API is live — 1,339,187 postcodes indexed

UK Address Lookup
Made Simple

Lightning-fast postcode and address search API. Millions of addresses, sub-50ms responses, zero dependencies. Built for developers who demand speed and reliability.

⚡ Try Live Demo View Documentation
16,320,064
UK Addresses
1,339,187
Postcodes Covered
<50ms
Avg Response Time
99.9%
Uptime

Try It Now

Type any UK postcode and see instant results

Live API Response

Why PostcodeAPI?

Everything you need for UK address lookups, nothing you don't

Blazing Fast

SQLite-powered queries deliver results in under 50ms. No cold starts, no external dependencies.

🔒

Secure by Default

API key authentication, CORS restriction, rate limiting, and timing-safe comparisons built in.

🏠

Full Addresses

Not just postcodes. Get building numbers, street names, localities, towns, and counties for every result.

🚀

Zero Dependencies

Single PHP file + SQLite database. Deploy to any hosting in under 5 minutes. No frameworks needed.

🔎

Autocomplete

Real-time postcode suggestions as users type. Perfect for address forms and checkout flows.

📊

Official Data

Powered by HM Land Registry Price Paid Data. Free, legal, and updated regularly under Open Government Licence.

API Reference

Simple RESTful endpoints. JSON responses. That's it.

GET /api/lookup?postcode=N13+5TL API Key
GET /api/autocomplete?q=N13&limit=10 API Key
GET /api/stats API Key
GET /api/health No auth required

🔐 Authentication

Include your API key in every request using one of:

# Header (recommended)
X-API-Key: your-api-key-here

# Query parameter
/api/lookup?postcode=N13+5TL&api_key=your-api-key-here