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":"\u003cboolean\u003e","international-calling-code":"\u003cstring\u003e","country-code":"\u003cstring\u003e","location":"\u003cstring\u003e","is-mobile":"\u003cboolean\u003e","type":"\u003cstring\u003e","international-number":"\u003cstring\u003e","local-number":"\u003cstring\u003e","country":"\u003cstring\u003e","country-code3":"\u003cstring\u003e","currency-code":"\u003cstring\u003e","prefix-network":"\u003cstring\u003e"}