Skip to content

Enrich

Tell a mobile number from a landline

Send a phone number and get its line type: mobile, landline, VoIP, toll-free, premium rate and more, read from the numbering plan of its country.

What one lookup returns

The fields this product reads from the response. The full schema is in the API reference.

FieldTypeMeaning
line_typestringmobile, landline, fixed_line_or_mobile, voip, toll_free, premium_rate and other numbering plan types.
validbooleantrue when the number is a possible, assigned number in its country.
e164string or nullThe number in international E.164 format.
country.codestringISO 3166-1 alpha-2 code of the number's country.
carrier.namestring or nullOperator name: the original one at basic level, the current one at live level.

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/phone \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+33612345678","level":"basic"}'
Request fields
phonestring · RequiredThe phone number, in any common format. E.164 is recommended.
countrystring · OptionalISO 3166-1 alpha-2 country used to read numbers written without an international prefix.
levelstring · Default "basic"basic reads the numbering plan; live asks the network for the current carrier and costs more.
freshboolean · Default falsetrue skips the result cache and runs the lookup again.

Response

{
  "id": "lkp_01M85PTBFDMJ93G3DQTMRJDWJ5",
  "object": "phone",
  "input": "+33612345678",
  "valid": true,
  "status": "valid",
  "e164": "+33612345678",
  "national": "06 12 34 56 78",
  "country": {
    "code": "FR",
    "name": "France",
    "calling_code": "33"
  },
  "region": null,
  "timezones": [
    "Europe/Paris"
  ],
  "line_type": "mobile",
  "carrier": {
    "name": "SFR",
    "mcc": null,
    "mnc": null,
    "source": "numbering_plan"
  },
  "ported": null,
  "credits_used": 1,
  "cached": false
}

Use cases

Send SMS only where it lands

Skip landlines before you pay for a text message that cannot be delivered.

Block premium rate numbers

Refuse numbers that would cost your users or your call center money.

Qualify leads

Prefer mobile numbers for callbacks and two-factor codes.

Clean a contact list

Tag each number with its line type before a campaign.

Price

1 credit per lookup, from the same balance as every other product.

Starter
$2.90 per 1,000 lookups
Growth
$1.98 per 1,000 lookups
Scale
$1.50 per 1,000 lookups
Business
$1.07 per 1,000 lookups

The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.

See pricing

Data source and freshness

Read from datasets we download and refresh on the schedule listed below. Your input never leaves our infrastructure. Results are cached for 7 days; send "fresh": true to query again.

Data sources

Frequently asked questions

Where does the line type come from?
From the numbering plan metadata in Google's libphonenumber, which records which number ranges are mobile, fixed line, toll-free, premium rate, VoIP and other types for each country.
What does fixed_line_or_mobile mean?
Some countries, the United States and Canada among them, use the same ranges for mobile and fixed lines. The numbering plan alone cannot tell them apart; a live lookup asks the network.
Does a ported number keep its line type?
The basic level answers from the range a number belongs to, so a number moved from a landline to a mobile service keeps the original type. The live level reports the current one.

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