DEV Community

Alexey D
Alexey D

Posted on

Phone Number Validation API — Carrier, Country & Line Type in One Call

Phone validation is one of those things every app needs but nobody wants to build.

Regex catches syntax. It doesn't catch whether +79001234567 is Tele2 in Russia, or whether a number is landline vs mobile vs VoIP.

Phone Validator Pro solves this with a single API call.

What you get

  • ✅ Valid/invalid flag
  • 🌍 Country + country code
  • 📡 Carrier name
  • 📱 Line type: MOBILE / LANDLINE / VOIP
  • 🔢 E164, national, international format
  • 🕐 Timezones for the number

Works for 200+ countries. Response under 100ms.

Quick start

Python

import requests

url = "https://phone-validator-pro1.p.rapidapi.com/validate"
headers = {
    "X-RapidAPI-Key": "YOUR_KEY",
    "Content-Type": "application/json"
}
payload = {"phone": "+79001234567", "country_code": "RU"}

r = requests.post(url, json=payload, headers=headers)
print(r.json())
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "is_valid": true,
  "country": "Russia",
  "carrier": "Tele2",
  "line_type": "MOBILE",
  "e164_format": "+79001234567",
  "international_format": "+7 900 123-45-67"
}
Enter fullscreen mode Exit fullscreen mode

JavaScript

const res = await fetch("https://phone-validator-pro1.p.rapidapi.com/validate", {
  method: "POST",
  headers: {
    "X-RapidAPI-Key": "YOUR_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ phone: "+447911123456" })
});
const data = await res.json();
console.log(data);
Enter fullscreen mode Exit fullscreen mode

cURL

curl -X POST https://phone-validator-pro1.p.rapidapi.com/validate \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+14155552671"}'
Enter fullscreen mode Exit fullscreen mode

Batch validation

Need to validate a list? Use /batch — up to 50 numbers per request:

payload = {
  "phones": [
    {"phone": "+79001234567"},
    {"phone": "+447911123456"},
    {"phone": "+14155552671"}
  ]
}
Enter fullscreen mode Exit fullscreen mode

Use cases

  • User registration — reject invalid numbers at signup
  • SMS campaigns — filter out landlines before sending
  • Fraud detection — flag VoIP numbers in payment flows
  • CRM enrichment — add carrier and country to contacts
  • Delivery apps — validate customer phone before dispatch

Pricing

Plan Price Rate limit
BASIC Free 30 req/hr
PRO $9.99/mo 500 req/hr
ULTRA $24.99/mo 5000 req/hr

Try it

👉 Phone Validator Pro on RapidAPI

Free tier, no credit card required.


Built this after spending 3 hours debugging why an SMS campaign had a 40% bounce rate. Half the numbers were landlines. One API call would have caught them all.

Top comments (0)