v1
latestSwagger 2.02026-07-132830204.5 KBData Tools
Phone Validate
Parse, validate and get location information about a phone number
get/phone-validate
Query parameters
numberstring required
A phone number. This can be in international format (E.164) or local format. If passing local format you must also set either the 'country-code' OR 'ip' options as well
country-codestring
ISO 2-letter country code, assume numbers are based in this country. If not set numbers are assumed to be in international format (with or without the leading + sign)
ipstring
Pass in a users IP address and we will assume numbers are based in the country of the IP address
Response
OK
Example response
{
"country": "New Zealand",
"country-code": "NZ",
"country-code3": "NZL",
"currency-code": "NZD",
"international-calling-code": "64",
"international-number": "+6495552000",
"is-mobile": false,
"local-number": "09 555 2000",
"location": "Auckland",
"prefix-network": "",
"type": "fixed-line",
"valid": true
}