Phone Number Validation API
Introduction
Similar to an email address, a phone number is an essential customer identifier. It is regularly used by businesses for sending important account updates, announcements, and security codes. Compared to email addresses, phone numbers provide a strong authentication method for account logins and other occasions making it an important data input that needs to be validated during various stages of the customer life-cycle.
One of the key challenges with phone numbers is getting them properly validated and formatted for storage on a database. People generally tend to format a phone number in a way which is popular within their region. As a result, there are a variety of ways in which businesses build their online form. This has resulted in non-standard practises and confusion between customers and businesses.
The Phone Number Validation API solves these specific problems related to phone number validation and formatting. Using this API, you can validate and convert phone numbers (any format) to the E164 standard format, international format or national format. In addition, the API also identifies the type of phone line, ie fixed-line, mobile, VoIP and so on.
You can learn more about how to store phone numbers in a database here.
https://api.bigdatacloud.net/data/phone-number-validate
CURL Example
Visit our SDK page to access API clients in specific languages like Javascript, Python + PHP.
Response
Response Format
Field |
Data type |
Description |
---|---|---|
isValid |
boolean |
Indicates if the number is valid |
e164Format |
string |
The number formatted in E164 standard format |
internationalFormat |
string |
The number formatted in International dialling format |
nationalFormat |
string |
The number formatted in local dial format |
location |
string |
Estimated location localised to the language as defined by ‘localityLanguage’ request parameter |
lineType |
string |
Line type detected. Possible values:
|
country |
<Country> object |
Detected Country info |
API Endpoint
Endpoint: | /data/phone-number-validate |
---|---|
Full URL: | https://api.bigdatacloud.net/data/phone-number-validate |