# Phone Number Validator (`snappytools/phone-number-validator`) Actor

Give it a phone number and it tells you whether the number is valid, returns it in E.164 format (like +12024561111), and adds the country, calling code and line type (mobile, fixed line, toll free and so on). You paste a list of numbers under Phone numbers. A bad value never stops the run.

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

## Pricing

$1.00 / 1,000 results

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 phone number checker with E.164 formatting

Paste a list of phone numbers and this phone number validator tells you which are valid, returns each in E.164 format (like `+12024561111`), and adds the country, calling code and line type.

You paste numbers under **Phone numbers**. You get back one row per number, in the same order, with `status`, `e164`, `international`, `national`, `country`, `callingCode`, `type` and a `reason` when a number fails. A bad value never stops the run. It comes back marked so you can see which ones to fix.

Run it on a schedule, or call it from your own workflow through the Apify API.

### Why this one

- **Exact, not guessed.** Every check uses libphonenumber-js, the JavaScript port of Google's libphonenumber rules.
- **One row per input.** You get as many rows as you sent, in input order, so matching results back to your sheet is simple.
- **Failures are explained.** A bad number comes back with a `reason` instead of a silent blank.
- **Works for any country.** Numbers with a leading + are read on their own, and the rest use your **Default country**.
- **Private.** Numbers are checked inside the run with the bundled library and are not sent to a lookup service.
- **Cheap.** $1.00 per 1,000 results, and runs with no results cost nothing.

### Quick start

```json
{
  "defaultCountry": "US",
  "maxItems": 5,
  "phoneNumbers": ["+1 202-456-1111", "+44 20 7219 3000", "+61 2 6277 7111"]
}
```

This returns one row per number, each with its E.164 form, country and line type. In a test run on 15 Nov 2026, it returned 3 results.

### What you can use it for

| Who | What for |
| --- | --- |
| CRM admins | Clean imported contact lists and store every number in one E.164 format |
| Sales ops teams | Drop invalid numbers before loading a dialler campaign |
| SMS and messaging teams | Keep only `MOBILE` numbers before sending texts |
| AI agents | Check a number a user typed before saving it or calling an API |
| Data engineers | Normalise phone columns before deduplicating records |

### How to use it

1. Click **Try for free**.
2. Under **Phone numbers**, add one number per item, e.g. `+1 202-456-1111`.
3. Set **Default country** to the two-letter code for numbers written without +, e.g. `US` or `AU`.
4. Optionally lower **Max numbers** to cap the run, e.g. `100`.
5. Click **Start**.

To check a list regularly, set it up under **Schedules**.

### What data you get

Each input number gives one row with these fields.

| Field | What it is | Example |
| --- | --- | --- |
| `id` | The E.164 number when valid | `+12024561111` |
| `input` | The value you sent, unchanged | `+1 202-456-1111` |
| `status` | Result of the check: `valid`, `invalid` or `error` | `valid` |
| `reason` | Plain-English explanation, empty when valid | `null` |
| `e164` | Number in E.164 format | `+12024561111` |
| `international` | International display format | `+1 202 456 1111` |
| `national` | National display format | `(202) 456-1111` |
| `country` | Two-letter ISO country code | `US` |
| `callingCode` | Country calling code | `1` |
| `type` | Line type from the numbering plan | `FIXED_LINE` |
| `isPossible` | Whether the length fits the country's plan | `true` |
| `isValid` | Whether the number matches a real numbering range | `true` |
| `checkedAt` | When the check ran | `2026-11-15T09:56:50.954Z` |
| `source` | Library used, with a link | `{"name":"libphonenumber-js","url":"https://github.com/catamphetamine/libphonenumber-js"}` |

### Pricing

| Event | Price |
| --- | --- |
| Result (one per number written to the dataset) | $0.001 |

There is no start fee. Runs with no results cost nothing.

| Run | Cost |
| --- | --- |
| 100 numbers | $0.10 |
| 1,000 numbers | $1.00 |
| 10,000 numbers | $10.00 |

### Good to know

- **Limits:** up to 10,000 numbers per run. The default is 1,000. Extra items are ignored.
- **Where the data comes from:** the libphonenumber-js numbering metadata. No website is scraped.
- **What is not included:** it doesn't tell you whether a number is switched on, who owns it, or which carrier it is on. A valid number fits a real numbering range but may still be unassigned.
- **Line type:** some countries, including the US, don't separate mobile and fixed lines, so you get `FIXED_LINE_OR_MOBILE`.
- **Freshness:** numbering rules are as current as the bundled library version.
- **Not affiliated:** this tool isn't affiliated with or endorsed by Google or the libphonenumber-js maintainers.

### FAQ

**How do I validate a list of phone numbers in bulk?** Paste them under **Phone numbers** and click **Start**. You get one row per number with a `status` of `valid`, `invalid` or `error`.

**How do I convert phone numbers to E.164 format?** Run them through this tool and use the `e164` field. Numbers without a leading + are read using **Default country**.

**What happens with text that isn't a number?** You get a row with a `reason`, and the rest of the run carries on.

**Will it call the numbers?** No. Nobody is contacted.

### Getting the data out

Download results as Excel, CSV or JSON from the Output tab. Send them to Google Sheets, Slack, Zapier, Make or webhooks from the **Integrations** tab. Every run is also available through the Apify API, and you can run it regularly from **Schedules**.

### Questions or problems

Open an issue on the **Issues** tab and include the run link. I reply within one business day.

### Related tools

- [Bulk Email Syntax and MX Validator](https://apify.com/snappytools/email-syntax-mx-validator): checks email syntax and mail servers in bulk
- [TED Europa Tender Scraper](https://apify.com/snappytools/ted-europa-tender-scraper): exports tenders from TED Europa
- [Companies House Company Scraper](https://apify.com/snappytools/companies-house-uk-scraper): exports UK company records from Companies House

# Actor input Schema

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

List of phone numbers to check, one per item. International format with a leading + works for any country, e.g. "+1 202-456-1111" or "+44 20 7219 3000". Numbers without + are read using the Default country.

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

Two-letter ISO country code used for numbers written without a leading +, e.g. "US" reads "(202) 456-1111" as a US number.

## `maxItems` (type: `integer`):

Maximum number of phone numbers processed in one run, e.g. 1000. Extra items beyond this are ignored. Hard cap is 10000.

## Actor input object example

```json
{
  "phoneNumbers": [
    "+1 202-456-1111",
    "+44 20 7219 3000",
    "+61 2 6277 7111"
  ],
  "defaultCountry": "US",
  "maxItems": 1000
}
```

# 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 202-456-1111",
        "+44 20 7219 3000",
        "+61 2 6277 7111"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("snappytools/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 202-456-1111",
        "+44 20 7219 3000",
        "+61 2 6277 7111",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("snappytools/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 202-456-1111",
    "+44 20 7219 3000",
    "+61 2 6277 7111"
  ]
}' |
apify call snappytools/phone-number-validator --silent --output-dataset

```

## MCP server setup

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