validate

Phone validation

Line type, country, carrier where derivable, and a risk level from numbering-plan data.

Try in Quick LookupTry the free toolRead the API
1 credit
Billing
Per lookup
Implementation
Computed in Klaris
GDPR
Network data
Request fields
phone_number
POST /api/v1/phone
curl
curl -X POST "$KLARIS_URL/api/v1/phone" \
  -H "Authorization: Bearer $KLARIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone_number": "+34600111222"
}'
JavaScript
const payload = {
  phone_number: "+34600111222",
};

const res = await fetch(`${process.env.KLARIS_URL}/api/v1/phone`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KLARIS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
Python
import os
import requests

payload = {
    "phone_number": "+34600111222"
}

requests.post(
    f"{os.environ['KLARIS_URL']}/api/v1/phone",
    headers={"Authorization": f"Bearer {os.environ['KLARIS_API_KEY']}"},
    json=payload,
)

Set KLARIS_URL to your Klaris origin and KLARIS_API_KEY to a live key.

All products →