Everything You Need for Phone Numbers
One powerful API for validation, formatting, and SMS verification
Phone Validation
Validate any phone number format from 200+ countries. Get instant results with country detection and line type identification.
Global Coverage
Supports all international formats. Automatically detects country codes and formats numbers to E.164 standard.
SMS Verification
Send 6-digit verification codes via SMS using Twilio Verify. Perfect for 2FA, account verification, and secure logins.
Lightning Fast
Sub-100ms response times. Built on serverless infrastructure for maximum performance and reliability.
Secure & Reliable
Enterprise-grade security with API key authentication. 99.9% uptime SLA with automatic failover.
Easy Integration
Simple REST API that works with any language. Comprehensive documentation and code examples included.
API Documentation
Complete API reference with examples. All endpoints require your API key in the x-api-key header.
Base URL
https://phone-validation-api.vercel.app
All requests require the x-api-key header with your API key.
/api/validate
Validate and format phone numbers. Returns validation status, formatted number, country code, and line type.
-
phone(required) - Phone number to validate -
country(optional) - Default country code (defaults to 'US')
{
"valid": true,
"number": "+12345678901",
"country": "US",
"type": "mobile"
}
const axios = require('axios');
const response = await axios.get(
'https://phone-validation-api.vercel.app/api/validate',
{
params: { phone: '+1234567890', country: 'US' },
headers: { 'x-api-key': 'YOUR_API_KEY' }
}
);
console.log(response.data);
curl -X GET "https://phone-validation-api.vercel.app/api/validate?phone=+1234567890" \
-H "x-api-key: YOUR_API_KEY"
/api/send-code
Send a 6-digit verification code to a phone number via SMS. Perfect for two-factor authentication and account verification.
{
"phone": "+1234567890"
}
{
"success": true,
"message": "Verification code sent successfully",
"phone": "+12345678901",
"verification_sid": "VE..."
}
const axios = require('axios');
const response = await axios.post(
'https://phone-validation-api.vercel.app/api/send-code',
{ phone: '+1234567890' },
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
console.log(response.data);
curl -X POST "https://phone-validation-api.vercel.app/api/send-code" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "+1234567890"}'
/api/check-code
Verify a 6-digit code sent to a phone number. Returns verification status instantly.
{
"phone": "+1234567890",
"code": "123456"
}
{
"success": true,
"verified": true,
"message": "Verification code is correct",
"phone": "+12345678901"
}
const axios = require('axios');
const response = await axios.post(
'https://phone-validation-api.vercel.app/api/check-code',
{ phone: '+1234567890', code: '123456' },
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
console.log(response.data);
curl -X POST "https://phone-validation-api.vercel.app/api/check-code" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "+1234567890", "code": "123456"}'
Rate Limits & Error Codes
- • 3 requests per phone/hour
- • 10 requests per API key/hour
- •
400- Bad Request - •
401- Invalid API Key - •
429- Rate Limit Exceeded - •
500- Server Error
Try It Live
Test our API endpoints right here. No API key required for phone validation demo.
Phone Validation
No API key required for this demo. Rate limited to 5 requests/minute.
SMS Verification
Test SMS verification with your API key. Get your free API key to test with real SMS.
Enter your API key to test with real SMS. Get your free API key
Step 1: Send Verification Code
Enter phone number in E.164 format (e.g., +1234567890)
Simple, Transparent Pricing
Start free, scale as you grow. All plans include phone validation and SMS verification.
Free
- 7 API requests/month
- Phone validation
- SMS verification (3 SMS/month)
- Country detection
- Number formatting
- Perfect for testing
Starter
- 250 API requests/month
- Phone validation
- SMS verification (50 SMS/month)
- Country detection
- Number formatting
- Email support
Pro
- 2,500 API requests/month
- Phone validation
- SMS verification (500 SMS/month)
- Country detection
- Number formatting
- Priority support
- Advanced features
Custom
- 5,000+ API requests/month
- Unlimited SMS verification
- All Pro features
- Custom integration
- Dedicated support
- Volume discounts
Perfect For
Trusted by developers building modern applications
Two-Factor Authentication
Add SMS-based 2FA to your applications. Secure user accounts with phone number verification.
Form Validation
Validate phone numbers in real-time as users type. Improve data quality and user experience.
Account Verification
Verify user phone numbers during signup. Reduce fake accounts and improve security.
E-commerce
Validate shipping addresses and send order confirmations via SMS. Improve customer trust.
Messaging Apps
Verify phone numbers before allowing users to send messages. Prevent spam and abuse.
Enterprise Solutions
Integrate phone validation into your CRM, ERP, or custom business applications.