Searches for an address.
The API returns a list of matching addresses.
URL
POST https://api.complycube.com/lookup/addresses
Body
Example request
cURL Node.js
Copy 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"
}'
Copy const { ComplyCube } = require ( "@complycube/api" );
const complycube = new ComplyCube ({ apiKey : "<YOUR_API_KEY>" });
const client = await complycube . lookup .searchAddress ({
line : "350 Fifth" ,
postalCode : "10118" ,
country : "US"
});
The Address object
Example response
Success (200)
Copy {
"totalItems" : 1 ,
"items" : [
{
"propertyNumber" : "350" ,
"line" : "350 5th Ave, New York, NY 10118-0100" ,
"city" : "New York" ,
"state" : "NY" ,
"postalCode" : "10118-0100" ,
"country" : "US"
}
]
}