Postcode lookup
Every address at a postcode, in sensible order: 2 before 10, Flat 2 before Flat 10. Filter to residential or business.
UK address lookup API
Type a postcode and get every address at it: house numbers, flats, businesses, each one split into the fields your form needs. Add a house number and get just that one.
The demo allows one lookup every 30 seconds. API keys aren't limited like this.
One small API for the address step in your forms. Fast enough to call as people type.
Every address at a postcode, in sensible order: 2 before 10, Flat 2 before Flat 10. Filter to residential or business.
Start typing a street and town and pick from the matches. Abbreviations like rd and ln just work.
Type 40 BD10 9AX and get that one address. If there's no number 40, you get the whole postcode instead.
Every address comes as a one-line label for dropdowns, plus organisation, building, lines 1–3, town, county and postcode.
Send a postcode, a radius and a list of postcodes, and get back the ones in range, nearest first, with distances.
Each key only works from the domains you list, with its own rate limit, so a copied key is no use elsewhere.
One HTTPS request, one JSON answer. Send your key in a header, and call it from your server or from the browser on your own domains.
GET /v1/postcode/LS1 4AP: addresses at a postcodeGET /v1/postcode/40 BD10 9AX: one addressGET /v1/search?q=high st leeds: type-aheadPOST /v1/nearest: postcodes within a radiuscurl https://mtapi.getaddress.co.uk/v1/postcode/40%20BD10%209AX \
-H "X-Api-Key: $YOUR_KEY"
const res = await fetch(
`https://mtapi.getaddress.co.uk/v1/postcode/${encodeURIComponent(input)}`,
{ headers: { 'X-Api-Key': YOUR_KEY } },
);
const { addresses } = await res.json();
addresses.forEach((a) => console.log(a.label));
{
"postcode": "BD10 9AX",
"houseNumber": "40",
"matched": true,
"count": 1,
"addresses": [{
"id": "1627179",
"type": "residential",
"label": "40 Stockhill Road, Bradford, BD10 9AX",
"buildingNumber": "40",
"line1": "40 Stockhill Road",
"town": "Bradford",
"county": "West Yorkshire",
"postcode": "BD10 9AX",
"country": "United Kingdom"
}]
}
The addresses come from the Royal Mail Postcode Address File (PAF): every address Royal Mail delivers to in the UK. We load each monthly release, so new-build streets show up soon after Royal Mail adds them.
Postcode locations and counties come from the ONS Postcode Directory, which is also where the distances are measured from.
Tell us which sites you'll call it from and roughly how many lookups you expect, and we'll set you up.
hello@getaddress.co.uk