# Phone Number Validator - Bulk Check, Format & Line Type (`gosoul9/phone-number-validator`) Actor

Validate and format phone numbers in bulk for 240+ countries: valid or not, mobile or landline, E.164 format, country, carrier, location, time zone. Clean your CRM and lead lists. $1 per 1,000 numbers.

- **URL**: https://apify.com/gosoul9/phone-number-validator.md
- **Developed by:** [Gosoul Data](https://apify.com/gosoul9) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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

## Phone Number Validator - Bulk Check, Format & Line Type

Clean your phone lists in seconds. Paste thousands of numbers in any format and get back, for each one: **valid or not, mobile or landline, clean international format (E.164), country, carrier, location and time zone.**

Works for **240+ countries**, based on Google's libphonenumber database (the same one used by Android). Fast, cheap and private: your numbers are never sent to a third-party service.

![Phone Number Validator example output: validity, E.164 format, country, line type and location](https://api.apify.com/v2/key-value-stores/JJdNTW6mHqsclEqNv/records/phone-validator-output)

### What you get

| Field | Example |
|---|---|
| `input` | `(650) 253-0000` (what you sent) |
| `valid`, `possible` | `true` |
| `type` | `mobile`, `fixed_line`, `fixed_line_or_mobile`, `toll_free`, `voip`, `premium_rate`... |
| `e164` | `+33612345678` (perfect for CRMs, SMS and WhatsApp tools) |
| `international`, `national` | `+33 6 12 34 56 78`, `06 12 34 56 78` |
| `country`, `countryCode` | `FR`, `33` |
| `carrier` | Original mobile carrier when known |
| `location` | City / region for landlines |
| `timezones` | `["Europe/Paris"]` (call at the right time) |
| `error` | Why a number is invalid (too short, wrong prefix...) |

### Why use this Actor

- **Any format in**: `+33 6 12 34 56 78`, `0612345678`, `(415) 555-2671`, `+44 20 7946 0958`, with dots, dashes, spaces or brackets.
- **One clean format out**: E.164 is what CRMs, dialers, SMS and WhatsApp APIs expect.
- **Mobile vs landline**: keep only mobiles for SMS / WhatsApp campaigns.
- **Duplicates removed**: the same number written in two formats is returned once.
- **Very fast**: 10,000 numbers in a few seconds.
- **Private**: validation runs inside the Actor; no number is sent to an external API.

### Step-by-step tutorial

1. **Paste your numbers**, one per line (copy a column from Excel or Google Sheets).
2. **Set the default country** for numbers written without `+` (for example `FR` if your list has `06...` numbers, `US` for `(415)...`).
3. **Language** for carrier and location names (`en`, `fr`, `de`...).
4. Tick **Return only valid numbers** if you want a ready-to-use list.
5. **Start**, then **export** to Excel / CSV or send results to your CRM.

#### Input example

```json
{
  "phoneNumbers": ["+33 6 12 34 56 78", "(650) 253-0000", "020 7946 0958"],
  "defaultCountry": "GB",
  "language": "en",
  "onlyValid": false,
  "removeDuplicates": true
}
```

#### Output example

```json
{
  "input": "+33 1 40 20 50 50",
  "valid": true,
  "possible": true,
  "e164": "+33140205050",
  "international": "+33 1 40 20 50 50",
  "national": "01 40 20 50 50",
  "countryCode": 33,
  "country": "FR",
  "type": "fixed_line",
  "location": "Paris",
  "error": null
}
```

### Use cases

- **Clean lead lists** before cold calling or SMS campaigns: remove invalid numbers, keep mobiles.
- **Normalize CRM data** (HubSpot, Salesforce, Pipedrive, Zoho) to E.164 so duplicates can be merged.
- **Prepare WhatsApp / SMS campaigns**: only mobile numbers can receive them.
- **Call centers**: know the time zone before calling, avoid calling at night.
- **Sign-up and checkout forms**: validate numbers collected on your website in batch.
- **Scraped data**: validate the phones extracted with our [Company Website Finder](https://apify.com/gosoul9/company-website-finder) or other scrapers.

### Integrations

- **Google Sheets**: validate a column of numbers and write the clean format back.
- **Make, Zapier, n8n**: validate every new contact automatically before it reaches your CRM.
- **API and SDKs** (Python, JavaScript), **webhooks** and **schedules**.
- **AI agents**: use it from Claude, ChatGPT or Cursor with the Apify MCP server.

### Tips

- **Mixed countries in one list?** Write international numbers with `+`; the default country is only used for numbers without it.
- **US / Canada** numbers are often `fixed_line_or_mobile`: North American numbering does not distinguish mobiles from landlines.
- Use `e164` as the unique key when merging lists.

### Pricing

**$1 per 1,000 numbers.** Fast: 10,000 numbers in a few seconds. Tick *Return only valid numbers* to drop invalid ones: dropped numbers are not charged.

### FAQ

**Does it call the number or check that it is switched on?**
No. Validation checks that the number **matches the numbering plan** of its country (length, prefixes, line type). It cannot tell if a valid number is currently in service.

**Why is the carrier empty?**
Carrier data exists mainly for mobile numbers, and only in some countries. Numbers ported to another operator keep the original carrier.

**Which countries are supported?**
More than 240 countries and territories, the full libphonenumber database.

**Is my data safe?**
Yes. Numbers are processed inside the Actor and are not sent to any third party.

### Other Actors you may like

- [Company Website Finder](https://apify.com/gosoul9/company-website-finder): company name in, official website out.
- [Company Email Finder](https://apify.com/gosoul9/company-email-finder): find and guess professional emails of a company.
- [Website Contact Scraper](https://apify.com/gosoul9/website-contact-scraper): emails, phones and social links from any website.
- [Website Technology Detector](https://apify.com/gosoul9/website-technology-detector): the tech stack of any website.
- [French Company Search](https://apify.com/gosoul9/french-company-search): SIREN/SIRET, address and data of French companies.

### Support

Need a feature? Open an issue in the **Issues** tab.

# Actor input Schema

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

One number per line, in any format: +33 6 12 34 56 78, (415) 555-2671, 020 7946 0958...

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

Two-letter country code used for numbers written without +country prefix (e.g. GB, US, FR, DE).

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

Two-letter language code (en, fr, de, es...).

## `onlyValid` (type: `boolean`):

Drop invalid numbers from the results (they are not charged).

## `removeDuplicates` (type: `boolean`):

The same number written in different formats is returned only once.

## Actor input object example

```json
{
  "phoneNumbers": [
    "+33 6 12 34 56 78",
    "+1 650-253-0000",
    "020 7946 0958"
  ],
  "defaultCountry": "GB",
  "language": "en",
  "onlyValid": false,
  "removeDuplicates": true
}
```

# Actor output Schema

## `results` (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": [
        "+33 6 12 34 56 78",
        "+1 650-253-0000",
        "020 7946 0958"
    ],
    "defaultCountry": "GB"
};

// Run the Actor and wait for it to finish
const run = await client.actor("gosoul9/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": [
        "+33 6 12 34 56 78",
        "+1 650-253-0000",
        "020 7946 0958",
    ],
    "defaultCountry": "GB",
}

# Run the Actor and wait for it to finish
run = client.actor("gosoul9/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": [
    "+33 6 12 34 56 78",
    "+1 650-253-0000",
    "020 7946 0958"
  ],
  "defaultCountry": "GB"
}' |
apify call gosoul9/phone-number-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gosoul9/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/xOo2fHBgOO7bp3ROA/builds/YlSCCa7mbrHwVzya0/openapi.json
