Up to 20% of packages struggle to get delivered due to errors in address validation. Typos, missing suite numbers, and incorrect postal codes all make address validation difficult. Our Address Verification API provides your customers with the best purchase experience by validating addresses and ensuring deliverability.
import easypost
client = easypost.EasyPostClient("EASYPOST_API_KEY")
address = client.address.create(
verify=True,
street1="000 unknown street",
city="Not A City",
state="ZZ",
zip="00001",
country="US",
email="test@example.com",
phone="5555555555",
)
print(address)
{
"id": "adr_3a98ffc7bafa11eeb8fcac1f6bc539ae",
"object": "Address",
"created_at": "2024-01-24T20:50:38+00:00",
"updated_at": "2024-01-24T20:50:38+00:00",
"name": null,
"company": "EasyPost",
"street1": "000 unknown street",
"street2": null,
"city": "Not A City",
"state": "ZZ",
"zip": "00001",
"country": "US",
"phone": "5555555555",
"email": "test@example.com",
"mode": "test",
"carrier_facility": null,
"residential": null,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": false,
"errors": [
{
"code": "E.ADDRESS.NOT_FOUND",
"field": "address",
"message": "Address not found",
"suggestion": null
}
],
"details": null
},
"delivery": {
"success": false,
"errors": [
{
"code": "E.ADDRESS.NOT_FOUND",
"field": "address",
"message": "Address not found",
"suggestion": null
}
],
"details": {}
}
}
}
Now that over 50% of internet traffic is via mobile devices, people are making purchases from their phones more than ever, but auto-correct functionality isn't always your friend. Using an address validation API helps your customers provide their address accurately to ensure they don't miss a delivery and you don't have to issue a refund.
With the growing world of ecommerce and countless competitors in any given market, you need to ensure that your customers are having a quality experience from the start of their buyer's journey, all the way to checkout. An address validation API makes the checkout experience efficient and enjoyable for your customers.
Using an address validation API automates the address verification processes so you and your support team can stop wasting time on fixing rejected labels, tracking down lost or undelivered packages, and dealing with upset customers.
Take a look at our documentation and start building with one of our helper libraries (Python, PHP, Ruby, Node.js, Java, and more). Avoid month-long integrations and start verifying addresses in minutes with EasyPost.