Phone Validate
GET {{baseUrl}}/phone-validate?number=<string>&country-code=<string>&ip=<string>
Parse, validate and get location information about a phone number
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
number | string | (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-code | string | 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) | |
ip | string | Pass in a users IP address and we will assume numbers are based in the country of the IP address |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"valid":false,"international-calling-code":"et aute","country-code":"non quis cillum in","location":"sed aliquip do","is-mobile":false,"type":"fugi","international-number":"sed non in","local-number":"deserunt","country":"ut in tempor","country-code3":"qui non","currency-code":"sint deserunt consectetur veniam Excepteur","prefix-network":"sunt dolore"}