Validation Migration
Overview
This guide helps you migrate from GetAddress's Validate API to Ideal Postcodes' Cleanse API.
Both APIs validate and cleanse freeform address input, returning a standardised address with geocoding data. Ideal Postcodes provides richer match quality indicators and includes UPRN data.
Key Differences
| Feature | GetAddress Validate | Ideal Postcodes Cleanse |
|---|---|---|
| Endpoint | GET/POST /validate/{address} | POST /v1/cleanse/addresses |
| Authentication | Query param api-key | Header Authorization: api_key="..." |
| Request format | Address in URL path | JSON body |
| Match quality | HTTP status codes (200/300/404) | Confidence score + match indicators |
| Geocoding | Included | Included |
| UPRN | Not included | Included |
Authentication
GetAddress:
GET https://api.getAddress.io/validate/{address}?api-key=YOUR_KEY
Ideal Postcodes:
curl -X POST 'https://api.ideal-postcodes.co.uk/v1/cleanse/addresses?api_key=YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"query": "10 Downing Street, London"}'
Or using the Authorization header:
curl -X POST 'https://api.ideal-postcodes.co.uk/v1/cleanse/addresses' \
-H 'Authorization: api_key="YOUR_KEY"' \
-H 'Content-Type: application/json' \
-d '{"query": "10 Downing Street, London"}'
Request Format
GetAddress accepts address as a URL path parameter:
GET https://api.getAddress.io/validate/91 Salcott Road, London?api-key=YOUR_KEY
Ideal Postcodes accepts a JSON body with optional structured fields:
{
"query": "91 Salcott Road, London",
"postcode": "SW11 6DF", // optional
"post_town": "London" // optional
}
Providing additional fields like postcode and post_town improves match accuracy.