Suggest Addresses
client.addressVerification.suggestAddresses(AddressVerificationSuggestAddressesParamsparams, RequestOptionsoptions?): AddressVerificationSuggestAddressesResponse { data, message, status }
POST/v1/addver/suggestions
Returns up to 3 verified address suggestions for a given input address.
Useful as a fallback when POST /verifications returns a failed status —
suggestions represent the closest matches found and may help the user
identify the correct address.
Accepts the same freeform or structured input formats as POST /verifications.
- Uses 1 lookup per call (plus 1 more if geocoding).
Suggest Addresses
import PostGrid from 'postgrid-node';
const client = new PostGrid({
addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});
const response = await client.addressVerification.suggestAddresses({
address: '1234 Elm St, Los Angeles, CA 90001, US',
});
console.log(response.data);{
"status": "success",
"message": "Addresses suggested successfully",
"data": [
{
"city": "Los Angeles",
"country": "US",
"line1": "1234 Elm St",
"postalOrZip": "90001",
"provinceOrState": "CA",
"status": "verified",
"errors": {}
}
]
}{
"status": "success",
"message": "Addresses suggested successfully",
"data": [
{
"city": "Los Angeles",
"country": "US",
"line1": "1234 Elm St",
"postalOrZip": "90001",
"provinceOrState": "CA",
"status": "verified",
"errors": {}
}
]
}Returns Examples
{
"status": "success",
"message": "Addresses suggested successfully",
"data": [
{
"city": "Los Angeles",
"country": "US",
"line1": "1234 Elm St",
"postalOrZip": "90001",
"provinceOrState": "CA",
"status": "verified",
"errors": {}
}
]
}{
"status": "success",
"message": "Addresses suggested successfully",
"data": [
{
"city": "Los Angeles",
"country": "US",
"line1": "1234 Elm St",
"postalOrZip": "90001",
"provinceOrState": "CA",
"status": "verified",
"errors": {}
}
]
}