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

Validate phone numbers in bulk, offline: valid/possible, E.164, international and national format, country, line type, original carrier and time zones.

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

## Pricing

from $0.80 / 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: E.164, line type and carrier, offline

Clean a list of phone numbers before you call, text or import them into a CRM. This Actor checks each number against Google's libphonenumber metadata, offline, and returns validity, E.164 and national formats, country, line type, original carrier and time zones. It never contacts the number or any carrier.

### What you get

| Field | What it tells you |
|---|---|
| `input` | The number exactly as you sent it. |
| `valid / possible` | `valid` = matches a real numbering plan; `possible` = length is plausible. |
| `e164` | Standard format for CRMs and SMS tools, e.g. `+34600123456`. |
| `international / national` | Human-readable formats. |
| `countryCode / regionCode` | Dial code and ISO country, e.g. `34` and `ES`. |
| `numberType` | `mobile`, `fixed_line`, `toll_free`, `premium_rate`, `voip` and others. |
| `carrier` | Carrier that originally owned the number range (empty in many countries). |
| `location / timezones` | Region name and time zones of the number. |
| `error` | Filled when the text cannot be parsed as a phone number. |

Example row:

```json
{"input": "600123456", "valid": true, "possible": true, "e164": "+34600123456", "international": "+34 600 12 34 56", "national": "600 12 34 56", "countryCode": 34, "regionCode": "ES", "numberType": "mobile", "carrier": "Vodafone", "location": "Spain", "timezones": ["Atlantic/Canary", "Europe/Madrid"], "error": null}
```

### How to use it in 3 steps

1. Paste the numbers, one per line, with or without the `+` prefix (max 100,000, duplicates are removed).
2. Set the default country (ISO code such as `US`, `ES`, `GB`) for numbers written without a prefix. Optionally tick `Return only valid numbers`.
3. Run it and download the results as CSV, Excel or JSON. Use `e164` as your clean key.

### Pricing

**$1 per 1,000 numbers** (1,000 numbers = $1). A number is charged once when it can be analysed, valid or not; text that cannot be parsed at all is free, and with `onlyValid` on you are not charged for invalid numbers.

### Integrations

- **Apify API**: call the Actor from any language and read the dataset as JSON, CSV or Excel.
- **Make, n8n and Zapier**: use the official Apify modules, run this Actor and map the output rows.
- **Google Sheets**: export the dataset to Sheets from the run page, or schedule runs and append the rows.
- **MCP (Claude, Cursor)**: add the Apify MCP server `https://mcp.apify.com` with `actors=kadro/bulk-phone-number-validator`. Example prompt: "Validate these phone numbers for Spain and return them in E.164."

### FAQ

**Does it tell me if the number is active?**
No. It is a format and numbering-plan check. It cannot know if a line is connected, reachable or who owns it.

**Does it call or message the numbers?**
Never. Everything runs offline against bundled metadata, so there is no contact and no data sent to third parties.

**Why is `carrier` empty?**
It is the carrier that originally owned the number range. Number portability is not reflected, and many countries (for example the US and Canada) have no carrier data.

**What is not charged?**
Values that cannot be parsed at all (`error` filled in), and invalid numbers when `onlyValid` is on.

**Where does the data come from?**
Google's libphonenumber metadata via the Apache-2.0 `phonenumbers` library.

### Limitations

- Cannot confirm a number is currently active or owned by anyone.
- `numberType` and `location` depend on the metadata published per country.
- Carrier is the original range owner, not the current one.
- Numbers without a prefix need the right `defaultCountry` or they will be judged against the wrong country.

### Other Kadro tools

- [Bulk Email Validator](https://apify.com/kadro/email-syntax-mx-validator): the same cleaning for email lists.
- [Dedup & Merge Datasets](https://apify.com/kadro/dedup-merge-datasets): merge several lists and remove duplicates.
- [CSV, Excel & JSON Converter](https://apify.com/kadro/csv-excel-json-converter): convert your list to CSV, XLSX or JSON.
- [Domain WHOIS & DNS Lookup](https://apify.com/kadro/domain-whois-dns-lookup): check the domains behind your contacts.

Found it useful? Please leave a review ⭐ — it helps a lot. Bugs or feature ideas: open an issue, I answer within 24 h.

# Actor input Schema

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

One phone number per line, with or without the international prefix (+34 600 123 456, 600123456, (415) 555-2671). Max 100,000.

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

2-letter code used for numbers written without +country prefix, e.g. US, ES, GB, MX. Leave empty if all numbers start with +.

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

Skip (and do not charge) numbers that are not valid.

## Actor input object example

```json
{
  "phoneNumbers": [
    "+34 612 345 678",
    "(415) 555-2671",
    "+44 20 7946 0958"
  ],
  "defaultCountry": "US",
  "onlyValid": false
}
```

# Actor output Schema

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

One row per result.

# 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": [
        "+34 612 345 678",
        "(415) 555-2671",
        "+44 20 7946 0958"
    ]
};

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

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

```

## MCP server setup

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