Phone Number Validator, Formatter & Extractor (E.164, Bulk) avatar

Phone Number Validator, Formatter & Extractor (E.164, Bulk)

Pricing

from $1.50 / 1,000 valid phone numbers

Go to Apify Store
Phone Number Validator, Formatter & Extractor (E.164, Bulk)

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

Chris Day

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

38 minutes ago

Last modified

Features

Limited permissions

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-extractor to your MCP client; the tool is geeky_goth_gamer--phone-number-validator-extractor. Or use call-actor with "actor": "geeky_goth_gamer/phone-number-validator-extractor".
  • Python: ApifyClient(token).actor("geeky_goth_gamer/phone-number-validator-extractor").call(run_input=...), then read client.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_TOKEN with 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

FieldExample
valid, possibletrue, true
invalidReason / invalidReasonTextTOO_SHORT / "Too short to be a phone number."
e164+61412345678, ready for SMS and calling APIs
national, international, rfc39660412 345 678, +61 412 345 678, tel:+61-412-345-678
numberTypeMOBILE, FIXED_LINE, TOLL_FREE, SHARED_COST, VOIP, …
regionCode, countryCallingCodeAU, 61
locationAustralia, or a city or state where libphonenumber has one (mostly landlines)
carrierTelstra (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)
extension99
duplicateOfthe row number of the first time this number appeared in the run

Input

  • phones or texts: up to 50,000 items, as strings or {"id": "your-ref", "value": "..."}.
  • bulkText: optional; paste one item per line.
  • defaultCountry (default AU): 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 mobile 021 123 4567 reads 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).