# Phone Number Validator: E.164, Type, Carrier (Bulk) (`rawtojson/phone-number-validator`) Actor

Bulk phone number validator and normaliser. E.164, country, line type (mobile, landline, VoIP), carrier, time zones. Offline libphonenumber data: fast, cheap, dedupes. Does not check if a number is active.

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

## Pricing

from $0.70 / 1,000 phone number validated

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/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: E.164, line type, carrier (bulk, offline)

**Phone number validator and normaliser** for lead lists, CRMs and signup data. Paste numbers or give a CSV/text URL and get one clean row per number: `valid`, `reason`, `e164`, `type` (mobile, fixed line, VoIP, toll free...), `country`, national and international format, `location`, `carrier` and `timezones`. It runs on Google's libphonenumber metadata inside the Actor, so there are no external calls, it is fast and it costs very little.

### What it does NOT do (read this first)

- **It does not tell you whether a number is active, reachable or owned by a person.** "Valid" means the number has a correct length and belongs to a numbering range that exists for that country. A valid number can still be disconnected.
- **It does not check WhatsApp, Telegram, Signal or any messaging app.** That would break their terms of service and we do not do it.
- **It does not do live carrier lookups or number portability (HLR).** `carrier` is the operator the number range was first assigned to; if the person ported the number, it can be outdated. Carrier data exists mainly for mobile ranges in some countries and is empty for many others (e.g. the US).
- It does not identify the owner or return any personal data. It only analyses the digits you give it.
- Line type for some countries is approximate: for example Mexico or the US often return `FIXED_LINE_OR_MOBILE` because the numbering plan does not separate them.

If you need to know whether a number is live, you need a paid HLR/carrier-lookup service. Use this Actor first to remove the garbage cheaply and avoid paying for lookups on invalid numbers.

### Who is it for

- Sales and marketing teams cleaning scraped or purchased lead lists before dialling or sending SMS.
- Developers normalising phone columns to E.164 before importing into a CRM, Twilio or a database.
- Data teams deduplicating contact lists (`+34 612 345 678` and `612345678` count as one).

### Features

| Feature | Details |
|---|---|
| Input | list of numbers, and/or URL of a CSV or text file (with optional column name) |
| Default country | numbers without `+` are parsed as that country (ISO code) |
| Output | `valid`, `reason`, `e164`, `type`, `country`, `nationalFormat`, `internationalFormat`, `location`, `carrier`, `timezones`, `checkedAt` |
| Reasons for invalid | `not_a_number`, `missing_country_code`, `too_short`, `too_long`, `invalid_length`, `invalid_number`, `invalid_country`, `empty` |
| Dedupe | by normalised E.164 (on by default) |
| Only valid mode | skips invalid numbers, which are then not charged |
| Speed | thousands of numbers per second; no network needed |

### Price (pay per event)

| Event | Price |
|---|---|
| Number validated | **0.70 USD per 1,000 numbers** (0.0007 each) |
| Actor start | 0.00005 USD |

Store comparison (checked 2026-11-23 through the Apify Store API):

| Actor | Price per 1,000 | What it promises |
|---|---|---|
| `devscrapper/whatsapp-number-validator` (467 users/month, 44 % failed runs in our market study) | see its page | checks WhatsApp registration, which goes against the messaging app's terms |
| `zhorex/phone-number-validator` | 2.00 USD | libphonenumber: validity, country, timezone, type, formats |
| `taroyamada/phone-number-validator` | 2.00 USD | offline format validation |
| `memo23/phone-enrichment` | 1.00 USD (+ 20 USD per 1,000 US owner matches) | offline validation plus US reverse lookup |
| `scrapersdelight/phone-number-validator-scraper` | 1.00 USD | validation plus US/Canada carrier data |
| `automation-lab/phone-number-validator` | 1.15 USD (free plan) | libphonenumber bulk validation |
| `checkthatphone/phone-validator` (134 users/month) | 10.00 USD | live US/Canada carrier lookup (a different, paid-data product) |

This Actor is the cheapest offline option and adds an "only valid" mode, deduplication, CSV/URL input and explicit invalid reasons. If you need live carrier data for US numbers, the live-lookup Actors above do something this one does not.

### Input example

```json
{
  "numbers": ["+34 612 345 678", "(415) 555-2671", "+44 20 7946 0958", "600 11 22"],
  "defaultCountry": "ES",
  "onlyValid": false,
  "deduplicate": true
}
```

CSV example: `{"csvUrl": "https://example.com/leads.csv", "csvColumn": "phone", "defaultCountry": "US"}`

### Output example

```json
{
  "input": "+34 612 345 678",
  "valid": true,
  "reason": null,
  "e164": "+34612345678",
  "type": "MOBILE",
  "country": "ES",
  "countryCallingCode": "34",
  "nationalFormat": "612 34 56 78",
  "internationalFormat": "+34 612 34 56 78",
  "location": null,
  "carrier": "Syma",
  "timezones": ["Europe/Madrid"],
  "checkedAt": "2026-11-23T16:00:00.000Z"
}
```

Invalid example: `{"input": "600 11 22", "valid": false, "reason": "invalid_length", "e164": null, ...}`

### Schedule and integrations

- Run it on an Apify Schedule, pointing `csvUrl` to a file that your CRM export refreshes.
- Send results to Google Sheets with the Apify Google Sheets integration, or call a webhook on `ACTOR.RUN.SUCCEEDED` and read the dataset with `?format=csv&clean=true`.
- Use `onlyValid: true` to get a ready-to-import list.

### FAQ

**Why is `carrier` null?** The offline data only covers some number ranges. It is never guessed.

**Why do I get `missing_country_code`?** The number has no `+` prefix and you did not set `defaultCountry`.

**Is a "valid" number safe to call?** Not necessarily. Respect local do-not-call rules and consent laws.

### Legal notice

Phone numbers can be personal data. You are responsible for having a lawful basis (GDPR/CCPA/TCPA) for the lists you process. This Actor only analyses the numbers you provide; it does not collect data about people and makes no calls to third parties.

### En español

Validador y normalizador de teléfonos en bloque: formato E.164, país, tipo de línea (móvil, fijo, VoIP), operador original, zonas horarias y motivo de rechazo. Usa metadatos offline de libphonenumber: rápido y barato. **No comprueba si el número está activo** ni si tiene WhatsApp. Para números sin prefijo `+` indica el país por defecto (por ejemplo `ES`).

# Actor input Schema

## `numbers` (type: `array`):

List of phone numbers to validate, in any format (with or without +, spaces, dashes or brackets).

## `csvUrl` (type: `string`):

Optional. Public URL of a CSV or plain-text file with numbers (one per line, or a CSV column). They are added to the list above.

## `csvColumn` (type: `string`):

Optional. Header name (or 1-based position) of the column with the phone numbers. If empty, the first column is used.

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

Two-letter ISO country code (US, ES, GB, DE...) used for numbers written without a + prefix. Leave empty if all your numbers already have the international prefix.

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

Return only valid numbers. Invalid ones are skipped and not charged.

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

Keep each number once, comparing the normalised E.164 form (so '+34 612 345 678' and '612345678' count as one).

## `includeDetails` (type: `boolean`):

Add the original carrier, geographic area and time zones from offline libphonenumber data. Carrier is the one the range was first assigned to, not necessarily the current one.

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

Safety cap on how many input numbers are processed.

## Actor input object example

```json
{
  "numbers": [
    "+34 612 345 678",
    "(415) 555-2671",
    "+44 20 7946 0958",
    "600 11 22",
    "+49 30 123456"
  ],
  "defaultCountry": "US",
  "onlyValid": false,
  "deduplicate": true,
  "includeDetails": true,
  "maxNumbers": 100000
}
```

# Actor output Schema

## `numbers` (type: `string`):

Validation result per number.

# 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 = {
    "numbers": [
        "+34 612 345 678",
        "(415) 555-2671",
        "+44 20 7946 0958",
        "600 11 22",
        "+49 30 123456"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rawtojson/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 = { "numbers": [
        "+34 612 345 678",
        "(415) 555-2671",
        "+44 20 7946 0958",
        "600 11 22",
        "+49 30 123456",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rawtojson/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 '{
  "numbers": [
    "+34 612 345 678",
    "(415) 555-2671",
    "+44 20 7946 0958",
    "600 11 22",
    "+49 30 123456"
  ]
}' |
apify call rawtojson/phone-number-validator --silent --output-dataset

```

## MCP server setup

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