Phone Validator API
✅ Production Ready
This API is fully tested and available for production use. Rate limit: 100 requests/day (Free Tier).
Overview
The Phone Validator API allows you to validate phone numbers in real-time, detect fraud indicators, and get carrier information. It's designed to help e-commerce businesses:
-
Prevent COD fraud by validating customer phone numbers
-
Reduce delivery failures with accurate phone data
-
Detect disposable numbers used by fraudsters
-
Improve customer experience with instant validation
Key Features
Feature Description Real-time Validation Instant validation as users type Country Detection Automatically detects country from phone number Fraud Detection Identifies disposable, VoIP, and suspicious numbers Risk Scoring 0-100 risk score for fraud detection Formatted Output Returns internationally formatted numbers
Authentication
All API requests require authentication using your API key.
How to Get Your API Key
- Sign up for a free account at FraudHawkAI
- Login to your dashboard
- Navigate to Dashboard → Settings → API Key
- Copy your API key
⚠️ Keep Your API Key Secure
Never share your API key publicly or expose it in client-side code. If compromised, regenerate your key immediately.
Authentication Methods
Method 1: Bearer Token (Recommended)
fetch("https://api.fraudhawkai.com/api/tools/phone-validator", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer your-api-key-here",
},
body: JSON.stringify(data),
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error("Error:", error));