Phone Validation API Documentation
Complete reference for the Phone Validation API
Authentication
Authorization: Bearer sk_live_your_key_here
GET POST /v1/phone/validate
Parameters
| Field | Type | Description |
|---|---|---|
phone | string | Phone number (required) |
country | string | ISO 3166-1 alpha-2 country code hint (optional) |
Response Fields
| Field | Description |
|---|---|
is_valid | Whether the number is valid |
e164 | E.164 formatted number |
international | International format |
national | National format |
country | Country code, name, and dial code |
type | mobile, landline, mobile_or_fixed, unknown |
is_mobile | Whether it's a mobile number |
is_landline | Whether it's a landline number |
Example
curl "https://snapapis.com/api/v1/phone/validate?api_key=KEY&phone=%2B966501234567&country=SA"