# Phone Number Validator — Type, Carrier, Country, Timezone (`gochujang/phone-number-intelligence`) Actor

Validate and enrich phone numbers: E.164 format, country, number type (mobile/landline/VoIP/toll-free), carrier name, geocoding, timezones. Powered by Google libphonenumber. Bulk CSV. No API key. PPE $0.002/number.

- **URL**: https://apify.com/gochujang/phone-number-intelligence.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result returneds

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 Intelligence

Validate and enrich phone numbers using Google's libphonenumber library. Get number type, carrier, country, geocoding, and timezones for bulk phone lists. **No API key required.**

### Features

- **Validation**: Check if numbers are valid and possible (using Google's gold-standard libphonenumber)
- **Format normalization**: E.164, national, international, RFC3966 formats
- **Number type**: Mobile / landline / VoIP / toll-free / premium rate / shared cost
- **Carrier detection**: Mobile carrier name where available
- **Geocoding**: Human-readable description of number's location (country/region)
- **Timezone lookup**: All timezones associated with the number
- **Bulk input**: Direct list or CSV upload, up to 10,000 numbers
- **IPv4 and international support**: All country codes supported

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `numbers` | string\[] | Phone numbers to validate | — |
| `csvUrl` | string | URL to CSV with phone column | — |
| `csvColumn` | string | Column name in CSV | `phone` |
| `defaultRegion` | string | ISO 3166 country code (e.g. US, GB) | — |
| `maxNumbers` | integer | Max numbers to process | 1000 |

**Tip**: Include country codes in numbers (e.g. `+1 202 555 0100`) for best results. Use `defaultRegion` for local number formats.

### Output

| Field | Description |
|-------|-------------|
| `input` | Original input string |
| `is_valid` | Google libphonenumber validation result |
| `number_e164` | Normalized E.164 format (+12025550100) |
| `number_international` | International format (+1 202-555-0100) |
| `country_code` | ISO 3166 alpha-2 country code (US, GB, etc.) |
| `country_name` | Full country name |
| `number_type` | mobile / landline / voip / toll_free / etc. |
| `carrier_name` | Mobile carrier (where available) |
| `geocode_description` | Region description ("New York", "United Kingdom") |
| `timezones` | List of timezone names |
| `is_mobile` / `is_landline` / `is_voip` / `is_toll_free` | Boolean type flags |

### Pricing

Pay-per-event: **$0.002 per number processed**. Actor start: $0.001.

### Use Cases

- **CRM enrichment**: Validate and normalize customer phone numbers
- **Lead scoring**: Identify mobile vs. landline, detect VoIP (lower quality leads)
- **Fraud prevention**: Detect toll-free or premium rate numbers
- **E-commerce**: Validate phone at checkout without a paid API
- **Marketing**: Segment by country and number type for campaigns
- **Data cleaning**: Normalize phone formats across databases

# Actor input Schema

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

List of phone numbers to validate and enrich. Include country code (e.g. +1 202 555 0100) or use defaultRegion.

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

URL to a CSV file with phone numbers.

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

Column name containing phone numbers in the CSV.

## `defaultRegion` (type: `string`):

ISO 3166-1 alpha-2 country code (e.g. US, GB, JP) to use when numbers don't include a country code.

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

Maximum number of phone numbers to process.

## Actor input object example

```json
{
  "numbers": [
    "+1 202-555-0100",
    "+44 20 7946 0958",
    "+81-3-1234-5678"
  ],
  "csvColumn": "phone",
  "defaultRegion": "US",
  "maxNumbers": 1000
}
```

# Actor output Schema

## `dataset` (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 = {
    "numbers": [
        "+14155552671"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/phone-number-intelligence").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": ["+14155552671"] }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/phone-number-intelligence").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": [
    "+14155552671"
  ]
}' |
apify call gochujang/phone-number-intelligence --silent --output-dataset

```

## MCP server setup

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

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/VkYW2kJpnou0y636L/builds/lfLQ0lERZWpa19BOc/openapi.json
