Phone Number Format Validation
This is a free endpoint and will let you know if the phone number matches the format of the country you pass through in the countryCode parameter
Endpoint
[POST] https://usenotifier.com/api/validate
Example Request
$response = Http::withToken('YOUR_API_KEY')
->post('https://usenotifier.com/api/validate', [
"phoneNumber" => "07700900389",
"countryCode" => "GB"
]);
phoneNumber: required
The phone number to validate. Don't worry about formatting, you can leave that to us!
countryCode: required
The 2 character ISO 3166 country code you want to validate the phone number against. Get a list of valid codes.
Example Response
{
"valid_format": true,
"country" : "GB",
"type" : "mobile"
}
The type of phone will be given, with the options being:
FIXED_LINE
MOBILE
FIXED_LINE_OR_MOBILE
TOLL_FREE
PREMIUM_RATE
SHARED_COST
VOIP
PERSONAL_NUMBER
PAGER
UAN
UNKNOWN
EMERGENCY
VOICEMAIL
SHORT_CODE
STANDARD_RATE
Last updated
Was this helpful?