# Bulk Phone Number Normalizer — E.164, Country, Line Type (`nezucloud/bulk-phone-number-normalizer`) Actor

Clean messy phone lists in seconds. Standardize to E.164, international and national formats, with country, line type, duplicates and Excel damage flagged. $0.80 per 1,000 numbers. Offline, instant.

- **URL**: https://apify.com/nezucloud/bulk-phone-number-normalizer.md
- **Developed by:** [NEZU SAS](https://apify.com/nezucloud) (community)
- **Categories:** Developer tools, Lead generation, Integrations
- **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 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

## Bulk Phone Number Normalizer — E.164, Country, Line Type

**Messy phone lists? Clean them in seconds.** Paste your numbers (or point to a CSV) and get every one in a clean, importable format: **E.164, international and national**, plus its **country and line type** — with duplicates and spreadsheet damage flagged. No lookups, no scraping, no personal data collected by us (your numbers stay in your own Apify storage under your retention settings): pure, instant offline validation.

![Phone normalizer results: E.164, country and the reason for every rejected number](https://api.apify.com/v2/key-value-stores/E38MAT6DtK9ddzgPL/records/phone-results.png)

| What you have | What you get |
|---|---|
| `+593 98 765 4321` | `+593987654321` ✅ mobile · Ecuador |
| `0034 612 345 678 x12` | `+34612345678` ✅ mobile · Spain · extension `12` kept apart |
| `+5930987654321` (extra trunk zero) | `+593987654321` ✅ normalized |
| `(202) 555-0123` with default country `US` | `+12025550123` ✅ US number |
| `5.93987E+11` (rounded by Excel) | ❌ clearly flagged: the digits are gone, export the column as text |
| `987654321` with no country | ⚠️ `missing_country_code` — set a default country |

### Why you'll like it

- ⏱️ **Fast:** about 100,000 numbers in 15 seconds in our tests. A typical list finishes in 2–3 seconds.
- 📞 **Every format you need:** E.164 (the one to store and import), international and national, RFC 3966.
- 🌍 **Country and line type:** mobile, fixed line, toll free, premium rate, VoIP and more, for numbers from around the world.
- 🧹 **Understands messy input:** spaces, dashes, dots, parentheses, a leading `00`, extensions (`x123`, `ext. 123`), a stray trunk zero after the country code, and spreadsheet scientific notation.
- 🔁 **Finds duplicates** even when the same number is written five different ways.
- 🧾 **Ready to import:** a `normalized_numbers.csv` with the final E.164 number for each row. The E.164 column starts with `+`: in Excel use Data › From Text/CSV and set the column to Text so it is not converted.
- 🔒 **Private by design:** your numbers are processed inside the run. The only network access is downloading your CSV if you give a `fileUrl`.

### What it does for each number

1. **Cleans** spaces, punctuation, quotes, trailing `.0` and Excel scientific notation; splits extensions.
2. **Parses** it using your **default country** when the number has no country code.
3. **Validates** length and the allocated numbering plan of the country.
4. **Formats** it: E.164, international, national, RFC 3966.
5. **Describes** it: country calling code, region code, line type, geographic location and time zones.
6. **Suggests fixes** with an honest confidence level (a missing `+`, an extra trunk zero).
7. **Finds duplicates** by the normalized number.

### Perfect for

- 📇 Cleaning CRM and lead lists before import or outreach
- 🛒 Standardizing customer and supplier phone columns in store or ERP exports
- 📲 Preparing numbers in the international format that messaging and calling tools expect
- 🔗 Adding a phone check to any automation (Make, Zapier, n8n, Google Sheets, your own code)

### Input

| Field | What it is |
|---|---|
| `numbers` | List of phone numbers, exactly as they come from your sheet. |
| `defaultCountry` | Two-letter country code for numbers without a country code (for example `EC`, `US`, `ES`, `GB`, `MX`). |
| `fileUrl` | Optional public https URL of a CSV. The phone column is detected automatically (phone, tel, mobile, celular, whatsapp…). |
| `column` | Optional exact header of the phone column. |
| `includeOriginalCarrier` | Add the carrier that originally received the number range (see the note on portability below). |
| `includeSuggestions` | Add the list of suggested fixes (default on). |
| `onlyProblems` | Return only invalid, empty and duplicated numbers. |
| `maxNumbers` | Safety limit (default 100,000, up to 1,000,000). |

Example:

```json
{ "numbers": ["+593 98 765 4321", "0034 612 345 678 x12", "987654321"], "defaultCountry": "EC" }
```

### Output

One dataset row per number, plus two records in the key-value store: `SUMMARY` (counts of valid, fixable, invalid, empty and duplicated numbers, by line type and country) and `normalized_numbers.csv`.

A row looks like this:

```json
{
  "row": 1,
  "input": "+593 98 765 4321",
  "status": "valid",
  "e164": "+593987654321",
  "international": "+593 98 765 4321",
  "national": "098 765 4321",
  "countryCallingCode": 593,
  "regionCode": "EC",
  "type": "mobile",
  "issues": []
}
```

Main fields: `status` (`valid`, `corrected`, `needs_review`, `invalid`, `empty`), `e164`, `international`, `national`, `countryCallingCode`, `regionCode`, `type`, `location`, `timezones`, `extension`, `issues`, `bestFix`, `suggestions`, `notes`.

### Use it from code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("nezucloud/bulk-phone-number-normalizer").call(
    run_input={"numbers": ["+593 98 765 4321", "0034 612 345 678"], "defaultCountry": "EC"}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["input"], row["status"], row["e164"])
```

Every field is documented in the Actor's output schema, so AI agents (through the Apify API or MCP server) can use the results without guessing.

### Pricing

**Pay per event: $0.80 per 1,000 numbers checked** ($0.0008 per number), plus a tiny start fee of $0.00005 per run (Apify covers the compute of the first 5 seconds).

- Empty rows (including `-`, `N/A`, `#N/A`) are free. Every other number checked is charged, even when `onlyProblems` hides the valid ones from the dataset. A run that stops at your maximum cost keeps only what was charged. The small start fee applies to every run.
- 10,000 numbers = $8. 100 numbers = $0.08.
- You can set a maximum cost per run; the Actor stops cleanly when it is reached and marks the result as `partial`.

### FAQ

**How do I convert phone numbers to E.164 in bulk?** Paste them in `numbers` (or give a CSV in `fileUrl`) and set `defaultCountry` for numbers written without a country code. Every row comes back with its `e164` value.

**Does it tell me if a number is active or who owns it?** No. It checks format, length and the numbering plan only. It never contacts operators or messaging apps.

**Why is the carrier "original"?** Carrier names come from the number-range allocation. Because of number portability, a number may have moved to another carrier, so treat it as a hint.

**Excel changed my numbers to 5.9E+11. Can you recover them?** If Excel kept all the digits, yes. If it rounded them, the digits are gone: export the column as text and run again.

**Which countries are supported?** All the countries and territories in the public numbering-plan data the Actor uses (more than 240 regions).

**Is my data stored or sent anywhere?** Numbers are processed inside the run. The only network access is downloading your CSV when you set `fileUrl`.

### Limits

Format, length and numbering-plan validation only. Numbering plans change; the underlying open-source data is updated regularly and may lag behind very recent allocations.

### Support

Found a bug or need another format? Open an issue on the Actor page: reports are answered quickly.

# Actor input Schema

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

Numbers exactly as they come from your sheet: with spaces, dashes, parentheses, a leading 00, an extension (x123) or Excel scientific notation.

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

Two-letter country code used for numbers written without a country code (for example EC, US, ES, GB, MX). Numbers that start with + or 00 don't need it.

## `fileUrl` (type: `string`):

Public https URL of a CSV file. The phone column is detected automatically (names like phone, tel, mobile, celular, whatsapp) or you can set it below.

## `column` (type: `string`):

Exact header of the column that holds the phone numbers. Leave empty to auto-detect.

## `includeOriginalCarrier` (type: `boolean`):

Adds the carrier that originally received that number range. It does NOT reflect number portability, so it can be outdated for ported numbers.

## `includeSuggestions` (type: `boolean`):

For invalid numbers, add the list of suggested corrections with their confidence.

## `onlyProblems` (type: `boolean`):

Skip numbers that are valid and unique; return invalid, empty and duplicated ones. The summary still counts everything.

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

Safety limit on how many numbers are processed in one run.

## Actor input object example

```json
{
  "numbers": [
    "+593 98 765 4321",
    "(202) 555-0123",
    "+34 612 345 678",
    "0034 612 345 678 x12",
    "+5930987654321",
    "5.93987E+11",
    "987654321",
    "555-1212"
  ],
  "defaultCountry": "US",
  "includeOriginalCarrier": false,
  "includeSuggestions": true,
  "onlyProblems": false,
  "maxNumbers": 100000
}
```

# Actor output Schema

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

One row per number: status, E.164, formats, country, line type and issues.

## `summary` (type: `string`):

Counts of valid, fixable, invalid, empty and duplicated numbers, by line type and country.

## `normalizedNumbersCsv` (type: `string`):

CSV with row, input, status and the final E.164 number, ready to import.

# 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": [
        "+593 98 765 4321",
        "(202) 555-0123",
        "+34 612 345 678",
        "0034 612 345 678 x12",
        "+5930987654321",
        "5.93987E+11",
        "987654321",
        "555-1212"
    ],
    "defaultCountry": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nezucloud/bulk-phone-number-normalizer").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": [
        "+593 98 765 4321",
        "(202) 555-0123",
        "+34 612 345 678",
        "0034 612 345 678 x12",
        "+5930987654321",
        "5.93987E+11",
        "987654321",
        "555-1212",
    ],
    "defaultCountry": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("nezucloud/bulk-phone-number-normalizer").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": [
    "+593 98 765 4321",
    "(202) 555-0123",
    "+34 612 345 678",
    "0034 612 345 678 x12",
    "+5930987654321",
    "5.93987E+11",
    "987654321",
    "555-1212"
  ],
  "defaultCountry": "US"
}' |
apify call nezucloud/bulk-phone-number-normalizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nezucloud/bulk-phone-number-normalizer"
        }
    }
}
```

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/yycEE9eSxtVStdvhx/builds/xRntwHxPopNyQdunV/openapi.json
