Validate a phone number
validate_phoneValidate a phone number to verify its status, line type, carrier, location, and national/international formats for accurate contact data.
Instructions
Validate a phone number and return its status, line type, carrier codes, location and national/international formats.
Result fields:
status (string): VALID_CONFIRMED, VALID_UNCONFIRMED, INVALID, DELAYED, RATE_LIMIT_EXCEEDED, API_KEY_INVALID_OR_DEPLETED
linetype (string): FIXED_LINE, MOBILE, VOIP, TOLL_FREE, PREMIUM_RATE, SHARED_COST, PERSONAL_NUMBER, PAGER, UAN, VOICEMAIL
location (string): geographical location (city, county, state)
countrycode (string): two letter ISO 3166-1 country code
formatnational (string): phone number in national format
formatinternational (string): phone number in international format
mcc (string): mobile country code to identify a mobile network operator (carrier) using the GSM (including GSM-R), UMTS, and LTE networks
mnc (string): mobile network code to identify a mobile network operator (carrier) using the GSM (including GSM-R), UMTS, and LTE networks
ratelimit_remain (int): number of API requests remaining before the API rate limit is reached (the default API rate limit allows 100 API requests in 300s)
ratelimit_seconds (int): number of seconds remaining in the current rate limit interval
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Two letter ISO 3166-1 country code. Required for numbers in national format; leave empty if the number starts with '+' | |
| mode | No | 'extensive' (full validation) or 'express' (static checks only, faster) | extensive |
| phone | Yes | Phone number to validate, in national format or international format with a leading '+' | |
| locale | No | IETF language tag for geocoding results | en-US |
| timeout | No | Timeout in seconds (min 5, max 300) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||