Locanium
Validation · API

Phone Validation

Validate a phone number and return its country, carrier and line type in E.164.

POST /v1/validate/phone
POST /v1/validate/phone
200 OK
{
  "phone": "+14155552671",
  "valid": true,
  "country_code": "US",
  "carrier": "Verizon",
  "line_type": "mobile"
}
Capabilities

Why teams use it

Carrier & line type

Know the carrier and whether it’s mobile, landline or VoIP.

E.164 normalization

Clean, storable numbers every time.

Global validation

Numbering plans for every country.

Fraud signals

Catch invalid and high-risk numbers early.

Request

Call it in your language

curl -X POST https://api.locanium.com/v1/validate/phone \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"phone":"+14155552671"}'
Response

What you get back

  • validboolean
    Whether the number is valid
  • country_codestring
    ISO country code
  • carrierstring
    Carrier name
  • line_typestring
    mobile / landline / voip
  • e164string
    Normalized E.164 format
Use cases

What you can build

Account security

Verify numbers before SMS and 2FA.

Data hygiene

Normalize to E.164 and detect line type.

Routing

Route by carrier and country.

Validation family

Full parameters, errors and code samples are in the API reference.

Get started

One API for geolocation, currency and identity checks. Book a demo and get a sandbox key the same day.