Validation
Phone Validation API
Validate phone numbers and normalize them to E.164 with region and line type.
Request Headers
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | phone-validate.p.rapidapi.com |
Endpoints
GET
/v1/validate/phone Validate a phone number and normalize it to E.164
Parameters
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
country | string | optional | — | matches [A-Za-z]{2} |
number | string | required | — | matches \S |
Code Examples
curl --request GET \
--url 'https://phone-validate.p.rapidapi.com/v1/validate/phone?number=example' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: phone-validate.p.rapidapi.com' const url = "https://phone-validate.p.rapidapi.com/v1/validate/phone?number=example";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "phone-validate.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://phone-validate.p.rapidapi.com/v1/validate/phone"
querystring = {"number": "example"}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "phone-validate.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) GET
/v1/validate/phone/countries List all country codes supported by phone number validation, sorted alphabetically.
Code Examples
curl --request GET \
--url 'https://phone-validate.p.rapidapi.com/v1/validate/phone/countries' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: phone-validate.p.rapidapi.com' const url = "https://phone-validate.p.rapidapi.com/v1/validate/phone/countries";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "phone-validate.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://phone-validate.p.rapidapi.com/v1/validate/phone/countries"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "phone-validate.p.rapidapi.com"
}
response = requests.get(url, headers=headers)
print(response.json()) Interactive Example
$ GET /v1/validate/phone?number=07700900123&country=GB
{"valid":true,"e164":"+447700900123","country":"GB","type":"mobile"} Subscribe & License
Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.
Developer Support
Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.
System Performance
Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.
All Systems Operational