Search address

Searches for an address.

The API returns a list of matching addresses.

URL

POST https://api.complycube.com/v1/lookup/addresses

Headers

Name
Type
Description

Content-Type*

string

The content-type must always be set to application/json.

Authorization*

string

The API live or test key.

Body

Name
Type
Description

line*

string

The line of the address.

country*

string

postalCode*

string

The zip or postal code of the address.

Example request

curl -X POST https://api.complycube.com/v1/lookup/addresses \
     -H 'Authorization: <YOUR_API_KEY>' \
     -H 'Content-Type: application/json' \
     -d '{
               "line": "350 Fifth",
               "postalCode": "10118",
               "country": "US"
        }'

The Address object

Attribute
Type
Description

propertyNumber

string

The property number of the address.

buildingName

string

The building name of the address.

line

string

The line of the address.

city

string

The city or town of the address.

state

string

postalCode

string

The zip or postal code of the address.

country

string

Example response

{
    "totalItems": 1,
    "items": [
        {
            "propertyNumber": "350",
            "line": "350 5th Ave, New York, NY 10118-0100",
            "city": "New York",
            "state": "NY",
            "postalCode": "10118-0100",
            "country": "US"
        }
    ]
}

Last updated