Skip to main content

Validate Phone

Credits: 1 per call
Validates a phone number and returns formatting information, country detection, line type (mobile/landline), and E.164 formatted number.

Request

Both GET and POST methods are supported. For POST, pass the phone number in the request body.
string
required
The phone number to validate. Include country calling code (with +) for best results.

Response

Response fields

string
The original phone number as provided.
boolean
Whether the phone number is valid (country detected and length matches expected format).
string | null
E.164 formatted number (e.g., +97317000000). Recommended format for storage. null if country could not be detected.
string | null
International format with space after calling code (e.g., +973 17000000). null if country could not be detected.
string | null
The national number without the calling code. null if country could not be detected.
string | null
The detected calling code with + prefix (e.g., +973). null if not detected.
string | null
ISO 3166-1 alpha-2 country code (e.g., BH). null if country could not be detected.
string
Line type: mobile, landline, or unknown.
object
Individual validation check results.
string | null
Human-readable explanation when the number is invalid. null when valid.