Validate a phone number and return its line type, carrier, location and VoIP details.
POST/v5/lookups
- Takes: Phone number
- Passive: the target is not contacted
- Cost: 0.0040 USD per lookup in the docs' example
An invalid number still returns 200 with valid false and an invalid_reason. An optional Idempotency-Key header stores a successful response for 24 hours so a repeat request is not charged twice. sms_enabled shows routing to an SMS-capable carrier, not delivery or consent.
Headers
Idempotency-KeyUp to 255 characters; repeated key and body returns the stored result
Request body (JSON) · 3ShowHide
phone_number
Up to 64 characters; a leading + or 00 marks an international number
default_country
ISO alpha-2 code used to read numbers without + or 00
allowed_countries
ISO codes; numbers from other countries return country_not_allowed
Response fields · 19ShowHide
phone_number
E.164 format, or null if unreadable
valid
Whether the number is valid
invalid_reason
Why the number is invalid, else null
format_national
National format
format_international
International format
country
Country
region
Region
city
City
time_zone
Time zone
line_type
mobile, landline, voip, toll_free or unknown
carrier
Carrier name
ported
Whether the number was ported; null for Canada
voip_type
fixed or non_fixed
voip_provider
VoIP provider
voip_provider_type
consumer_app, programmable, business or residential
sms_enabled
Whether texts route to an SMS-capable carrier or provider
cost
Cost of this lookup in USD
balance
Remaining balance in USD
test_mode
Whether a test key was used
curl -X POST 'https://api.phonevalidator.com/v5/lookups' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"phone_number":"+1 555 0100","default_country":"US"}'{
"phone_number": "+15550100",
"valid": true,
"invalid_reason": null,
"region": "EX",
"city": "EXAMPLETON",
"line_type": "mobile",
"carrier": "EXAMPLE CARRIER",
"ported": false,
"sms_enabled": true,
"cost": "0.0040",
"balance": "10.0000",
"test_mode": false
}