ScreenlyyIDDocs
Docs › API reference › Phone verification

Phone validate

Parses, validates and gets location information about a phone number. Use it to validate local and international numbers in any country, find the location of a number, and reformat it into local and international dialling formats.

POSThttps://api.screenlyyid.com/api/v1/phone-validate

Headers#

NameTypeRequiredDescription
x-api-keystringYesYour ScreenlyyID API key
x-correlation-idstring (uuid)NoCorrelation ID for this customer check

Request body#

FieldTypeRequiredDescription
PhoneNumberstringNo
CountryCodestringNo
IpAdressstringNo

Responses#

StatusDescription
200Successful response

Response body (200)#

FieldTypeRequiredDescription
ValidbooleanYes
CountrystringNo
CountryCodestringNo
PrefixNetworkstringNo
InternationalNumberstringNo
LocationstringNo
LocalNumberstringNo
TypestringNo
CurrencyCodestringNo
InternationalCallingCodestringNo
IsMobilebooleanYes
CountryCode3stringNo

Code samples#

curl --request POST \
  --url 'https://api.screenlyyid.com/api/v1/phone-validate' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'x-correlation-id: YOUR_CORRELATION_ID' \
  --header 'Content-Type: application/json' \
  --data '{
  "PhoneNumber": "+61412345678",
  "CountryCode": "AU",
  "IpAdress": "<IpAdress>"
}'