Skip to main content

Address Metadata API

The address metadata API is used to collect the metadata associated with an address selected from the Address Autocomplete API. Replace {country} in the path with the ISO 3166 alpha-2 code of the country where the address is located. Supported countries include: au, be, ca, cz, dk, fr, de, ie, nz, nl, pt, sg, es, se, gb, us.

Endpoint

international

https://api.addressfinder.io/api/{country}/address/v2/metadata

Parameters

ParameterDescriptionTest Value
country

ISO 3166 alpha-2 country code.


Type: string required
key

Your unique Addressfinder license key.


Type: string required
secret

Your unique secret key from Portal Credentials. You can also pass your secret key into the Authorization header of the request. Only required for server-to-server calls.


Type: string
format

The format of the response.


Default value: json
Type: string required
id

Unique address identifier obtained from the Address Autocomplete API.


Type: string required
gps

Include GPS coordinates in the results if available (0 or 1).


Type: integer
domain

Used to identify in the Addressfinder Portal which of your services is calling the API for activity monitoring purposes. The domain needs to be registered in the Portal.


Type: string

Responses

200 Metadata for the selected address

NameDescriptionExample
idThe unique address identifier.

Type: string
_wEzMQD-UiYLas2j_kKyVwD...
address

Type: object
-
    full_addressFull address in the country-specific format.

Type: string
123 Edward St, Silver Berry, Toronto ON M5G
    address_line_1First address line.

Type: string
123 Edward St
    address_line_2Second address line.

Type: string
Silver Berry
    address_line_combinedCombined address lines 1 and 2.

Type: string
123 Edward St, Silver Berry
    cityCity, town or locality name.

Type: string
Toronto
    city_lineCity formatted for postal services.

Type: string
Toronto ON M5G
    stateCountry-specific state or region.

Type: string
ON
    postcodeCountry-specific postcode or zipcode.

Type: string
M5G
    country_nameCountry name.

Type: string
Canada
    country_codeISO 3166 alpha-2 country code.

Type: string
CA
metadata

Type: object
-
    streetFull street name.

Type: string
Edward St
    street_numberStreet number.

Type: string
123
position

Type: object
-
    latitude

Type: number
48.5827
    longitude

Type: number
2.96747
successReturns true if the service ran successfully.

Type: boolean
true

400 Invalid input or missing parameters.

NameDescriptionExample
errorDescription of the error

Type: string
Missing required parameter 'id'

See API Error Reference for details.