Help center
Landline or mobile: how to tell what type a number is
Find out whether a phone number is a landline, mobile, VoIP or toll-free line, and why US and Canadian numbers cannot be told apart from the number alone.
Updated 2026-11-23
Check the line_type of the number. In most countries the numbering plan separates mobile from landline ranges, so the basic check answers it. In the US and Canada the plan does not, so the basic check returns fixed_line_or_mobile and only a live lookup can say which it is.
Why it depends on the country
Each country's regulator assigns ranges. Many keep mobile ranges apart from fixed lines, and the free tools and API read that data. The North American Numbering Plan (NANP) does not: an area code and exchange can serve either kind of line, and subscribers can move a number between them. See line type for the full list of types.
Check one number for free
- Open the line type lookup.
- Enter the number with its country code, such as
+44 7400 123456. - Read the type.
mobile,landline,voip,toll_freeandpremium_rateare the ones you will meet most. - If a US or Canadian number shows
fixed_line_or_mobile, the live level, available from a free account, asks the network.
Check it with the API
curl https://api.qelka.com/v1/phone \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "07400 123456", "country": "GB"}'
The result has e164 set to +447400123456 and:
{
"valid": true,
"line_type": "mobile"
}
For a US number, add "level": "live":
curl https://api.qelka.com/v1/phone \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "+14155550123", "level": "live"}'
At the live level, the type reported by the provider replaces the plan's: fixed_line_or_mobile becomes mobile in the reference example. A basic call costs 1 credit and a live call 3 credits.
line_type |
What to do |
|---|---|
mobile |
Send SMS. |
landline |
Call, or ask for a mobile number. |
fixed_line_or_mobile |
Run a live lookup before sending a text. |
voip |
Allow, but consider extra verification. See Identify VoIP numbers. |
toll_free, premium_rate, shared_cost |
Usually not a customer's personal phone. Ask for another number. |
unknown |
The type could not be determined. Do not assume mobile. |
Use the type in a form
On submit, validate on your server and branch on line_type: accept mobile, ask for another number when the type is toll_free or premium_rate, and send a code only to numbers that can receive it. Validate phone numbers in a signup form shows the full flow.
Limits to keep in mind
- The type describes the range, not the handset. A landline number can forward to a mobile. A mobile number can be a second line in an app.
- VoIP detection depends on ranges. Number ranges assigned to internet telephony are flagged. Numbers some VoIP services rent from ordinary mobile or landline blocks look like regular ones.
- Types change. Numbers are ported. Re-check before a big send.
Common mistakes
- Treating
fixed_line_or_mobileasmobile. It means unknown, and a text to a landline fails. - Guessing from the first digits. Rules differ by country and change when regulators open new ranges.
- Skipping
country. Numbers without+need it, or the status isunknown. - Paying for live on every number. Run basic first and go live only for the ambiguous ones.
Related
Frequently asked questions
Can I tell if a number is mobile or landline from its digits?
fixed_line_or_mobile at the basic level. A live lookup asks the network and can return mobile or landline for those numbers.Why does the API return fixed_line_or_mobile?
Why does line type matter for SMS?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time