Phone Number Validator & Formatter avatar

Phone Number Validator & Formatter

Pricing

from $0.20 / 1,000 phone number checkeds

Go to Apify Store
Phone Number Validator & Formatter

Phone Number Validator & Formatter

Validate and format phone numbers in bulk with Google's libphonenumber rules: valid or not, E.164, international and national format, country, number type (mobile, fixed line, toll free). Offline, fast, cheap.

Pricing

from $0.20 / 1,000 phone number checkeds

Rating

0.0

(0)

Developer

Nico Klyve

Nico Klyve

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Validate, clean and format phone numbers in bulk for every country, with the numbering-plan rules of Google's libphonenumber. For each number you get whether it is valid, its E.164 form, international and national formats, the country, the calling code and the number type (mobile, fixed line, toll free, VoIP, premium rate...).

Everything is computed locally from the official numbering plans: no call is placed, no SMS is sent and no outside service is queried, so it is fast, private and cheap.

Who uses it

  • CRM and sales ops: normalise a contact list to E.164 before importing it into HubSpot, Salesforce, Brevo or a dialer.
  • SMS and WhatsApp campaigns: keep only valid mobile numbers and drop fixed lines before sending.
  • E-commerce and forms: clean numbers typed by customers in every possible way.
  • Data teams: deduplicate numbers written differently (06 12 34 56 78 and +33612345678 are the same).

Example output

{
"input": "06 12 34 56 78",
"valid": true,
"possible": true,
"e164": "+33612345678",
"international": "+33 6 12 34 56 78",
"national": "06 12 34 56 78",
"rfc3966": "tel:+33612345678",
"countryCode": "FR",
"country": "France",
"callingCode": "+33",
"nationalNumber": "612345678",
"extension": null,
"type": "mobile",
"error": null,
"defaultCountry": "FR"
}

type is one of mobile, fixed_line, fixed_line_or_mobile (countries such as the US where both share the same ranges), toll_free, premium_rate, shared_cost, voip, personal_number, pager, uan, voicemail or unknown. Extensions written as ext. 45 or x45 are recognised.

Input

FieldWhat it doesDefault
phoneNumbersNumbers to check, one per line, in any usual writingrequired
defaultCountry2-letter ISO code used for numbers without + or 00 (US, FR, GB, DE...)empty
removeDuplicatesSkip numbers already processed in the run (compared in E.164)true

Pricing

Pay per result: $0.0002 per phone number checked. Inputs that are not phone numbers at all and duplicates are free.

Good to know

  • valid means the number belongs to a range that is assigned in the country's numbering plan. It does not tell whether a line is currently active or who owns it: the Actor never contacts any carrier.
  • Numbering plans come from Google's libphonenumber metadata, updated with each release of the Actor.
  • Use it only for numbers you are allowed to process (your customers, your leads), in line with privacy laws such as the GDPR.