Wood Between StudioAPIs & Actors

Home / APIs / DialCheck

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.

Open on RapidAPI

Endpoints

PathWhat it does
/validateValidate and parse a phone number
/formatFormat as E.164, international or national
/bulkValidate up to 50 numbers
/exampleExample number for a country
/countriesSupported 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.