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
| Method | Path | Description |
|---|---|---|
| GET | /phone/validate?number=&country= | Validate & parse one number |
| POST | /phone/validate-batch | Validate up to 100 numbers |
Quick start
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'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();{
"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.
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 ↗