Validate Address
GET
/v1/addresses/validateThe Validate Address endpoint returns valid address suggestions based on the provided input address. Currently, the endpoint supports addresses within the United States only.
Request
The name of the country associated with the address (Max 50 characters). This field is required.
The state associated with the address (Max 100 characters). This field is required.
The ZIP code of the address (Max 20 characters). This field is required.
Indicates whether country, city, or street fields are mandatory.
The name of the city associated with the address (Max 100 characters).
The county associated with the address (Max 100 characters).
The street address (Max 200 characters).
Request samples
Responses
The original address provided in the request.
The city name (Max 100 characters).
The country name (Max 50 characters).
The state name (Max 100 characters).
The ZIP code (Max 20 characters).
The street name (Max 200 characters).
Indicates whether partial address data is allowed.
The date and time the document was created.
A list of matched addresses based on the request.
The matched address details.
Scoring details for the matched address.
{
"matchedAddresses": [
{
"address": {
"city": "Phoenix",
"country": "United States",
"county": "Maricopa",
"state": "Arizona",
"street": "S 3rd Ave",
"zip": "85041-5705",
},
"scoring": {
"matchLevel": "EXCELLENT",
"score": 0.96,
"fieldScore": {
"countryMatch": "EXACT",
"stateMatch": "EXACT",
"cityMatch": "EXACT",
"streetMatch": "GOOD",
"zipMatch": "EXACT"
}
}
},
{
"address": {
"city": "Phoenix",
"country": "United States",
"county": "Maricopa",
"state": "Arizona",
"street": "S 3rd St",
"zip": "85042-4206"
},
"scoring": {
"matchLevel": "EXCELLENT",
"score": 0.92,
"fieldScore": {
"countryMatch": "EXACT",
"stateMatch": "EXACT",
"cityMatch": "EXACT",
"streetMatch": "GOOD",
"zipMatch": "GOOD"
}
}
}
],
"requestAddress": {
"city": "Phoenix",
"country": "USA",
"state": "Arizona",
"street": "6001 W 3rd St",
"zip": "85041-5705",
"isPartial": false
}
}