Validate a number with GET /phone/details
The standard lookup: the request, every field it answers with, and what it costs.
Last updated
GET /phone/details validates one number and returns its country, line type, carrier and network, place, time zones and disposable flag. It costs 1 credit.
Request#
bash
curl --get "https://api.phone-check.app/phone/details" \
--data-urlencode "phone=+14155552671" \
-H "x-api-key: $API_KEY"Response#
Only valid is always present; read every other field defensively (for example phone.carrier ?? ''). An answer looks like this (the reference's example values):
json
{
"number": "+14155552671",
"valid": true,
"country": "US",
"callingCode": "1",
"nationalNumber": "4155552671",
"type": "MOBILE",
"isDisposable": false,
"carrier": "T-Mobile",
"geo": "San Francisco, CA",
"timezones": ["America/Los_Angeles"]
}Good to know#
- An invalid number is still an answer:
200withvalid: false, and it spends its credit. - A
phoneshorter than 6 or longer than 20 characters is rejected with400before any lookup. - Need the operating carrier or exchange data for US numbers? See Carrier context with GET /phone/extra-details.
The full schema is in the API reference (opens another site).
