# B2B Website Contact, Socials & MX-Verified Email Scraper (`m81.y/my-actor`) Actor

Extract DNS MX-verified B2B emails, phone numbers & social links (LinkedIn, X, Instagram, TikTok) from company domains. Flat rate per domain. No verified email = No charge!

- **URL**: https://apify.com/m81.y/my-actor.md
- **Developed by:** [mustafa ashraf](https://apify.com/m81.y) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 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

## 🎯 B2B Website Contact, Socials & MX-Verified Email Scraper (No Email = No Charge)

Extract **DNS MX-verified business emails**, **phone numbers**, and **social media profiles** (`LinkedIn`, `Facebook`, `Instagram`, `X/Twitter`, `TikTok`, `YouTube`) directly from company websites at lightning speed.
Built specifically for **B2B Lead Generation Agencies, Cold Email Marketers, SDRs, and Sales Teams** who are tired of paying high Apify Compute Unit costs for empty rows or dead, bouncing emails.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

### 🔥 Why Choose This Scraper Over Traditional Contact Scrapers?

| Feature | Traditional Contact Scrapers ❌ | Our B2B MX-Verified Scraper ✅ |
| :--- | :--- | :--- |
| **Empty Results Billing** | Charges you even when 0 emails are found | **Strict Mode: No Verified Email = $0 Charged!** |
| **Subpage Billing Trap** | Charges per URL/subpage crawled (`/about`, `/contact`) | **Flat Rate per Company Domain** (scans homepage + contact pages as 1 result) |
| **Email Deliverability** | Dumps raw regex text (high bounce rate & spam traps) | **Real-Time DNS MX Record Verification** + Disposable Email Filtering |
| **Platform Compute Cost** | Heavy browser instances (1GB - 4GB RAM) = Expensive | **Ultra-Lightweight (128MB RAM)** = Near-Zero Compute Unit cost! |
------------------------------------------------------------------------------------------------------------------------------------------------------

### ✨ What Data Can You Extract?

For every company domain you provide, the scraper intelligently visits the homepage and key internal pages (`/contact`, `/about`, `/team`, `/support`, `/legal`) and extracts:

- 📧 **MX-Verified Business Emails:** Filtered against false positives (`.png`, `sentry@`, `noreply@`, disposable domains) and verified against live **DNS Mail Exchange (MX) servers**.
- 🌐 **Live MX Server Records:** Know instantly if the company uses **Google Workspace**, **Microsoft 365 / Outlook**, **Zoho**, or custom mail servers.
- 📞 **Phone Numbers:** Cleaned and extracted from `tel:` links and contact sections.
- 🔗 **Social Media Profiles:** Direct links to the company's official **LinkedIn**, **Instagram**, **Facebook**, **X (Twitter)**, **TikTok**, and **YouTube** pages.
- 🏢 **Company Metadata:** Website title, normalized domain, and number of subpages scanned.

***

### 🚀 How to Use (Quick Start)

1. **Enter Company Websites / Domains:** Paste a list of domains or URLs (e.g., `stripe.com`, `https://apify.com`, `langchain.com`) into the **Company Websites / Domains** field.
2. **Toggle Strict MX Mode (Recommended `ON`):** Keep **"Return ONLY domains with MX-Verified Emails"** enabled so domains without active emails are excluded from your dataset—meaning **you never pay for empty leads**.
3. **Set Max Subpages:** Choose how many internal contact/about pages to scan per domain (default is `3`).
4. Click **Start** and export your clean leads to **CSV, Excel, JSON**, or connect directly to **Clay, Make, Zapier, n8n, Instantly, or Smartlead**!

***

### 📥 Input Example

```json
{
  "urls": [
    "https://apify.com",
    "https://langchain.com"
  ],
  "onlyWithVerifiedEmails": true,
  "maxSubpages": 3
}
```

***

### 📤 Output Example (JSON)

Each item in your Dataset represents a complete, enriched B2B company profile:

```json
{
  "domain": "apify.com",
  "url": "https://apify.com",
  "company_title": "Apify: Full-stack web scraping and data extraction platform",
  "status": "success",
  "has_verified_email": true,
  "verified_emails": [
    "hello@apify.com",
    "support@apify.com"
  ],
  "mx_records": {
    "apify.com": [
      "aspmx.l.google.com",
      "alt1.aspmx.l.google.com",
      "alt2.aspmx.l.google.com"
    ]
  },
  "phones": [],
  "socials": {
    "linkedin": [
      "https://www.linkedin.com/company/apify"
    ],
    "twitter_x": [
      "https://x.com/apify"
    ],
    "youtube": [
      "https://www.youtube.com/@apify"
    ]
  },
  "pages_scanned": 4
}
```

***

### 💡 Top Use Cases

- **Google Maps & Apollo Enrichment:** Have a list of company websites from Google Maps or directories without emails? Feed the domains here to get verified emails & social links.
- **Cold Email Campaign Protection:** Avoid burning your sender reputation—every returned email is checked for active `MX` records before hitting your outreach tool.
- **Tech & Email Provider Segmentation:** Filter leads by `mx_records` to see whether a prospect uses **Google Workspace** or **Microsoft Office 365** before sending your pitch.
- **Automated Workflows (Clay / Make / n8n):** Use our ultra-fast execution (under 1 second per batch) as an enrichment step inside your automated lead pipelines.

# Actor input Schema

## `urls` (type: `array`):

Enter a list of company URLs or domains (e.g., stripe.com, https://apify.com).

## `onlyWithVerifiedEmails` (type: `boolean`):

If enabled, domains without a valid MX-verified email will be skipped from the final dataset so you never pay for empty results!

## `maxSubpages` (type: `integer`):

How many internal pages (like /contact, /about, /team) to scan per website. Flat rate applies regardless of pages scanned!

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://langchain.com"
  ],
  "onlyWithVerifiedEmails": true,
  "maxSubpages": 3
}
```

# 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 = {
    "urls": [
        "https://apify.com",
        "https://langchain.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("m81.y/my-actor").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 = { "urls": [
        "https://apify.com",
        "https://langchain.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("m81.y/my-actor").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 '{
  "urls": [
    "https://apify.com",
    "https://langchain.com"
  ]
}' |
apify call m81.y/my-actor --silent --output-dataset

```

## MCP server setup

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

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/1Mbpp99J03swIfjIu/builds/tUUKVKXuQms64vMNt/openapi.json
