Veriphone
Data AccessVeriphone.io Public API Docs
Veriphone.io is a public API service that provides validation for phone numbers. With veriphone.io, it is now possible to verify whether a phone number is active, accurate, and reachable.
API Endpoints
The following are the endpoints provided by the Veriphone.io API:
https://veriphone.io/api/v2/verify
https://veriphone.io/api/v2/format
https://veriphone.io/api/v2/cleanup
Formatting Endpoint
Use the format
endpoint when you want to format a phone number in a specified format, typically the standardized E.164 format. Here is an example of a JavaScript code snippet for using the format
endpoint:
let phone_number = '1(123)123-1234'; // Phone number in any format
let api_key = 'YOUR_API_KEY'; // Your API key
let url = `https://veriphone.io/api/v2/format?phone=${phone_number}&apikey=${api_key}`;
fetch(url)
.then(response => response.json())
.then(data => console.log(data));
Validation Endpoint
Use the verify
endpoint to verify whether a phone number is active, accurate, and reachable. Here is an example of a JavaScript code snippet for using the verify
endpoint:
let phone_number = '+11231231234'; // Phone number in E.164 format
let api_key = 'YOUR_API_KEY'; // Your API key
let url = `https://veriphone.io/api/v2/verify?phone=${phone_number}&apikey=${api_key}`;
fetch(url)
.then(response => response.json())
.then(data => console.log(data));
Cleanup Endpoint
Use the cleanup
endpoint to remove unwanted characters from a phone number. Here is an example of a JavaScript code snippet for using the cleanup
endpoint:
let phone_number = '+1 123 123 1234'; // Phone number in any format
let api_key = 'YOUR_API_KEY'; // Your API key
let url = `https://veriphone.io/api/v2/cleanup?phone=${phone_number}&apikey=${api_key}`;
fetch(url)
.then(response => response.json())
.then(data => console.log(data));
Conclusion
Veriphone.io API endpoints offer an easy, efficient, and cost-effective means of verifying and formatting phone numbers. Start using these endpoints today and keep your phone numbers validated and formatted.