# Phone Number Validator & Enrichment: E.164, Carrier & Country (`rod_analytics/phone-number-validator`) Actor

Fast bulk phone number validator, formatter and line-type enrichment API. Validate numbers, convert to E.164/international/national formats, detect country, calling code and line type (mobile, fixed line, VoIP, toll-free). $0.0005 per validated number; unparseable inputs are free.

- **URL**: https://apify.com/rod_analytics/phone-number-validator.md
- **Developed by:** [Rod Services](https://apify.com/rod_analytics) (community)
- **Categories:** Lead generation, Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 phone numbers validated

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/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, formatter and line-type enrichment API powered by Google's `libphonenumber` rules.**
**No carrier API lag or rate limits.** Validate international or local numbers, format to E.164/RFC3966, and detect country, calling code and line type for `$0.0005` per number.

### What you get

- **Validity checks** (`isValid`, `isPossible`, `status`: `valid`, `possible`, or `invalid`).
- **Standard formatting**: `e164`, `international`, `national`, and clickable `rfc3966` URI.
- **Region metadata**: `country` ISO 3166-1 code, `countryName`, and `callingCode`.
- **Line type detection** via full `libphonenumber` metadata: `MOBILE`, `FIXED_LINE`, `TOLL_FREE`, `VOIP`, `PREMIUM_RATE`, and more.
- **Unparseable numbers are free** (`status: "invalid"` incurs no event fee).

### Quick start

1. Paste numbers into **Phone numbers** (e.g. `"+1 650-253-0000"`).
2. Set **Default country code** (e.g. `US`, `GB`, `DE`, `LT`) if any inputs lack a `+` country prefix.
3. Click **Start**.

From the Apify API:

```bash
curl -X POST "https://api.apify.com/v2/acts/rod_analytics~phone-number-validator/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"phoneNumbers": ["+1 650-253-0000", "+44 20 7946 0958", "+370 612 34567"], "defaultCountry": "US"}'
```

### Input

| Field | Default | Description |
| --- | --- | --- |
| `phoneNumbers` | 3 samples | Phone strings in international or local format. |
| `defaultCountry` | `"US"` | Two-letter ISO 3166-1 code used when numbers omit `+`. |
| `deduplicate` | `true` | Skip duplicate inputs within the same run. |

### Output sample

```json
{
  "input": "+370 612 34567",
  "status": "valid",
  "isValid": true,
  "isPossible": true,
  "e164": "+37061234567",
  "international": "+370 612 34567",
  "national": "(612) 34567",
  "rfc3966": "tel:+370-612-34567",
  "country": "LT",
  "countryName": "Lithuania",
  "callingCode": "+370",
  "nationalNumber": "61234567",
  "lineType": "MOBILE",
  "error": null
}
```

### Pricing

Pay per event. Unparseable/invalid inputs (`status: "invalid"`) are free.

| Event | Free | Bronze | Silver | Gold / Platinum / Diamond |
| --- | --- | --- | --- | --- |
| Validated phone number (`phone-validated`) | $0.0005 | $0.00045 | $0.0004 | $0.00035 |
| Actor start (per GB, min 1) | $0.001 | $0.001 | $0.001 | $0.001 |

1,000 numbers cost `$0.50` on Free and `$0.35` on Gold.

### License & compliance

Uses `libphonenumber-js` (MIT) and offline numbering metadata only. No external lookups or telecom carrier pings are performed.

### Related Actors

More tools from the same developer, built with pay-per-event pricing and clean JSON output.

| Actor | What it does |
| --- | --- |
| [Website to Markdown Crawler: Clean Text for LLM & RAG](https://apify.com/rod_analytics/website-to-markdown) | Crawl websites into clean Markdown, RAG chunks and llms.txt |
| [PDF to Text & Markdown Extractor with OCR, Tables & RAG](https://apify.com/rod_analytics/doc-to-markdown) | Extract PDF, Word, Excel and PowerPoint files to Markdown and text |
| [Audio Transcriber: Transcribe Audio, Video & Podcasts](https://apify.com/rod_analytics/media-transcriber) | Whisper transcripts, SRT/VTT subtitles and AI summaries from audio and podcasts |
| [Image OCR API: Image to Text, Lines & Bounding Boxes](https://apify.com/rod_analytics/image-ocr-api) | Extract text, confidence and bounding boxes from images in 35+ languages |
| [Bulk LLM Runner: AI Prompt for Every Row, JSON Output, No Key](https://apify.com/rod_analytics/bulk-llm-runner) | Run one LLM prompt per dataset or JSON row with structured output |
| [SEO Audit Tool: Site Crawler, Broken Links & Score](https://apify.com/rod_analytics/seo-site-audit) | Crawl sites for broken links, metadata gaps and on-page SEO issues |
| [PageSpeed Insights & Lighthouse Bulk Checker, No API Key](https://apify.com/rod_analytics/lighthouse-audit) | Core Web Vitals, Lighthouse scores, regression tracking and client reports |
| [Tech Stack Detector: Wappalyzer & BuiltWith Alternative](https://apify.com/rod_analytics/tech-stack-detector) | Detect CMS, frameworks, analytics and hosting across 7,600+ fingerprints |
| [WHOIS & DNS Lookup: Bulk Domain, SPF, DMARC & SSL Check](https://apify.com/rod_analytics/domain-security-audit) | Bulk WHOIS, DNS records, SSL certificate and email security checks |
| [Contact Details Scraper: Emails, Phones & Social Links](https://apify.com/rod_analytics/company-contact-extractor) | Extract emails, phones and social links from company websites |
| [Company Profile & Enrichment from Domain: Firmographics API](https://apify.com/rod_analytics/company-profile-from-domain) | Enrich domains with tech stack, DNS, socials, role emails and VAT ID |
| [Email Validator & Verifier: Bulk MX & Disposable Check](https://apify.com/rod_analytics/bulk-email-verifier) | Verify syntax, DNS MX, disposable domains and catch-all hints |
| [Email Format Finder: Company Email Pattern Lookup](https://apify.com/rod_analytics/email-format-finder) | Discover corporate email patterns like first.last@domain.com |
| [Work Email Finder: Find Email by Name and Domain](https://apify.com/rod_analytics/work-email-finder) | Find and verify a person's work email from name and company domain |
| [VIES VAT Checker & EU Company Registry Lookup](https://apify.com/rod_analytics/eu-company-lookup) | Validate EU VAT numbers via VIES and look up company registry records |
| [Companies House Scraper: UK Company Search, No API Key](https://apify.com/rod_analytics/uk-companies-house) | Search UK companies and retrieve profiles, officers and filings |
| [EU TED Tenders Scraper & Alerts: Public Procurement](https://apify.com/rod_analytics/ted-tenders) | Search and monitor EU public procurement notices from TED |
| [Greenhouse, Lever & Ashby Job Scraper: 8 ATS in One Feed](https://apify.com/rod_analytics/multi-ats-jobs-api) | Extract structured job postings from 8 ATS platforms in one feed |
| [GitHub Scraper: Repo Stats, Stars, Trending & Search](https://apify.com/rod_analytics/github-repo-stats) | Repository stats, stars, languages and trending GitHub searches |
| [Hacker News Scraper: Stories, Comments & Who's Hiring Jobs](https://apify.com/rod_analytics/hackernews-scraper) | Stories, Ask/Show HN, comments and Who's Hiring job posts |
| [RSS & Atom Feed Reader: Clean JSON, Discovery & Only-New Mode](https://apify.com/rod_analytics/rss-feed-reader) | Read RSS, Atom, JSON Feeds and OPML lists with feed discovery and state |

# Changelog

This Actor's version history is a separate document: https://apify.com/rod_analytics/phone-number-validator/changelog.md

# Actor input Schema

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

List of phone numbers in international (+1...) or local format.

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

Two-letter country code used for numbers without a leading + (for example US, GB, DE, LT). Leave empty for international-only parsing.

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

Skip duplicate phone numbers in the same run.

## Actor input object example

```json
{
  "phoneNumbers": [
    "+1 650-253-0000",
    "+44 20 7946 0958",
    "+370 612 34567"
  ],
  "defaultCountry": "US",
  "deduplicate": true
}
```

# Actor output Schema

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

No description

## `overview` (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 650-253-0000",
        "+44 20 7946 0958",
        "+370 612 34567"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rod_analytics/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 650-253-0000",
        "+44 20 7946 0958",
        "+370 612 34567",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rod_analytics/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 650-253-0000",
    "+44 20 7946 0958",
    "+370 612 34567"
  ]
}' |
apify call rod_analytics/phone-number-validator --silent --output-dataset

```

## MCP server setup

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