Documentation

WattleAddr API

Add Australian address autocomplete, verification and geocoding to any application. Base URL https://api.wattleaddr.com.au/v1. JSON only. Australian addresses only.

Quickstart

Grab a publishable key (browser) and a secret key (server) from the console, then wire up the drop-in widget:

<!-- 1. include the widget -->
<script src="https://api.wattleaddr.com.au/v1/widget.js"></script>

// 2. attach it to an input (publishable key, domain-locked)
const wa = new WattleAddr('waddr_pk_live_…');
wa.attach('#address', { onSelect: (a) => console.log(a.formatted) });

Authentication

Two key types, both created in the console. Never expose a secret key in the browser.

KeyPrefixWhereSecured by
Secretwaddr_sk_live_…Server-sideAuthorization: Bearer + optional IP allowlist
Publishablewaddr_pk_live_…BrowserAllowed referrer domains + rate limits

Endpoints

MethodPathPurpose
GET/v1/addresses/autocompleteType-ahead suggestions for a partial query
GET/v1/addresses/{id}Full structured record for a chosen suggestion (billable)
POST/v1/addresses/verifyMatch free-text to the best canonical address + confidence
GET/v1/statusService health & current G-NAF release

Example — autocomplete

curl "https://api.wattleaddr.com.au/v1/addresses/autocomplete?q=1+martin+pl&session=abc" \
  -H "Authorization: Bearer waddr_sk_live_…"
{
  "suggestions": [
    { "id": "GANSW706124693", "formatted": "1 Martin Place, Sydney NSW 2000" }
  ]
}

Rate limits & billing

Billing is session-based: send a session token with each autocomplete keystroke and the final retrieve — the whole session counts as one billable lookup. Responses include X-WattleAddr-Quota-Remaining; exceeding your plan returns 429 with a Retry-After header.

Attribution

WattleAddr is built on the open Geocoded National Address File. The G-NAF licence requires attribution — display this wherever you surface address data:

Incorporates or developed using G-NAF © Geoscape Australia,
licensed under the Open G-NAF End User Licence Agreement.

Full reference, SDKs and an interactive playground are on the way. Questions? hello@wattleaddr.com.au