Phone

Created by Dariusz Szczendzina, Modified on Wed, 12 Jul, 2023 at 10:44 AM by Dariusz Szczendzina

This group of functions allow you to perform various actions to improve the quality of Phone Number data.


Authenticate

Check if a telephone number will dial using a third-party provider. A call will not be made to the inputted telephone numbers. The input is a single telephone number along with its ISO 2 code. E.g.

Phone Number (Input)Country Identifier - ISO 2 Code (Input)AuthenticNumber TypeCountry Identifier - ISO 3 CodeDialling CodeNational Format
+44(0)23 9298 8303GBTRUELandlineGBR44023 9298 8303
+1 312 253 7873USTRUEVOIPUSA1(312) 253-7873

Authenticate Phone not only allows you to determine the authenticity of a phone number, but also allows you to ascertain certain attributes of a Phone Number. E.g.

Number Type: What type of number is it? E.g. Landline, Mobile Phone, VOIP etc.

Country Identifier - ISO 3 Code: What is the 3-letter ISO 3 Code associated with the phone number?

Dialling Code: What is the dialling code associated with the phone number?

National Format: What is the correct national format of the phone number?


Derive Country

Derive the country name from a phone number.

TelephoneDerived Country
0033123456789France
+44123456789United Kingdom
0055123456789Brazil
+66123456789Thailand
0077123456789Kazakhstan

This function also allows you to check congruency to a country and retrieve ISO 2, ISO 3 and dialling codes.


Format

Telephone E164

Input one or more Telephone numbers along with a country identifier and return them in the E164 standard (if possible).

For example, you can choose to format telephone numbers in the E164 standard to assign a country code to a telephone number as well as remove any unnecessary characters. E.g.

TelephoneCountry Identifier - ISO 2Formatted Telephone
1234567891GB+441234567891
12.23.34.45.56GB+441223344556
111-222-333-4GB+441112223334

Telephone International

Input one or more International Telephone Numbers and return them in the correct format (if possible).

For example, you can choose to format telephone numbers in the International standard to assign a country code to a telephone number, remove any unnecessary characters and add spacing. E.g.

TelephoneCountry Identifier - ISO 2Formatted Telephone
1234567891GB+44 1234 567891
12.23.34.45.56GB+44 1223 344556
111-222-333-4GB+44 111 222 3334

Telephone National

Input one or more National Telephone Numbers and return them in the correct format (if possible).

For example, you can choose to format telephone numbers in the National standard to assign the correct prefix to a telephone number, remove any unnecessary characters and add spacing. E.g.

TelephoneCountry Identifier - ISO 2Formatted Telephone
1234567891GB01234 567891
12.23.34.45.56GB01223 344556
111-222-333-4GB0111 222 3334

Telephone RFC 3966

Input one or more Telephone Numbers and return them in the RFC 3966 standard format (if possible).

For example, remove unnecessary and incorrect characters and return them in the desired format. E.g.

TelephoneCountry Identifier - ISO 2Formatted Telephone
1234567891GBtel:+44-1234-567891
12.23.34.45.56GBtel:+44-1223-344556
111-222-333-4GBtel:+44-111-222-3334

Parse

Parse the country code, extension, national number and number type from a phone number via inputting a phone number and a country identifier. E.g.

Input

Phone NumberCountry Identifier - ISO 2
+447511111111GB
02392111111GB
0344 800 2400GB

Output

Country CodeExtensionNational NumberNumber Type
447511111111MOBILE
442392111111FIXED_LINE
443448002400UAN

Validate

Input one or more Telephone Numbers alongside their respective country identifiers and identify whether or not they are valid by scoring them TRUE or FALSE. e.g.

TelephoneCountry Identifier - ISO 2Output
07511111111GBTRUE
0751111111GBFALSE
075111111111GBFALSE

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article