YepAPI
Email API

Phone Validator

Validate and normalize any phone number — E.164, international, and local formats plus line type and timezone.

POST/v1/email/phone-validator
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/email/phone-validator', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ phone: '+14155550132' }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/email/phone-validator \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+14155550132"}'

Request Body

ParameterTypeRequiredDescriptionDefault
phonestringYesPhone number to validate, in any common format
country_codestringNoISO country code hint for numbers without an international prefix (e.g., US)

Response

{
  "data": {
    "carrier": null,
    "countryCode": "US",
    "e164Format": "+14155550132",
    "intlFormat": "+1 415-555-0132",
    "lineType": "FIXED_LINE_OR_MOBILE",
    "localFormat": "(415) 555-0132",
    "timezones": [
      "America/Los_Angeles"
    ],
    "valid": true
  },
  "ok": true
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.validbooleanWhether the phone number is valid
data.e164FormatstringNumber normalized to E.164 format (e.g., +14155550132)
data.intlFormatstringNumber in international display format
data.localFormatstringNumber in national/local display format
data.countryCodestringISO country code of the number
data.lineTypestringLine type (e.g., FIXED_LINE_OR_MOBILE, MOBILE)
data.carrierstring | nullCarrier name, when known
data.timezonesstring[]IANA timezones associated with the number
Under the Hood

Pass country_code when validating numbers stored without a + prefix — otherwise national numbers can't be resolved to a country.

On this page