Skip to main content

Address Verification API

The Address Verification API takes an address (potentially containing spelling mistakes and/or other errors) and attempts to match it against a valid address record in the Addressfinder database. This API can verify your addresses against either Australia Post's PAF, Geoscape's GNAF or both.

Response Key

GNAF

Returned (if present) when searching the gnaf database.

PAF

Returned (if present) when searching the paf database.

GNAF-PAF

Returned (if present) when searching the combined gnaf,paf datasets.

Endpoint

Australia

https://api.addressfinder.io/api/au/address/v2/verification

Parameters

ParameterDescriptionTest Value
key

Your unique licence key (find on Portal credentials)


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 required format of the response.


Default value: json
Type: string
q

The address to be verified.


Type: string
gnaf

Returns physical addresses from the GNAF database. One or both of GNAF or PAF databases need to be selected.

  • 1 - Queries the GNAF database

Default value: 1
Type: string
paf

Returns postal addresses from the PAF database. One or both of GNAF or PAF databases need to be selected.

  • 1 - queries the AU PAF database

Default value: 1
Type: string
post_box

Box type addresses are included by default (only available from PAF database). Use this attribute to exclude them.

  • 0 - Excludes Box type addresses from the verification results.

Type: string
gps

Returns gps coordinates from the datasource specified (when available).

  • 1 - Returns latitude and longitude.

Type: string
extended

Returns lga_name, lga_type_code, gnaf_id and legal_parcel_id from the GNAF database.

  • 1 - Returns additional data available from GNAF.

Type: string
census

Returns statistical area identifiers (Meshblock, SA1 & SA2) from the specified census year. These attributes are only available from the GNAF database and are not returned if census is omitted.


Type: integer
state_codes

Filter the results according to the states or territories. Use a comma to separate multiple values:

  • ACT - Only returns addresses from Australian Capital Territory
  • NSW - Only returns addresses from New South Wales
  • NT - Only returns addresses from Northern Territory
  • QLD - Only returns addresses from Queensland
  • SA - Only returns addresses from South Australia
  • TAS - Only returns addresses from Tasmania
  • VIC - Only returns addresses from Victoria
  • WA - Only returns addresses from Western Australia
  • OT - Only returns addresses from Other Territories

Type: string
domain

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


Type: string
ascii

Set to 1 to reformat special characters like macrons and other accents characters with their ASCII equivalent (e.g. Pōneke and Café will be returned as Poneke and Cafe).


Type: string

Responses

200 OK

NameDescriptionExample
matchedIndicates if the address has been matched or not.

Type: boolean
true
successIndicates if the request was successful or not.

Type: boolean
true
addressdescription text

Type: object
-
    idThe unique address identifier. This ID will change following a data refresh.

gnaf paf gnaf-paf
Type: string
73e8268c-bd5c-57a0-c20c-bcce334fe361
    full_addressFull address string.

gnaf paf gnaf-paf
Type: string
274 Harbour Drive, COFFS HARBOUR NSW 2450
    address_line_1First line of the non-locality/state/postcode portion of the address.

gnaf paf gnaf-paf
Type: string
274 Harbour Drive
    address_line_2Second line of the non-locality/state/postcode portion of the address. This will be null for addresses without a unit/level/etc number.

gnaf paf gnaf-paf
Type: string
-
    address_line_combinedA combination of the first and second lines of the non-locality/state/postcode portion of the address.

gnaf paf gnaf-paf
Type: string
274 Harbour Drive
    locality_nameThe locality/suburb of this address.

gnaf paf gnaf-paf
Type: string
COFFS HARBOUR
    state_territoryThe Australian state or territory where the address is located.

gnaf paf gnaf-paf
Type: string
NSW
    postcodeBox type addresses are included by default (only available from PAF database). Use this attribute to exclude them.

gnaf paf gnaf-paf
Type: string
2450
    latitudeLatitude coordinate (in WGS84 format).

gnaf paf gnaf-paf
Type: string
-30.304978
    longitudeLongitude coordinate (in WGS84 format).

gnaf paf gnaf-paf
Type: string
153.126321
    box_identifierIdentifies a specific box. Can be an alpha, number or a combination.

paf
Type: string
-
    box_typeDescribes the type of box.

paf
Type: string
-
    street_number_1The number of the building on the street.

gnaf paf gnaf-paf
Type: string
274
    street_number_2Holds the upper bound when this is a ranged address. For single number addresses this field is null

gnaf paf gnaf-paf
Type: string
-
    unit_identifierIdentifies a specific sub-dwelling. Can be an alpha, number or a combination.

gnaf paf gnaf-paf
Type: string
-
    unit_typeDescribes the category of a sub-dwelling.

gnaf paf gnaf-paf
Type: string
-
    level_numberIdentifies a specific level within a multi-level building. Can be an alpha, number or a combination.

gnaf paf gnaf-paf
Type: string
-
    level_typeDescribes the level type within a multi-level building.

gnaf paf gnaf-paf
Type: string
-
    lot_identifierIdentifies a specific lot on a site. Can be an alpha, number or a combination.

gnaf paf gnaf-paf
Type: string
CP
    site_nameHolds the address element that identifies the name of a site or building.

gnaf paf gnaf-paf
Type: string
-
    street_nameHolds the name of the street.

gnaf paf gnaf-paf
Type: string
Harbour
    street_typeThe type of street.

gnaf paf gnaf-paf
Type: string
Drive
    street_suffixThe suffix of the street. Typically contains a compass direction.

gnaf paf gnaf-paf
Type: string
-
    streetHolds the full name of the street.

gnaf paf gnaf-paf
Type: string
Harbour Drive
    meshblockThe meshblock identifier in which the address is located.

gnaf
Type: string
-
    sa1_idThe statistical area (SA1) identifier in which the address is located.

gnaf
Type: string
-
    sa2_idThe statistical area (SA2) identifier in which the address is located.

gnaf
Type: string
-
    lga_nameThe name of the Local Government Area in which the address is located.

gnaf
Type: string
Harbour
    lga_type_codeThe code relating to the type (or status) of the Local Government Area.

gnaf
Type: string
Drive
    gnaf_idThe unique persistent identifier of the G-NAF address.

gnaf
Type: string
-
    legal_parcel_idGovernment legal property description.

gnaf
Type: string
-

400 Bad request

NameDescriptionExample
completionsAn empty array will be returned due to the error

Type: array
-
error_codeA unique numerical value identifying the error that occured

Type: string
1004
messageAn informative message describing the error that occured

Type: string
Secret not provided
successIndicates that the result was a failure

Type: boolean
false

See API Error Reference for details.