Addressfinder

The best way to find exact addresses in Australia

  • Skip to Main Navigation
  • Skip to Footer Sitemap
  • Skip to Top
  • About
    • About Us
    • Case Studies
    • FAQ
    • Partners
    • Blog
    • Contact Us
  • Pricing
  • Industries
    • E-commerce
      Collect verified delivery addresses
    • Finance
      Verified address data for KYC and AML
    • Utilities
      Make network connections faster
  • Features
    • Address Autocomplete
      Search verified addresses as you type
    • Bulk Cleansing
      Verify your database of addresses and emails
    • Email Verification
      Collect only valid email addresses
    • Phone Verification
      Verify numbers at the point of collection
    • Geocode Addresses
      Collect addresses and GPS coordinates together
    • Address Metadata
      Get extra data about addresses
    • MORE FEATURES
  • Address Verification
    • Integration Guide
    • Javascript Reference
    • Code Examples
    • API Reference
    • Code Generator
    • International Integration
  • Email Verification
    • Integration Guide
    • Javascript Reference
    • Code Examples
    • API Reference
  • Phone Verification
    • Integration Guide
    • Javascript Reference
    • Code Examples
    • API Reference
  • About
    • About Us
    • Case Studies
    • Frequently Asked Questions
    • Partners
    • Blog
    • Contact Us
  • Pricing
  • Industries
    • E-commerce
      Collect verified delivery addresses
    • Finance
      Verified address data for KYC and AML
    • Utilities
      Make network connections faster
  • Features
    • Address Autocomplete
      Search verified addresses as you type
    • Bulk Cleansing
      Verify your database of addresses and emails
    • Email Verification
      Collect only valid email addresses
    • Phone Verification
      Verify numbers at the point of collection
    • Geocode Addresses
      Collect addresses and GPS coordinates together
    • Address Metadata
      Get extra data about addresses
    • MORE FEATURES
  • Documentation
    • Integrations
      • Magento
      • WooCommerce
      • Hubspot
      • Salesforce
      • Shopify Plus
      See all integrations
    • Address Verification
      • Integration Guide
      • Javascript Reference
      • Code Examples
      • API Reference
      • Code Generator
      • International Integration
    • Email Verification
      • Integration Guide
      • Javascript Reference
      • Code Examples
      • API Reference
    • Phone Verification
      • Integration Guide
      • Javascript Reference
      • Code Examples
      • API Reference
  • Login

Phone Verification Javascript Reference

The phone verification API is currently in a beta state. It can be used in production but may be adjusted and improved. Please let us know if you wish to use the service so that we can keep you up-to-date on any changes being made.

AddressfinderPhone.Phone.Widget class

This widget adds phone verification to a simple form field. It will check that the phone number is valid and meets the configured criteria. If unverified, a cross icon and error message (optional) are displayed. A verified phone number is identified with a simple tick icon.

You can choose from block, warn or allow behaviour for each of the three types of phone addresses. These include:

  • nonMobile phone numbers, such as the landline number 09 123 4567
  • countryNotAllowed. When a phone number might be valid but comes from a country you wish to exclude.
  • Unverified phone number.

More information about how to configure these options and changing the visual styles can be found on the advanced options page. The code examples page demonstrates many of these configuration options.

Constructor

Parameter Type Description Example
phoneSelector String CSS selector for one or more input elements. input.phone_number
licenceKey String Your unique licence key (find on Portal credentials) VYT6FHV6TPQEWNBG4K7Q
defaultCountryCode String Set the default country code AU
options Object Configuration options, see the Options section below. {"rules": {"unverified": "block", "message": "Phone number not verified."}}

Methods

Method Parameters Return Value Description
disable() Disables the Addressfinder phone widget. The verification function will stop working until the widget is re-enabled.
enable() Re-enables a disabled Addressfinder phone widget.
reactivate() Executes the verification function on the input value. The Addressfinder phone widget must be enabled.
setDefaultCountryCode() country_code:String Set the default country to verify phone numbers against after the Addressfinder phone widget has been initialised.

Options

Key Type Description Default
rules.unverified.rule String Rule for unverified phone addresses: block, warn or allow block
rules.unverified.message String Message to display to the user when an unverified phone number is detected. Phone number not verified.
rules.countryNotAllowed.rule String Rule for phone numbers coming from a country you wish to exclude: block, warn or allow. block
rules.countryNotAllowed.message String Message to display to the user when a phone number from a country you wish to exclude is detected. Allowed countries: list of allowed country names.(Set through allowedCountryCodes
rules.nonMobile.rule String Rule for non mobile phone number: block, warn or allow. allow
rules.nonMobile.message String Message to display to the user when a non mobile phone number is detected. -
countrySelect String CSS selector for the country selector. -
container DOM element Element into which the loading indicators and error messages are injected. -
allowedCountryCodes String List of ALPHA-2 country codes you accept a phone number to come from. Separated by a comma, eg AU,NZ -
timeout Integer How long the API should run before returning an indeterminate connection status. 10
countryMappings object Ability to map HTML select values to a ALPHA-2 country code. View a code example. Eg: countryMappings: { "AUS" : "AU" }

Events

Event Callback Arguments Description
result:verified metadata:Object Fired when the widget receives a response from the API that aligns with the permissions (allow, warn, block) defined in the widget's rules. e.g. Phone number is verified.
result:not_verified metadata:Object Fired when the widget receives a response from the API that conflicts with the permissions (allow, warn, block) defined in the widget's rules. e.g. Country not allowed.

Metadata

Property Type Description Example
is_verified Boolean Indicates if the phone number is verified. true
line_type String The type of phone line the number is connected to. mobile
line_status String The connection status of the supplied number. connected
line_status_reason String Insights of the line_status result. timeout
country_code String The two character ISO code of the country of the phone number. AU
calling_code String The country calling code of the phone number. 61
raw_national String The national phone number without any whitespace or punctuation. 0285038000
formatted_national String The formatted national phone number including country-specific whitespace and punctuation. (02) 8503 8000
raw_international String The international phone number in E.164 format. +61285038000
formatted_international String The formatted international phone number including country-specific whitespace. +61 2 8503 8000
not_verified_code String INVALID_FORMAT
not_verified_reason String A code indicating why the number did not verify. Phone number format is incorrect
success Boolean If the number did not verify, this will contain a short description of the failure reason. true
  • Address Verification
    • Integration guide
    • Code examples
    • Widget code generator
    • Best practices
    • Fixing browser quirks
    • Advanced usage
    • Javascript widget reference (NZ)
    • Javascript widget reference (AU)
    • Javascript widget reference (Int'l)
    • Integration guide (Int'l)
  • Email Verification
    • Integration guide
    • Javascript reference
    • Code examples
    • Advanced usage
    • API reference
  • Phone Verification
    • Integration guide
    • Javascript reference
    • Code examples
    • Advanced usage
    • API reference
  • API Documentation (AU)
    • Address Autocomplete
    • Address Metadata
    • Address Verification
    • Location Autocomplete
    • Location Metadata
    • API Errors
  • API Documentation (NZ)
    • Address Autocomplete
    • Address Metadata
    • Address Verification
    • Address Reverse Geocode
    • Location Autocomplete
    • Location Metadata
    • Points of Interest Autocomplete
    • Points of Interest Metadata
    • API Errors
  • API Documentation (INT'L)
    • Address Autocomplete
    • Address Metadata
  • Integrations
    • Magento
    • WooCommerce
    • BigCommerce
    • Salesforce
    • Shopify Plus
    • HubSpot
    • StoreConnect
    • Spiffy Stores
    • Ruby
    • iOS
    • Drupal
    • Microsoft Dynamics 365
    • Vue
    • Gravity Forms
    • React
Addressfinder logo
Addressfinder provides speedy, accurate and dependable address autocompletion at a fair price. Easily integrate our address finder software with your site to start enjoying our address verification, address autocomplete and other address services today.

Sitemap

  • About
  • About Us
  • Contact
  • Blog
  • FAQ
  • Pricing
  • Case Studies
  • Status Page
  • Privacy Policy (Service)
  • Privacy Statement (Website)
  • Terms & Conditions
  • Features
  • Address Autocomplete
  • Address Metadata
  • Address Verification
  • Bulk Address Cleansing
  • Address Geocoding
  • Email Address Verification
  • Phone Verification
  • International Autocomplete
  • Street, Suburb & Postcode Search
  • Postcode Finder
  • Address Verification
  • Integrations
  • WooCommerce
  • BigCommerce
  • Shopify Plus
  • Magento
  • Salesforce
  • Spiffy Stores
  • iOS
  • Ruby
  • HubSpot
  • StoreConnect
  • Drupal
  • Microsoft Dynamics 365
  • Vue
  • Gravity Forms
  • React
  • API Documentation
  • Address Autocomplete
  • Address Metadata
  • Address Verification
  • Email Verification
  • Phone Verification
  • API Errors
  • NZ API specs
  • International APIs
  • Widget Documentation
  • Address (AU) Integration Guide
  • Address (AU) Javascript Reference
  • Address (INT'L) Integration Guide
  • Address (INT'L) Javascript Reference
  • Email Integration Guide
  • Email Javascript Reference
  • Phone Integration Guide
  • Phone Javascript Reference
Addressfinder is also available in New Zealand
Terms and Conditions
Copyright © 2025 Addressfinder, New Zealand