Number Verification API offers a full-featured yet simple RESTful JSON API for national and international phone number validation and information lookup for a total of 232 countries around the world.
Requested numbers are processed in real-time, cross-checked with the latest international numbering plan databases and returned in handy JSON format enriched with useful carrier, geographical location and line type data.
Integrating the Number Verification API into your application will enable you to verify the validity of phone numbers at the point of entry, protecting you from fraud and increasing good leads.
Features
International Numbers: Validate international phone numbers for 232 countries using their unique international dial codes.
National Numbers: Validate national (local) phone numbers by providing an additional 2-digit country code parameter.
Location Data: Retrieve valuable geographical identifiers, including country and location, with each API request.
Carrier Detection: Legitimize customers by retrieving details about the carrier their phone number is registered with.
Line Type Detection: Reduce undelivered messages and ensure right ways of communication by knowing the line type.
Example Request
There is only one required parameter (number) to start validating phone numbers.
curl --request GET 'https://api.apilayer.com/number_verification/validate?number=14158586273' \
--header 'apikey: YOUR API KEY'
Example Response
Validation data is returned in universal and lightweight JSON format. Find below a standard API result set:
{
"valid": true,
"number": "14158586273",
"local_format": "4158586273",
"international_format": "+14158586273",
"country_prefix": "+1",
"country_code": "US",
"country_name": "United States of America",
"location": "Novato",
"carrier": "AT&T Mobility LLC",
"line_type": "mobile"
}