DialCheck Phone Number Validator
Validate and format phone numbers with libphonenumber: E.164, country, and type (mobile, landline, toll-free). No owner or carrier lookup.
This API is live on our Worker and is being listed on RapidAPI. The host below is the expected RapidAPI hostname once the listing is public. Until then the examples will work after you subscribe.
Endpoints
| Path | What it does |
|---|---|
/validate | Validate and parse a phone number |
/format | Format as E.164, international or national |
/bulk | Validate up to 50 numbers |
/example | Example number for a country |
/countries | Supported countries and calling codes |
Examples
Replace YOUR_KEY with your RapidAPI key. Host: dialcheck-phone-number-validator.p.rapidapi.com
curl
curl --request GET \
--url 'https://dialcheck-phone-number-validator.p.rapidapi.com/validate?phone=4155552671&country=US' \
--header 'X-RapidAPI-Key: YOUR_KEY' \
--header 'X-RapidAPI-Host: dialcheck-phone-number-validator.p.rapidapi.com'
JavaScript
const res = await fetch('https://dialcheck-phone-number-validator.p.rapidapi.com/validate?phone=4155552671&country=US', {
headers: {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'dialcheck-phone-number-validator.p.rapidapi.com'
}
});
const data = await res.json();
Python
import os, requests
r = requests.get(
'https://dialcheck-phone-number-validator.p.rapidapi.com/validate?phone=4155552671&country=US',
headers={
'X-RapidAPI-Key': os.environ['RAPIDAPI_KEY'],
'X-RapidAPI-Host': 'dialcheck-phone-number-validator.p.rapidapi.com',
},
)
print(r.json())
Notes
Nothing you send is stored by our code. Calls go through RapidAPI, which bills according to the plan you pick. The origin runs on Cloudflare Workers.