Suggest Addresses
address_verification.suggest_addresses(AddressVerificationSuggestAddressesParams**kwargs) -> AddressVerificationSuggestAddressesResponse
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 os
from postgrid import PostGrid
client = PostGrid(
address_verification_api_key=os.environ.get("POSTGRID_ADDRESS_VERIFICATION_API_KEY"), # This is the default and can be omitted
)
response = client.address_verification.suggest_addresses(
address="1234 Elm St, Los Angeles, CA 90001, US",
)
print(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": {}
}
]
}