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

Validate and format phone numbers in bulk for 240+ countries: valid or not (with reason), mobile, landline, VoIP or toll-free, country, city, original carrier, time zones, E.164 format and WhatsApp link. Extract numbers from text. Offline and private. $0.30 per 1,000 numbers.

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

## Pricing

from $0.24 / 1,000 phone numbers

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

## Phone Number Validator: Bulk Validation, Line Type, Carrier & Formatting

**Validate and format phone numbers in bulk** for **240+ countries** using Google's libphonenumber metadata: **valid or not (with the reason)**, **mobile / landline / VoIP / toll-free**, **country, city or region**, **original carrier**, **time zones**, **E.164, international and national formats**, plus a **WhatsApp link** for mobiles. Paste a list or **extract numbers from any text**. Runs offline: fast and private. **$0.30 per 1,000 numbers.**

### Try it now (one click)

1. Click **Start**. The prefilled input checks 3 numbers (US, UK, Ecuador). In our latest check (Nov 19, 2026) it returned **7 numbers in about 2 seconds**. An empty input runs a small demo too.
2. Paste numbers (any format) or text, and set the default country for numbers written without +country code.
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 numbers = **$0.035**, 1,000 numbers = **$0.305** ($0.30 per 1,000 numbers + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per number. Apify's free plan includes $5 of usage every month, enough for about 16,650 numbers. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 19, 2026 (some columns). Each number also includes the other fields listed below.*

| Input | Valid | E.164 | Line type | Country | Location | Carrier |
|---|---|---|---|---|---|---|
| +1 650-253-0000 | True | +16502530000 | fixed_line_or_mobile | United States | Mountain View, CA | — |
| +44 20 7031 3000 | True | +442070313000 | fixed_line | United Kingdom | London | — |
| +593 99 123 4567 | True | +593991234567 | mobile | Ecuador | Ecuador | Claro |
| (11) 91234-5678 | False | — | unknown | — | — | — |

### What you get

| Field group | Fields |
|---|---|
| Validation | valid, possible, invalid reason |
| Formats | E.164, international, national, country calling code |
| Where | ISO region, country name, city/region (fixed lines), time zones |
| Type | line type, mobile flag, likely SMS capable, original carrier |
| Links | WhatsApp wa.me link, tel: link |

### Why this Actor

- **Clean CRM data:** normalize every number to E.164 before importing or sending SMS.
- **Mobile vs landline** to choose SMS/WhatsApp or calls.
- **Extract numbers from text** (signatures, scraped pages) and validate in one step.
- **Very cheap:** $0.30 per 1,000 numbers, 100,000 numbers in seconds.
- **Private:** numbers are not sent to any third-party API.

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Paste numbers (any format) or text, and set the default country for numbers written without +country code.
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Mixed list (prefill):**

```json
{"phoneNumbers": ["+1 650-253-0000", "+44 20 7031 3000", "+593 99 123 4567"]}
```

**Brazilian local numbers, only valid ones:**

```json
{"phoneNumbers": ["(11) 91234-5678", "11 3333-4444"], "defaultCountry": "BR", "onlyValid": true, "language": "pt"}
```

**Extract from text:**

```json
{"text": "Call +1 (650) 253-0000 or WhatsApp +593 99 123 4567", "defaultCountry": "US"}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `phoneNumbers` | array | Phone numbers in any format, one per line: +1 650-253-0000, (11) 91234-5678, 0044 20 7031 3000. Numbers without +country code use the default country below. Leave empty for a demo list. |
| `text` | string | Free text (email signatures, web page text, CSV column). All phone numbers found are extracted and validated. |
| `defaultCountry` | string | Two-letter ISO country code used for local-format numbers, e.g. US, GB, BR, MX, EC, ES, DE. |
| `language` | string | Language code for names, e.g. en, es, pt, de, fr. |
| `onlyValid` | boolean | Drop invalid numbers from the output (they are then not charged). |
| `dedupeByE164` | boolean | Treat different spellings of the same number (e.g. "+1 650 253 0000" and "16502530000") as one row. |
| `maxNumbers` | integer | Hard cap for the whole run (cost control). |

### Output example

*Example record from a local test run (long lists shortened).*

```json
{
  "input": "+593 99 123 4567",
  "isValid": true,
  "isPossible": true,
  "e164": "+593991234567",
  "international": "+593 99 123 4567",
  "national": "099 123 4567",
  "countryCode": 593,
  "regionCode": "EC",
  "country": "Ecuador",
  "location": "Ecuador",
  "lineType": "mobile",
  "carrier": "Claro",
  "timeZones": [
    "America/Guayaquil",
    "Pacific/Galapagos"
  ],
  "isMobile": true,
  "smsCapable": true,
  "whatsappLink": "https://wa.me/593991234567",
  "telLink": "tel:+593991234567",
  "defaultRegionUsed": "US",
  "scrapedAt": "2026-11-19T23:22:23.976907+00:00",
  "isNew": false
}
```

#### Output fields

| Field | Description |
|---|---|
| `input` | Number as you entered it |
| `isValid` | True if the number is valid for its country numbering plan |
| `isPossible` | True if the length is possible |
| `invalidReason` | too_short, too_long, invalid_country_code, not_valid_for_region, not_a_number... |
| `e164` | Normalized number, e.g. +16502530000 (empty when invalid; use this for CRMs and SMS tools) |
| `international` | International format |
| `national` | National format |
| `countryCode` | Calling code, e.g. 1, 44, 593 |
| `regionCode` | ISO country code, e.g. US, GB, EC |
| `country` | Country name |
| `location` | Region or city of the number when known (fixed lines) |
| `lineType` | mobile, fixed_line, fixed_line_or_mobile, voip, toll_free, premium_rate, shared_cost... |
| `carrier` | Carrier the number range was allocated to (ported numbers are not detected) |
| `timeZones` | IANA time zones of the number |
| `isMobile` | True for mobile (or mixed) numbers |
| `smsCapable` | Likely to receive SMS (mobile ranges) |
| `whatsappLink` | wa.me link for mobile numbers |
| `telLink` | Click-to-call link |
| `defaultRegionUsed` | Default country used for parsing |
| `error` | Parse error, if any |
| `scrapedAt` | When the row was saved (UTC) |
| `isNew` | Always false |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.0003 per number** ($0.30 / 1,000). Runs that save nothing are not charged.

| Numbers saved | Approx. cost |
|---|---|
| 20 | $0.011 |
| 100 | $0.035 |
| 1,000 | $0.305 |
| 10,000 | $3.005 |

### Use cases

- Clean and normalize phone columns before a CRM import
- Split leads into mobile (SMS/WhatsApp) and landline (calls)
- Validate numbers collected by scrapers or web forms
- Add country and time zone to call lists
- Generate WhatsApp click-to-chat links

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~phone-number-validator/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"phoneNumbers": ["+1 650-253-0000", "+44 20 7031 3000", "+593 99 123 4567"]}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/phone-number-validator").call(run_input={"phoneNumbers": ["+1 650-253-0000", "+44 20 7031 3000", "+593 99 123 4567"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/phone-number-validator`).

### FAQ

**Is this a live HLR / carrier lookup?** No. Validation uses official numbering-plan metadata (libphonenumber). It tells you if a number is valid and its type, but not whether it is currently switched on or ported.

**Why is the carrier empty for some numbers?** The carrier is known only for mobile ranges in many countries. Ported numbers show the original carrier.

**What if a number has no +country code?** The default country is used (US unless you change it).

**What does an empty input do?** It checks a 7-number demo list.

**Are invalid numbers charged?** Yes, each checked number is one event, unless you turn on "Return only valid numbers".

### Limitations

- Offline validation: no live reachability, no portability (HLR) and no TCPA/DNC check.
- Fixed-line location is the area of the number range, not an address.
- Some countries share ranges for mobile and fixed lines (line type "fixed_line_or_mobile", e.g. US/Canada).

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Valida y formatea teléfonos en lote para 240+ países: válido o no, móvil o fijo, país, ciudad, operador original, zona horaria, formato E.164 y enlace de WhatsApp. $0.30 por 1.000 números.
**PT:** Valide e formate telefones em lote para 240+ países: válido ou não, celular ou fixo, país, cidade, operadora original, fuso horário, formato E.164 e link de WhatsApp. US$0,30 por 1.000 números.

# Actor input Schema

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

Phone numbers in any format, one per line: +1 650-253-0000, (11) 91234-5678, 0044 20 7031 3000. Numbers without +country code use the default country below. Leave empty for a demo list.

## `text` (type: `string`):

Free text (email signatures, web page text, CSV column). All phone numbers found are extracted and validated.

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

Two-letter ISO country code used for local-format numbers, e.g. US, GB, BR, MX, EC, ES, DE.

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

Language code for names, e.g. en, es, pt, de, fr.

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

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

## `dedupeByE164` (type: `boolean`):

Treat different spellings of the same number (e.g. "+1 650 253 0000" and "16502530000") as one row.

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

Hard cap for the whole run (cost control).

## Actor input object example

```json
{
  "phoneNumbers": [
    "+1 650-253-0000",
    "(11) 91234-5678"
  ],
  "text": "Call us at +1 (650) 253-0000 or WhatsApp +593 99 123 4567",
  "defaultCountry": "BR",
  "language": "es",
  "onlyValid": false,
  "dedupeByE164": true,
  "maxNumbers": 100000
}
```

# 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": [
        "+1 650-253-0000",
        "+44 20 7031 3000",
        "+593 99 123 4567"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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": [
        "+1 650-253-0000",
        "+44 20 7031 3000",
        "+593 99 123 4567",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/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": [
    "+1 650-253-0000",
    "+44 20 7031 3000",
    "+593 99 123 4567"
  ]
}' |
apify call datadesk-io/phone-number-validator --silent --output-dataset

```

## MCP server setup

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