Phone Validation API - Free Number Parser
Parses and validates a phone number. Returns formatted versions (E.164, national), country code, and country name.
Code examples
curl -X POST https://api.botoi.com/v1/phone \
-H "Content-Type: application/json" \
-d '{"phone":"+14155552671","country":"US"}'When to use this API
Normalize phone numbers in a contact database
Users enter phone numbers in dozens of formats: "415-555-2671", "(415) 555 2671", "+1 415.555.2671". Parse each one through this endpoint to get the standardized E.164 format for storage. Use the national_format for display in the UI.
Route SMS messages by country
Before sending an SMS through your messaging provider, validate the phone number and extract its country code. Route messages through region-specific SMS gateways to reduce costs and improve delivery rates.
Block invalid numbers in signup forms
Validate phone numbers on registration form submission. Reject invalid numbers immediately and show users the national format as a confirmation of what was parsed, catching typos before they reach your database.
Frequently asked questions
What phone number formats are accepted?
When should I use the country parameter?
What is E.164 format?
Does this verify that the phone number is in service?
Can I validate landline and mobile numbers?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.