Home / APIs / Phone Number Validator

Phone Number Validator API

Validate & parse phone numbers — country, line type, E.164, and national/international formats.

Get it on RapidAPI ↗

Phone Number Validator parses and validates phone numbers from any country over a simple JSON API, powered by Google's libphonenumber. Tell whether a number is valid, which country it belongs to, and what line type it is — mobile, fixed line, VoIP, toll-free, and more.

Every result includes the E.164 form plus clean national and international formats. Pass an international number (with +), or a national number with a 2-letter country code. Validate one at a time or up to 100 in a batch — ideal for signup forms, SMS/2FA, CRM cleanup, and lead validation.

Endpoints

MethodPathDescription
GET/phone/validate?number=&country=Validate & parse one number
POST/phone/validate-batchValidate up to 100 numbers

Quick start

cURL (via RapidAPI)
curl --url 'https://phone-number-validator15.p.rapidapi.com/validate?number=%2B14155552671' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: phone-number-validator15.p.rapidapi.com'
JavaScript (fetch)
const res = await fetch('https://phone-number-validator15.p.rapidapi.com/validate?number=%2B14155552671', {
  headers: {
    'X-RapidAPI-Key': 'YOUR_KEY',
    'X-RapidAPI-Host': 'phone-number-validator15.p.rapidapi.com'
  }
});
const data = await res.json();
Example response
{
  "input": "+14155552671",
  "valid": true,
  "country": "US",
  "countryCallingCode": "+1",
  "type": "FIXED_LINE_OR_MOBILE",
  "e164": "+14155552671",
  "formatInternational": "+1 415 555 2671",
  "formatNational": "(415) 555-2671"
}

Pricing

Subscribe on RapidAPI. Start free; upgrade as you scale.

Basic
Free
1,000 requests / mo
Pro
$5 / mo
100,000 requests / mo
Ultra
$20 / mo
1,000,000 requests / mo
Mega
$50 / mo
2,000,000 requests / mo

Frequently asked questions

What does it tell me about a number?

Whether it's valid and possible, its country and calling code, the line type (mobile/fixed/VoIP/etc.), and E.164 plus national and international formats.

Do I need to include the country code?

Either include the + international prefix, or pass a national number with the 2-letter country parameter (e.g. country=US).

Can I validate many numbers at once?

Yes — POST up to 100 numbers to /phone/validate-batch.

Ready to build with Phone Number Validator?

Grab your key on RapidAPI and start on the free tier.

Get it on RapidAPI ↗