Phone Number Validator, Formatter & Extractor (E.164, Bulk)
Pricing
from $1.50 / 1,000 valid phone numbers
Phone Number Validator, Formatter & Extractor (E.164, Bulk)
Validate and format phone numbers in bulk for 240+ countries (offline, Google libphonenumber), or extract phone numbers from text. Input: numbers or text. Output: valid/invalid with reason, E.164, mobile or landline, carrier, location, time zone. $1.50 per 1,000 valid.
Pricing
from $1.50 / 1,000 valid phone numbers
Rating
0.0
(0)
Developer
Chris Day
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
38 minutes ago
Last modified
Categories
Features
Share
Phone Number Validator, Formatter & Extractor (bulk, offline)
Clean up phone lists in bulk with Google's libphonenumber, the same library Android uses. It covers 245 countries and regions. Everything runs inside the Actor: there are no third-party APIs, no lookups that send your data elsewhere, and no API keys.
When an AI agent should use this
Use geeky_goth_gamer/phone-number-validator-extractor when:
- You need to check whether phone numbers are valid before sending SMS, calling or importing into a CRM.
- You need phone numbers in a standard format (E.164 such as +61412345678) or want to know mobile vs landline.
- You need to pull phone numbers out of emails, web pages or notes (
mode: "extract").
Don't use it for:
- Checking whether a line is currently connected or who owns it (no live HLR lookup).
Example input:
{"phones": ["0412 345 678","(03) 6331 2345","+1 650 253 0000"],"defaultCountry": "AU"}
Output: One dataset item per number: valid, invalidReason, e164, national, international, numberType, carrier, location, timeZones, duplicateOf.
Cost: $0.0015 per valid unique number, $0.0003 per invalid one. Repeats and empty rows are free.
Call it from an agent:
- Apify MCP server: add
https://mcp.apify.com/?tools=geeky_goth_gamer/phone-number-validator-extractorto your MCP client; the tool isgeeky_goth_gamer--phone-number-validator-extractor. Or usecall-actorwith"actor": "geeky_goth_gamer/phone-number-validator-extractor". - Python:
ApifyClient(token).actor("geeky_goth_gamer/phone-number-validator-extractor").call(run_input=...), then readclient.dataset(run["defaultDatasetId"]).list_items().items. - HTTP:
POST https://api.apify.com/v2/acts/geeky_goth_gamer~phone-number-validator-extractor/run-sync-get-dataset-items?token=YOUR_TOKENwith the input JSON as the body.
Two modes
- validate: each item is one phone number. You get whether it is valid, the reason if it is not, and the formats below.
- extract: each item is free text (an email, a web page, notes, a CRM field). Every valid phone number found is returned with its position in the text.
What you get for each number
| Field | Example |
|---|---|
valid, possible | true, true |
invalidReason / invalidReasonText | TOO_SHORT / "Too short to be a phone number." |
e164 | +61412345678, ready for SMS and calling APIs |
national, international, rfc3966 | 0412 345 678, +61 412 345 678, tel:+61-412-345-678 |
numberType | MOBILE, FIXED_LINE, TOLL_FREE, SHARED_COST, VOIP, … |
regionCode, countryCallingCode | AU, 61 |
location | Australia, or a city or state where libphonenumber has one (mostly landlines) |
carrier | Telstra (the network the number range was originally allocated to) |
timeZones | ["Australia/Sydney"] (libphonenumber's zones for the number range; these can be broad, e.g. a Tasmanian landline reports Sydney time) |
extension | 99 |
duplicateOf | the row number of the first time this number appeared in the run |
Input
phonesortexts: up to 50,000 items, as strings or{"id": "your-ref", "value": "..."}.bulkText: optional; paste one item per line.defaultCountry(defaultAU): used for numbers written without+. Leave it empty to accept international numbers only.flagDuplicates(default on).onlyValid(default off).language: the language for location and carrier names.
Fair pricing
- Valid number: $0.0015 ($1.50 per 1,000), once per unique number per run.
- Invalid number: $0.0003 ($0.30 per 1,000), with the reason it failed.
- Free: repeats of a number already seen in the same run, rejected items (empty or not text), and extract-mode texts with no number in them.
Your maximum cost per run is respected.
Things to know
- The default country matters. With
defaultCountry: AU, the NZ mobile021 123 4567reads as a valid Sydney landline (+61 2 1123 4567). Store numbers in+64…form, or run each country's list separately. - The carrier is the original allocation. In AU and NZ, numbers can be ported to another network. For the current carrier you need a paid live lookup (HLR), which this Actor does not do.
- "Valid" means the number is in a range assigned by the country's numbering plan. It does not mean the line is connected right now.
- Metadata comes from libphonenumber 9.0.44 (bundled with the build).