# WhatsApp Ultimate Scraper (`khnaami/actor-whatsapp-scraper`) Actor

Verify active WhatsApp & Business phone numbers, extract public group invite participants & status, monitor WhatsApp Channels, and discover niche groups by keyword without login.

- **URL**: https://apify.com/khnaami/actor-whatsapp-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## 💬 WhatsApp Ultimate Scraper & Lead Generator (Groups, Channels, Numbers & Business Leads)

All-in-one WhatsApp data extractor and lead generator on Apify. Extract **WhatsApp Group Invites** (metadata, participant counts, status), **WhatsApp Channels** (followers, verified badges), **Phone Number Validation / Checker** (active WhatsApp status & business profiles), and **Automated Group Finder by Keyword**.

***

### ⚡ Key Features

- 👥 **WhatsApp Group Scraper**: Extract Group Name, Description, Group Icon/Avatar, Total Participants count, and Invite Status (`Active`, `Full`, `Revoked`).
- 📢 **WhatsApp Channels**: Scrape public WhatsApp Channels, follower counts, descriptions, and verified badges.
- 📱 **Phone Number Checker & Validator**: Check if a list of phone numbers is registered on WhatsApp, detect WhatsApp Business accounts, and extract profile names.
- 🔍 **Automated Group Finder**: Search the web for public WhatsApp group invite links based on any keyword, industry, or niche (e.g., *crypto trading*, *real estate dubai*, *dropshipping leads*).
- 📧 **Direct Lead Generation**: Automatically extracts business emails and external links found in group or channel descriptions.
- 🛡️ **Dual-Engine Architecture**: Blazing fast HTTP requests via `got-scraping` paired with an intelligent Playwright browser fallback.

***

### 📥 Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | String | `AUTO_DETECT` | Extraction mode: `AUTO_DETECT`, `GROUPS`, `CHANNELS`, `NUMBER_CHECK`, `GROUP_FINDER`. |
| `targetUrls` | Array | `[...]` | List of WhatsApp Group invites (`chat.whatsapp.com/...`), Channels, or `wa.me` links. |
| `phoneNumbers` | Array | `[]` | List of phone numbers to check/verify in international format (`+1...`, `+971...`). |
| `searchKeywords` | Array | `[]` | Keywords to discover public WhatsApp group links automatically. |
| `maxItems` | Integer | `50` | Maximum items to extract per run. |
| `proxyConfiguration` | Object | `{ useApifyProxy: true }` | Apify Residential proxy configuration (recommended). |

***

### 📤 Output Data Format

#### 1. WhatsApp Group Record

```json
{
  "type": "GROUP",
  "id": "B1234567890abcdef",
  "groupCode": "B1234567890abcdef",
  "url": "https://chat.whatsapp.com/B1234567890abcdef",
  "title": "Crypto & AI Alpha Traders",
  "description": "Daily market updates, trade signals, and networking. Contact: admin@alphaseek.io",
  "iconUrl": "https://pps.whatsapp.net/...",
  "status": "Active",
  "membersCount": "840 participants",
  "membersCountRaw": 840,
  "emails": [
    "admin@alphaseek.io"
  ],
  "scrapedAt": "2026-10-09T12:30:00.000Z"
}
```

#### 2. WhatsApp Channel Record

```json
{
  "type": "CHANNEL",
  "id": "0029Va4K00494444",
  "url": "https://www.whatsapp.com/channel/0029Va4K00494444",
  "title": "Tech Innovations Daily",
  "description": "Curated tech breakthroughs, startup launches, and AI updates.",
  "iconUrl": "https://pps.whatsapp.net/...",
  "followersCount": "1.4M followers",
  "followersCountRaw": 1400000,
  "isVerified": true,
  "scrapedAt": "2026-10-09T12:30:00.000Z"
}
```

#### 3. Phone Number Validation Record

```json
{
  "type": "NUMBER_CHECK",
  "id": "+14155552671",
  "phone": "+14155552671",
  "url": "https://wa.me/14155552671",
  "title": "Acme Global Solutions",
  "phoneValid": true,
  "isBusiness": true,
  "scrapedAt": "2026-10-09T12:30:00.000Z"
}
```

***

### 💼 Business & Lead Generation Use Cases

- **B2B Cold Outreach**: Verify large phone number lists before sending WhatsApp messages to keep your delivery score pristine.
- **Niche Community Prospecting**: Discover high-intent WhatsApp groups around your industry to connect with targeted prospects.
- **Competitor Channel Tracking**: Monitor follower growth and updates across major WhatsApp Channels.

***

### 📄 License

Apache-2.0

# Actor input Schema

## `mode` (type: `string`):

Select what WhatsApp data to extract, or use AUTO_DETECT.

## `targetUrls` (type: `array`):

List of WhatsApp Group invite links (chat.whatsapp.com/...), Channels, or wa.me links.

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

Phone numbers in international format (e.g. +14155552671, +971501234567).

## `searchKeywords` (type: `array`):

Search topics/niches to discover public WhatsApp group invite links.

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

Maximum number of groups, channels, or phone checks to process.

## `proxyConfiguration` (type: `object`):

Select Apify Proxy (RESIDENTIAL recommended for WhatsApp to avoid IP bans).

## Actor input object example

```json
{
  "mode": "AUTO_DETECT",
  "targetUrls": [
    "https://chat.whatsapp.com/invite/sampleGroupCode",
    "https://www.whatsapp.com/channel/0029Va4K00494444"
  ],
  "phoneNumbers": [
    "+14155552671"
  ],
  "searchKeywords": [
    "artificial intelligence developers",
    "crypto trading community"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Scraped WhatsApp records (Groups, Channels, Verified Numbers, Business Profiles, Products, Discovered Groups)

## `overview` (type: `string`):

High-level summary report and execution metrics stored in Key-Value store

# 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 = {
    "targetUrls": [
        "https://chat.whatsapp.com/invite/sampleGroupCode",
        "https://www.whatsapp.com/channel/0029Va4K00494444"
    ],
    "phoneNumbers": [
        "+14155552671"
    ],
    "searchKeywords": [
        "artificial intelligence developers",
        "crypto trading community"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-whatsapp-scraper").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 = {
    "targetUrls": [
        "https://chat.whatsapp.com/invite/sampleGroupCode",
        "https://www.whatsapp.com/channel/0029Va4K00494444",
    ],
    "phoneNumbers": ["+14155552671"],
    "searchKeywords": [
        "artificial intelligence developers",
        "crypto trading community",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-whatsapp-scraper").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 '{
  "targetUrls": [
    "https://chat.whatsapp.com/invite/sampleGroupCode",
    "https://www.whatsapp.com/channel/0029Va4K00494444"
  ],
  "phoneNumbers": [
    "+14155552671"
  ],
  "searchKeywords": [
    "artificial intelligence developers",
    "crypto trading community"
  ]
}' |
apify call khnaami/actor-whatsapp-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khnaami/actor-whatsapp-scraper"
        }
    }
}
```

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/Tdqtpoobxum75G42g/builds/0vizg6CnTwzpK7qSy/openapi.json
