Phone Number Validation
/v1/phone_numbersValidates a phone number and returns its country, its national and international formats, and the network it was originally assigned to.
Requires an API Key licensed for phone validation.
Every query decrements your lookup balance, including a number that fails to parse and a number reported as invalid.
Query parameters
api_keystring optionalAPI Key
Your unique identifier that allows access to our APIs.
Begins
ak_. Available from your dashboard.querystringSpecifies the phone number to validate. Phone number must include a country code in an acceptable format. For instance, UK phone numbers should be prefixed with
+44,44or0044.current_carrierstring optionalWhen set to
true, the API retrieves and populates the current network of the phone number.This operation can be slow, depending on the network and local conditions.
Enum- "true"
tagsstring optionalTags
A comma separated list of tags to query over.
Useful if you want to specify the circumstances in which the request was made.
If you specify multiple tags, the response comprises only requests that satisfy all of them. Searching
"foo,bar"queries only requests tagged both"foo"and"bar".
Response
result is an object containing phone validation and carrier information.
resultone ofPhoneNumber
validbooleannational_formatstringPhone number formatted to local standard
international_formatstringPhone number formatted to international standard
iso_countrystringCountry code in 3 letter ISO format
iso_country_2stringCountry code in 2 letter ISO format
countrystringFull country name
current_carrierCarriernetwork_codestringThe Mobile Country Code for the carrier.
namestringThe full name of the carrier that number is associated with.
countrystringCountry that number is associated with. In ISO 3166-1 alpha-2 format.
network_typestringType of network that number is associated with.
original_carrierCarriernetwork_codestringThe Mobile Country Code for the carrier.
namestringThe full name of the carrier that number is associated with.
countrystringCountry that number is associated with. In ISO 3166-1 alpha-2 format.
network_typestringType of network that number is associated with.
InvalidPhoneNumber
validbooleannational_formatstringPhone number formatted to local standard
international_formatstringPhone number formatted to international standard
iso_countrystringCountry code in 3 letter ISO format
iso_country_2stringCountry code in 2 letter ISO format
countrystringFull country name
current_carrierstring optionalRepresentation of current phone carrier information like network code, name, country, network type
original_carrierstring optionalRepresentation of original phone carrier information like network code, name, country, network type
The result sits inside the standard { result, code, message } envelope — see
the API reference for the wrapper format.