Skip to main content
POST
Phone VoIP answers one question: is this number a VoIP line? VoIP numbers are cheap to get in bulk, so they are common in SMS fraud and fake sign-ups. POST /api/lookup/phone/voip Requires an Encrata API key in the Authorization header.

Request

string
required
The phone number in E.164 format, for example +14155552671. You can send it as query instead.
string
default:"static"
How to check the line.Any other value returns 400.

Example request

How the answer is decided

In current mode, the line type the number uses today wins over the one it was issued as. A mobile number ported to a VoIP carrier comes back as voip.

Response

The lookup is in result. message is VoIP check complete.
string
The number in E.164 format.
boolean
true when the number is valid. An invalid number is always voip_status: "unknown" and is free.
string
Why the number isn’t valid. Left out when valid is true.
boolean
true only when voip_status is voip.
string
voip, not_voip, or unknown. See How the answer is decided.
string
The line type the answer used: mobile, fixed_line, voip, toll_free, fixed_line_or_mobile, short_code, or emergency.
string
current mode only: the line type the number was issued as, when it differs from today’s.
string
The carrier the number was issued to. Left out when unknown.
string
current mode only: the carrier the number uses today.
boolean
current mode only: true when the number moved to another carrier. Left out when unknown.
string
The region the number belongs to. Left out when unknown.
string
The country name. Left out when unknown.
string
ISO 3166-1 alpha-2 code. Left out when unknown.
string[]
The time zones the number can be in. Left out when unknown.
string
The mode that ran: static or current.
number
Credits charged: 2, or 0 when the number is invalid, the answer is unknown, or the check is a free repeat.
boolean
true when the answer came from Encrata’s cache. It isn’t a billing signal.

Errors

See Phone Lookup errors. VoIP adds these:

Credits

Each check costs 2 credits. You pay nothing when the number is invalid or the answer is unknown. Checking the same number in the same mode again within 6 months is free (credits: 0). static and current are billed separately. See Credits.