Get Autocomplete Previews
client.intlAddressVerification.getAutocompletePreviews(IntlAddressVerificationGetAutocompletePreviewsParams { advanced, cityFilter, container, 9 more } query?, RequestOptionsoptions?): IntlAddressVerificationGetAutocompletePreviewsResponse { data, message, status }
GET/v1/intl_addver/completions
Returns address completion previews for a partial address string, suitable for populating an autocomplete dropdown.
Regular mode — supply partialStreet to search by partial street address.
Results may include Address types (resolvable directly) and Container types
(buildings/complexes that require a follow-up call).
Advanced mode — supply advanced=true and a container ID (from a previous
regular call) to drill into a building or complex and retrieve individual unit addresses.
Results with type: "Address" can be fully resolved by passing their id
to POST /completions.
- Does not consume a lookup.
Get Autocomplete Previews
import PostGrid from 'postgrid-node';
const client = new PostGrid({
addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});
const response = await client.intlAddressVerification.getAutocompletePreviews();
console.log(response.data);{
"status": "success",
"message": "Address previews retrieved successfully",
"data": [
{
"id": "GB|RM|A|54186236",
"type": "Address",
"text": "Flat 1, One Canada Square",
"description": "London, E14 5AB"
}
]
}{
"status": "success",
"message": "Address previews retrieved successfully",
"data": [
{
"id": "GB|RM|A|54186236",
"type": "Address",
"text": "10 Downing Street",
"description": "London, SW1A 2AA"
}
]
}Returns Examples
{
"status": "success",
"message": "Address previews retrieved successfully",
"data": [
{
"id": "GB|RM|A|54186236",
"type": "Address",
"text": "Flat 1, One Canada Square",
"description": "London, E14 5AB"
}
]
}{
"status": "success",
"message": "Address previews retrieved successfully",
"data": [
{
"id": "GB|RM|A|54186236",
"type": "Address",
"text": "10 Downing Street",
"description": "London, SW1A 2AA"
}
]
}