Phone Number Validator: Bulk Format & Type Check
Pricing
$1.00 / 1,000 phone numbers checked
Phone Number Validator: Bulk Format & Type Check
Validates and formats phone numbers in bulk with offline rules: E.164, national and international formats, country, and line type (mobile, fixed line, toll free, VoIP).
Pricing
$1.00 / 1,000 phone numbers checked
Rating
0.0
(0)
Developer
Jackal Alpha
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Bulk Phone Number Validator: E.164 & Line Type
By Jackal Alpha.
This phone number validator checks and formats a list of numbers offline, using Google's public libphonenumber numbering-plan rules, so it is fast and never contacts anyone. For each number you get valid or not, the E.164, international and national formats, country, calling code and line type (mobile, fixed line, toll free, VoIP and more), plus the reason when a number is invalid. Point it at a dataset from another Actor, name the phone field, set a default country, and keep only valid numbers or certain line types. Price: $0.001 per number ($1 per 1,000); duplicates and filtered rows are free. It does not tell you whether a number is in service, who the carrier is today, or whether it is on WhatsApp or Telegram.
What it does not do: it does not tell you whether a number is currently in service, who the carrier is today, or whether the number is on WhatsApp or any other app. See "What it does not check" below.
What it checks
For every number:
- Validity. Whether the number matches the numbering-plan rules of its country: right length, valid area or mobile prefix.
validis the strict test;possibleis the looser length-only test. - Formats. E.164 (
+442079460958), international (+44 20 7946 0958) and national (020 7946 0958). For invalid numbers these arenull, because a made-up format would be misleading. - Country and calling code. For example
GBand44. For shared calling codes such as +1 the country is worked out from the area code. - Number type.
mobile,fixed_line,fixed_line_or_mobile,toll_free,premium_rate,shared_cost,voip,personal_number,pager,uan,voicemail, ornullwhen the rules cannot tell. US and Canadian numbers are mostlyfixed_line_or_mobile, because the North American plan does not separate the two. - Reason for invalid numbers.
too_short,too_long,invalid_length,invalid_country(no+and no default country, or an unknown calling code),not_a_number, orinvalid_number(plausible length, but it fails the country's pattern rules). - Duplicates. Numbers are compared by their E.164 form, so
(415) 555-2671and+1 415 555 2671count as the same number. Invalid entries are compared by their text.
What it does not check
This is an offline rules check. It does not tell you whether the number is connected right now, whether it has been disconnected or ported to another carrier, who the carrier is today (the rules only know who the number range was originally given to), whether a mobile is switched on, or whether it is registered on WhatsApp, Telegram or any other service. valid: true means the number is correctly formed for its country, not that anyone will answer.
The number-type data is the best the public rules offer and is not complete for every country. Treat null as "unknown", not as "not a mobile".
Input
| Field | Type | Default | Meaning |
|---|---|---|---|
numbers | list of strings | five examples | Numbers to check. |
datasetId | string | none | An existing Apify dataset to read numbers from, in addition to numbers. |
phoneField | string | phone | Field in that dataset which holds the number. |
defaultCountry | string | none | Two-letter country code (US, GB, DE) for numbers written without + and a country code. A number that starts with + ignores it. |
dedupe | boolean | true | Skip repeats. Skipped repeats are not output and not charged. If off, repeats are checked, marked isDuplicate and charged. |
onlyValid | boolean | false | Output only valid numbers. Hidden rows are not charged. |
onlyTypes | list | none | Output only these types, for example mobile. Invalid numbers and numbers of unknown type are hidden when this is set. Hidden rows are not charged. |
Empty or non-text entries are ignored and not charged. Plain numbers in a dataset (such as 14155552671) are read as text. If both numbers and datasetId are empty, the run fails.
Output
One record per number, in input order:
{"input": "(202) 555-0143","valid": true,"possible": true,"e164": "+12025550143","international": "+1 202 555 0143","national": "(202) 555-0143","country": "US","countryCallingCode": "1","type": "fixed_line_or_mobile","reason": null,"isDuplicate": false}
An invalid number looks like this:
{"input": "12345","valid": false,"possible": false,"e164": null,"international": null,"national": null,"country": "US","countryCallingCode": "1","type": null,"reason": "too_short","isDuplicate": false}
A SUMMARY record in the key-value store holds the counts for the run: delivered, valid, skipped duplicates, hidden by filters, and whether the run stopped at your spending limit.
Pricing
Pay per event: $0.001 per number delivered (event name phone-validated), charged once for each result that lands in the dataset. Duplicates that are skipped, empty rows and rows hidden by onlyValid or onlyTypes are not charged. Apify platform usage is billed separately by Apify as usual, though a run like this uses very little compute.
Worked example: a list of 50,000 rows with 5,000 repeats, keeping only mobile numbers. Say 30,000 of the remaining 45,000 are mobile. You are charged for the 30,000 delivered: 30,000 x $0.001 = $30.00.
If you set a maximum cost per run, the Actor charges in batches of 1,000 before delivering them and stops when the limit is reached. You are never given results beyond what the limit pays for. The run's status message says when it stopped at your limit, and SUMMARY lists the rest as notDelivered.
Limits and performance
- Checking is local CPU work with no network calls, so thousands of numbers take well under a second of compute. A 10,000-number run finishes in seconds, mostly spent writing the dataset.
- Numbers are held in memory for the run, so lists of a few million are fine on the default memory setting.
- The rules data comes from the
libphonenumber-jspackage and is updated when this Actor is rebuilt, not live.
FAQ
Can I tell if a number is a real, working line? No. Only a live lookup against carrier data or a call can, and this Actor deliberately does neither.
Why is my US number fixed_line_or_mobile? The North American numbering plan does not mark which numbers are mobile, so the rules cannot say. The type is null when they cannot tell at all.
Why is a number I know is real marked invalid? New ranges are released often. If a carrier launched a prefix after the rules were last updated, it will fail until the Actor is rebuilt. possible: true with valid: false often points to this.
Why invalid_country? The number had no + and no defaultCountry was set, or its calling code does not exist. Set defaultCountry or write the numbers with a +.
Is the sample data real? No. The sample numbers come from ranges set aside for documentation and drama use, or are public business-style test numbers.