Address Validation
Lookup an address based on a key.
post/address/lookup/v2
Headers
Reference-Idstring
Optional identifier that will be returned in the response to help you track the request.
Timeout-Secondsinteger
Maximum time you are prepared to wait for a response, expressed in seconds. Acceptable values: 2-15. If a timeout occurs, an HTTP status code of 408 - Request Timeout will be returned.
Add-Addressesstring
If true an addresses field will be populated with concrete addresses in response.
Add-FinalAddressboolean
If true an addresses_formatted field will be populated with concrete custom formatted addresses in response.
Request body
Example request
{
"country_iso": "GBR",
"datasets": [
"gb-address"
],
"max_addresses": 10,
"key": {
"type": "postal_code",
"value": "NN14 4RX"
},
"names": [
"1 Main Street"
],
"layouts": [
"default"
]
}Response
OK
Example response
{
"confidence": "Verified match",
"suggestions_prompt": "Enter selection",
"addresses_formatted": [
{
"layout_name": "QADefault",
"address": {
"AmexStreet": "1 Main St",
"AmexTown": "Surbiton",
"AmexCountry": "United Kingdom",
"gas_meters": [
{
"mprn": "52902306"
},
{
"mprn": "52902307"
}
]
}
}
]
}