Why Choose Our API?
- Fast, accurate global phone validation Validate any phone number from any country in milliseconds
- Works for all countries and formats Supports international formats, detects country codes automatically
- Easy API integration for developers Simple REST API with clear documentation and code examples
- Pay only for what you use Flexible pricing plans that scale with your needs
- Secure, reliable backend Powered by Firebase for enterprise-grade reliability and security
How It Works
Get your API key
Start with our free plan (7 requests) or choose a paid plan. Get your API key instantly via email
Integrate in minutes
Add our REST API to your application with simple code. Works with any language or framework
Validate instantly
Start validating phone numbers in real-time with accurate results and country detection
Try It Now
Test our phone validation API right here. No API key required. Rate limited to 5 requests per minute per IP.
Enter a phone number in any format (e.g., +14155552671, 4155552671)
Choose Your Plan
Start free with 7 requests, no credit card required. Upgrade anytime for more volume. Get your API key instantly via email.
Free
- 7 requests
- Phone validation
- Country detection
- Number formatting
- Perfect for testing
Starter
- 250 requests/month
- Phone validation
- Country detection
- Number formatting
- Email support
Pro
- 2,500 requests/month
- Phone validation
- Country detection
- Number formatting
- Priority support
- Advanced features
Custom
- 5,000+ requests/month
- All Pro features
- Custom integration
- Dedicated support
- Volume discounts
Integration Examples
Quick code snippets to get you started with our API.
Node.js (using axios)
const axios = require('axios');
async function validatePhone(phoneNumber) {
try {
const response = await axios.get(
'https://phone-validation-api.vercel.app/api/validate',
{
params: {
phone: phoneNumber,
country: 'US'
},
headers: {
'x-api-key': 'YOUR_API_KEY'
}
}
);
return response.data;
// {
// valid: true,
// number: "+12345678901",
// country: "US",
// type: "mobile"
// }
} catch (error) {
throw new Error(error.response?.data?.error || 'Validation failed');
}
}
validatePhone('+1234567890');
cURL
curl -X GET "https://phone-validation-api.vercel.app/api/validate?phone=+1234567890&country=US" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json"
JavaScript (Fetch API)
async function validatePhone(phoneNumber) {
try {
const response = await fetch(
`https://phone-validation-api.vercel.app/api/validate?phone=${encodeURIComponent(phoneNumber)}&country=US`,
{
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
}
);
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'Validation failed');
}
return await response.json();
} catch (error) {
throw new Error(error.message || 'Validation failed');
}
}
// Usage
validatePhone('+1234567890')
.then(result => {
// {
// valid: true,
// number: "+12345678901",
// country: "US",
// type: "mobile"
// }
})
.catch(error => {
// Handle error
});