Parse An Address
address_verification.parse_an_address(AddressVerificationParseAnAddressParams**kwargs) -> AddressVerificationParseAnAddressResponse
POST/v1/addver/parses
Parses a freeform address string into its individual components (house number, street name, city, state, postal code, etc.).
Useful for extracting structured data from a single-line address without running a full verification.
- Uses 1 lookup.
Parse An Address
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.parse_an_address(
address="address",
)
print(response.data){
"data": {
"category": "category",
"city": "city",
"cityDistrict": "cityDistrict",
"country": "country",
"house": "house",
"houseNumber": "houseNumber",
"island": "island",
"level": "level",
"near": "near",
"poBox": "poBox",
"postcode": "postcode",
"road": "road",
"state": "state",
"stateDistrict": "stateDistrict",
"suburb": "suburb",
"unit": "unit"
},
"message": "message",
"status": "success"
}Returns Examples
{
"data": {
"category": "category",
"city": "city",
"cityDistrict": "cityDistrict",
"country": "country",
"house": "house",
"houseNumber": "houseNumber",
"island": "island",
"level": "level",
"near": "near",
"poBox": "poBox",
"postcode": "postcode",
"road": "road",
"state": "state",
"stateDistrict": "stateDistrict",
"suburb": "suburb",
"unit": "unit"
},
"message": "message",
"status": "success"
}