Phone Number Validation & Formatting API
string · requiredboolean · requiredboolean · requiredstringstringstringstringstringstring | nullstringstring | nullbooleanboolean
ValidResult
Parsed result for a number that could be interpreted.
inputThe original number string as received.
Example: (415) 555-2671
validWhether the number is fully valid for its detected region.
Example: true
possibleWhether the number has a plausible length and shape for its region.
Example: true
e164Canonical international E.164 form.
Example: +14155552671
nationalNumber formatted the way locals write it.
Example: (415) 555-2671
internationalInternationally formatted display form.
Example: +1 415 555 2671
rfc3966RFC3966 tel: URI.
Example: tel:+14155552671
uritel: URI for click-to-call links.
Example: tel:+14155552671
countryDetected ISO 3166-1 alpha-2 country code, or null.
Example: US
country_calling_codeInternational dialing prefix without the plus sign.
Example: 1
typeLine type (MOBILE, FIXED_LINE, FIXED_LINE_OR_MOBILE, etc.) or null.
Example: FIXED_LINE_OR_MOBILE
is_mobileConvenience flag derived from the line type.
Example: false
is_fixed_lineConvenience flag derived from the line type.
Example: false