# Bulk Phone Number Validator & Formatter (240+ Countries) (`plotpointtech/phone-number-validator`) Actor

Validate, clean and format phone numbers in bulk for $0.50 per 1,000: valid or not and why, E.164 and national formats, country, mobile/landline/VoIP type, original carrier and time zones, for 240+ countries.

- **URL**: https://apify.com/plotpointtech/phone-number-validator.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.31 / 1,000 phone number checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bulk Phone Number Validator & Formatter (240+ Countries)

**Validate, clean and format phone numbers in bulk for $0.50 per 1,000.** Paste a list, give it CSV files or point it at an Apify dataset, and get back for every number: valid or not (and why), E.164, international and national formats, country, number type (mobile, landline, VoIP, toll-free), the original carrier, location and time zones. It runs on Google's open-source **libphonenumber** rules, the same data Android and most CRMs use, so it is fast, private and cheap.

### What can this phone validator do?

- **Check validity** against each country's official numbering plan: right length and an allocated range. Invalid numbers come back with a plain-English reason ("too short", "invalid country code", "right length, but not in any number range allocated in GB").
- **Format** every number as **E.164** (`+447400123456`, best for CRMs, Twilio and WhatsApp), international, national and `tel:` URI.
- **Detect the country** from the `+` prefix, or use your **default country** for local numbers like `(201) 555-0123`.
- **Classify the number type**: mobile, fixed line, toll-free, premium rate, VoIP, pager, shared cost, personal number and more.
- **Show the original carrier** for mobile numbers (the network the range was assigned to), the **location** for landlines and the **time zones**, so you know when to call.
- **De-duplicate** numbers written in different ways (`+1 800 234 5678` and `18002345678` count once).
- **Read CSV files or another Apify dataset**, for example the output of a lead scraper, and validate the field you name (`phone`, `contact.phone`, list fields expanded).

### What data do you get?

| Field | Description |
|---|---|
| `input` | The number as you gave it |
| `isValid`, `isPossible`, `invalidReason` | Valid against the numbering plan, possible length, reason if not |
| `e164`, `international`, `national`, `rfc3966` | Formatted versions |
| `countryCallingCode`, `regionCode`, `country` | For example `44`, `GB`, `United Kingdom` |
| `numberType` | `mobile`, `fixed_line`, `fixed_line_or_mobile`, `toll_free`, `voip`, `premium_rate`, ... |
| `originalCarrier` | Network the number range was originally assigned to (mobile numbers) |
| `location`, `timeZones` | Area or city for landlines, IANA time zones |
| `extension`, `nationalNumber` | Extension if written, digits without the country code |
| `duplicateInputs`, `occurrences` | Other ways the same number appeared in your input |
| `source`, `checkedAt` | List, CSV or dataset, and when it was checked |

### Who uses it?

- **Sales and marketing teams** cleaning lead lists before importing them into a CRM or dialler.
- **SMS and WhatsApp senders** converting numbers to E.164 and removing landlines and invalid entries before a campaign.
- **Developers** normalising phone fields from signup forms, scrapers and spreadsheets.
- **Data teams** de-duplicating contact databases where the same number is written many ways.

### How to use it

1. Click **Try for free** (or **Start**).
2. Paste **Phone numbers** (one per line), add **CSV file URLs**, or pick an **Apify dataset** and set **Phone field**.
3. Set **Default country** for numbers written without a `+` country code.
4. Run it and download the results as CSV, Excel or JSON from the **Output** tab.

### Input example

```json
{
  "phoneNumbers": ["(201) 555-0123", "+44 7400 123456", "+49 151 23456789", "+234 802 123 4567"],
  "defaultCountry": "US",
  "deduplicate": true
}
```

### Output example

From a real run with the default sample numbers:

```json
{
  "input": "+44 7400 123456",
  "isValid": true,
  "isPossible": true,
  "invalidReason": null,
  "e164": "+447400123456",
  "international": "+44 7400 123456",
  "national": "07400 123456",
  "rfc3966": "tel:+44-7400-123456",
  "countryCallingCode": 44,
  "regionCode": "GB",
  "country": "United Kingdom",
  "numberType": "mobile",
  "originalCarrier": "Three",
  "location": null,
  "timeZones": ["Europe/Guernsey", "Europe/Isle_of_Man", "Europe/Jersey", "Europe/London"],
  "nationalNumber": "7400123456",
  "occurrences": 1
}
```

The same run flagged `+44 7700 900123` as invalid: "right length, but not in any number range allocated in GB (unassigned, reserved or fictional range)".

### How much does it cost?

**$0.50 per 1,000 phone numbers** ($0.0005 each), plus a $0.00005 start fee per run. Duplicates are removed before charging.

| You check | You pay |
|---|---|
| 10 sample numbers (default run) | $0.005 |
| 1,000 leads | $0.50 |
| 100,000 CRM contacts | $50.00 |

**Volume discounts on higher Apify plans.** The prices above are for the Apify Free plan. On paid plans the price drops automatically: about 15% lower on Bronze, 25% lower on Silver and 38% lower on Gold and above.

### Use it via API, Make, Zapier, n8n or an AI agent

**Apify API.** Start a run and get the results back in one HTTP request (replace `YOUR_API_TOKEN` with the token from Apify Console > Settings > Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/plotpointtech~phone-number-validator/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"phoneNumbers": ["(201) 555-0123", "+44 7400 123456"], "defaultCountry": "US"}'
```

Official `apify-client` libraries exist for Python and JavaScript; the **API** tab on this page has ready-made code.

**No-code automation.** Connect the tool to **Make, Zapier, n8n, Google Sheets, HubSpot, Airtable** or any webhook with Apify integrations, or chain it after a lead scraper with the dataset input.

**AI agents (MCP).** Give Claude, ChatGPT, Cursor or any MCP-compatible agent direct access through the hosted Apify MCP server:

```
https://mcp.apify.com?tools=plotpointtech/phone-number-validator
```

### FAQ

**Does it tell me if a number is active or who owns it?**
No. Validation is offline: it checks the number against official numbering plans, which catches typos, wrong lengths, fake and unallocated ranges. It does not call or ping the number, so it cannot tell whether a line is switched on, and it never looks up the owner's name. The carrier is the network the range was originally assigned to; numbers ported to another network keep their old carrier here.

**Why is a US number "fixed_line_or_mobile"?**
In the US and Canada, mobile and landline numbers share the same ranges, so the numbering plan cannot tell them apart.

**Which countries are supported?**
All 240+ countries and territories in libphonenumber. Country names are returned in English by default; set **Language** for other languages.

**Are my numbers private?**
Numbers are processed inside your own Apify run and stored only in your Apify storage. Nothing is sent to a third-party service. Only validate numbers you have a lawful reason to process.

**How fast is it?**
Hundreds of thousands of numbers per minute; a 100,000-row list finishes in well under a minute.

### Related tools from Plot Point Technologies

- [Bulk Email Validator - Syntax, MX, Disposable & Role Check](https://apify.com/plotpointtech/bulk-email-validator): clean email lists the same way.
- [Email & Contact Scraper - Website Emails, Phones & Socials](https://apify.com/plotpointtech/website-contact-finder): emails, phones and social links from company websites.
- [Local Business Leads Scraper - MX-Checked Emails & Phones](https://apify.com/plotpointtech/local-business-leads): businesses by category and area.

Plot Point Technologies is not affiliated with Google (libphonenumber is open source under the Apache 2.0 licence). Questions: support@plotpoint.tech.

***

If this tool saved you time, we would be grateful for a short review on this page; it helps other people find it. If something did not work as expected, please open an issue on the **Issues** tab and we will look into it quickly.

# Actor input Schema

## `phoneNumbers` (type: `array`):

One number per line, in any common format: +44 20 7946 0958, (201) 555-0123, 0049-151-23456789, 1-800-FLOWERS, with or without extensions. Numbers without a + country code are read using the default country below.

## `defaultCountry` (type: `string`):

Two-letter ISO country code (US, GB, DE, IN, BR ...) used for numbers written without a + country code, e.g. 020 7946 0958 with GB. Leave empty to accept only numbers in international format.

## `csvUrls` (type: `array`):

Optional. Links to CSV or TXT files (Google Sheets 'publish to web' CSV link, Dropbox, S3, an Apify key-value store record ...). The phone column is found from its header (phone, mobile, tel, number ...) unless you name it in 'Phone field'. Comma, semicolon, tab and pipe separators work.

## `datasetId` (type: `string`):

Optional. Validate the phone numbers in another Apify dataset (for example the output of a lead scraper). Pick one of your storages or paste its ID, and set 'Phone field' to the field that holds the number.

## `phoneField` (type: `string`):

Field name in the dataset (dot notation such as contact.phone works; list fields are expanded) or column header in the CSV files.

## `countryField` (type: `string`):

Optional. Field or column with each row's two-letter country code. When filled, it overrides the default country for that row.

## `deduplicate` (type: `boolean`):

Return each number once, even when it appears in several formats (020 7946 0958 and +442079460958 are the same number). The kept row lists the duplicate inputs and an occurrence count. You pay per returned row, so this saves money.

## `language` (type: `string`):

Language code for country, location and carrier names where libphonenumber has translations (en, de, fr, es, zh, ja ...). Falls back to English.

## `maxNumbers` (type: `integer`):

Stop after returning this many numbers (caps the cost of a run).

## Actor input object example

```json
{
  "phoneNumbers": [
    "(201) 555-0123",
    "+1 800 234 5678",
    "+44 20 7946 0958",
    "+44 7400 123456",
    "+49 151 23456789",
    "+33 6 12 34 56 78",
    "+91 81234 56789",
    "+234 802 123 4567",
    "+61 491 570 156",
    "+44 7700 900123"
  ],
  "defaultCountry": "US",
  "deduplicate": true,
  "language": "en",
  "maxNumbers": 1000000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "phoneNumbers": [
        "(201) 555-0123",
        "+1 800 234 5678",
        "+44 20 7946 0958",
        "+44 7400 123456",
        "+49 151 23456789",
        "+33 6 12 34 56 78",
        "+91 81234 56789",
        "+234 802 123 4567",
        "+61 491 570 156",
        "+44 7700 900123"
    ],
    "defaultCountry": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/phone-number-validator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "phoneNumbers": [
        "(201) 555-0123",
        "+1 800 234 5678",
        "+44 20 7946 0958",
        "+44 7400 123456",
        "+49 151 23456789",
        "+33 6 12 34 56 78",
        "+91 81234 56789",
        "+234 802 123 4567",
        "+61 491 570 156",
        "+44 7700 900123",
    ],
    "defaultCountry": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/phone-number-validator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "phoneNumbers": [
    "(201) 555-0123",
    "+1 800 234 5678",
    "+44 20 7946 0958",
    "+44 7400 123456",
    "+49 151 23456789",
    "+33 6 12 34 56 78",
    "+91 81234 56789",
    "+234 802 123 4567",
    "+61 491 570 156",
    "+44 7700 900123"
  ],
  "defaultCountry": "US"
}' |
apify call plotpointtech/phone-number-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plotpointtech/phone-number-validator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/w2WrRL9xQUFYumUqG/builds/PrEjeSw0gOihR9QtA/openapi.json
