# Website Email, Phone & Tech Stack Scraper (BuiltWith Alt) (`vesper_studio/b2b-domain-tech-pain-enricher`) Actor

Ultra-fast 100% HTTP all-in-one alternative to Contact Info Scraper + BuiltWith for Clay, n8n, Make & outbound agencies. Extracts MX-verified emails, E.164 phones, social profiles, 60+ tech stack signals, and actionable cold-email Pain Signals with a 0-100 opportunityScore.

- **URL**: https://apify.com/vesper_studio/b2b-domain-tech-pain-enricher.md
- **Developed by:** [Xavier Richard](https://apify.com/vesper_studio) (community)
- **Categories:** Lead generation, Marketing, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 domain enriched (mx emails, tech stack & pain signals)s

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

## B2B Domain Tech Stack, Contacts & Pain Signals Enricher

**The ultra-fast, 100% HTTP all-in-one alternative to Contact Info Scraper + BuiltWith** — built specifically for **Clay**, **n8n**, **Make**, and outbound web/SEO/paid-ads agencies.

Pass in a list of domains, URLs, or lead objects (for example, directly from Google Maps Scraper) and get back in **one single Actor call**:

- **Verified Emails (DNS MX)**: Extracted from homepage + priority subpages (`/contact`, `/about`, `/legal`, `/mentions-legales`, `/privacy`), cleaned from `sentry.io`, `wixpress.com`, and `.png`/`.webp` asset noise, split into `genericEmails` vs `personalEmails`, and verified via live DNS MX lookups (`hasValidMx`) with in-memory domain caching.
- **Normalized Phones (E.164)**: Extracted from `tel:` links, JSON-LD, and visible page text using `libphonenumber-js`, with context-aware filtering against European SIREN/ORIAS/financial numbers.
- **Social Profiles**: Normalized LinkedIn, Facebook, Instagram, Twitter/X, YouTube, TikTok, Pinterest, and GitHub profile URLs.
- **60+ Tech Stack Detections**: CMS (`WordPress`, `Shopify`, `Webflow`, `Wix`, `Squarespace`, `PrestaShop`, `Magento`, `WooCommerce`, `Drupal`, `Framer`, `Odoo`, ...), Ads Pixels (`Meta Pixel`, `Google Ads`, `TikTok Pixel`, `LinkedIn Insight`, ...), Analytics (`GA4`, `GTM`, `Hotjar`, `Clarity`, `Matomo`, `Plausible`, ...), CRM/Chat/Booking (`HubSpot`, `Intercom`, `Crisp`, `Drift`, `Tawk.to`, `Calendly`, `Doctolib`, ...), and E-commerce/Payments (`Klaviyo`, `Stripe`, `Recharge`, `Shop Pay`, `Klarna`, ...).
- **Actionable Cold-Email Pain Signals + `opportunityScore` (0–100)**: Ready-to-use boolean flags (`noSsl`, `noMetaPixel`, `noGoogleAds`, `noAnalytics`, `noChatOrBooking`, `outdatedCopyrightYear`, `slowResponseMs`, `noVisibleEmail`, `highAgencyFit`) plus `painReasons` copy hooks you can inject straight into Clay, Smartlead, or Instantly.

***

### Why 100% HTTP & Zero Proxy?

- **Runs in 256–512 MB RAM** with zero headless browser overhead.
- **Realistic TLS fingerprinting** via `got-scraping` with per-host session reuse and DNS caching.
- **Bounded domain crawler** (`maxPagesPerDomain`, default `3`): scans homepage + up to 2 highest-priority internal pages (`/contact`, `/mentions-legales`, `/legal`, `/privacy`, `/about`) while blocking cross-domain redirects.
- **Strict SSL & TTFB checks**: verifies TLS certificates (`rejectUnauthorized: true`) with automatic HTTP fallback so broken-SSL sites still yield contacts while flagging `painSignals.noSsl: true`.

***

### Input Examples (Clay / n8n / Make / Google Maps)

#### 1. Simple Domain / URL List

```json
{
    "urls": ["allbirds.com", "https://yoast.com", "https://finsweet.com", "http://httpforever.com"],
    "maxPagesPerDomain": 3,
    "verifyMx": true
}
```

#### 2. Enriched Lead Objects (Preserves Input Columns)

Any extra keys passed inside `targets` (such as `clayRowId`, `placeId`, `rating`, `category`) are preserved verbatim in the output dataset item for effortless round-tripping back into Clay, Google Sheets, n8n, or Make.

```json
{
    "targets": [
        {
            "companyName": "Acme Plomberie",
            "url": "https://acme-plomberie.fr",
            "city": "Lyon",
            "country": "FR",
            "clayRowId": "rec_98412"
        }
    ],
    "defaultCountry": "FR",
    "maxPagesPerDomain": 3,
    "onlyHighAgencyFit": false
}
```

***

### Output Schema Highlights

```json
{
    "companyName": "Acme Studio",
    "url": "https://acme-studio.fr/",
    "finalUrl": "https://acme-studio.fr/",
    "domain": "acme-studio.fr",
    "city": "Lyon",
    "country": "FR",
    "primaryEmail": "bonjour@acme-studio.fr",
    "genericEmails": ["bonjour@acme-studio.fr"],
    "personalEmails": ["jean.dupont@acme-studio.fr"],
    "allEmails": ["bonjour@acme-studio.fr", "jean.dupont@acme-studio.fr"],
    "emailDetails": [
        {
            "email": "bonjour@acme-studio.fr",
            "type": "generic",
            "domain": "acme-studio.fr",
            "hasValidMx": true
        }
    ],
    "hasValidMx": true,
    "domainHasValidMx": true,
    "primaryPhone": "+33472001122",
    "phones": ["+33472001122"],
    "socialLinks": {
        "linkedin": "https://www.linkedin.com/company/acme-studio",
        "facebook": null,
        "instagram": "https://www.instagram.com/acmestudio",
        "twitter": null,
        "youtube": null,
        "tiktok": null,
        "pinterest": null,
        "github": null
    },
    "techStack": ["WordPress", "WooCommerce", "GA4", "Cloudflare"],
    "techCount": 4,
    "techCategories": {
        "cms": ["WordPress", "WooCommerce"],
        "adsPixels": [],
        "analytics": ["GA4"],
        "crmAndChat": [],
        "ecommerceAndPayments": [],
        "marketingAndReviews": [],
        "infrastructure": ["Cloudflare"]
    },
    "painSignals": {
        "noSsl": false,
        "noMetaPixel": true,
        "noGoogleAds": true,
        "noAnalytics": false,
        "noChatOrBooking": true,
        "outdatedCopyrightYear": true,
        "slowResponseMs": false,
        "noVisibleEmail": false,
        "highAgencyFit": true
    },
    "opportunityScore": 55,
    "painReasons": [
        "No Meta (Facebook) Pixel detected",
        "No Google Ads conversion tag detected",
        "No live chat or online booking widget",
        "Outdated copyright year (2022)"
    ],
    "copyrightYear": 2022,
    "hasSsl": true,
    "sslValid": true,
    "sslError": null,
    "ttfbMs": 240,
    "httpStatus": 200,
    "pagesScanned": 3,
    "subpagesScanned": ["https://acme-studio.fr/contact", "https://acme-studio.fr/mentions-legales"],
    "error": null,
    "scannedAt": "2026-11-14T00:00:00.000Z"
}
```

***

### Opportunity Score (0–100) Methodology

When a website is reachable, `opportunityScore` is calculated deterministically from detected gaps:

| Pain Signal             | Points | Why Agencies Care                                                     |
| ----------------------- | :----: | --------------------------------------------------------------------- |
| `noSsl`                 |  +20   | Broken/expired/missing HTTPS hurts trust & Google rankings            |
| `noAnalytics`           |  +15   | No GA4, GTM, Matomo, Plausible, or web analytics tracking             |
| `noMetaPixel`           |  +15   | Not running or tracking Meta/Instagram retargeting ads                |
| `noGoogleAds`           |  +15   | Not tracking Google Ads conversions                                   |
| `noChatOrBooking`       |  +15   | Missing live chat or booking widget (Crisp, Intercom, Calendly, etc.) |
| `outdatedCopyrightYear` |  +10   | Footer copyright year is 2+ years behind (`<= currentYear - 2`)       |
| `slowResponseMs`        |   +5   | Server TTFB exceeds `slowTtfbThresholdMs` (default `1500ms`)          |
| `noVisibleEmail`        |   +5   | No visible contact email found on homepage/contact/legal pages        |

- **`highAgencyFit`** is `true` when the site is reachable and `opportunityScore >= 50`.
- Unreachable domains receive `opportunityScore: 0` and `highAgencyFit: false` so dead websites never pollute your outbound campaigns.

***

### Clay, n8n & Make Quick Setup

1. **Clay**: Use the **Run Apify Actor** enrichment column, map `targets` to `[{ "companyName": {{Company}}, "url": {{Website}}, "city": {{City}}, "country": {{Country}} }]`, and filter rows where `painSignals.highAgencyFit == true` or personalize your opener with `painReasons[0]`.
2. **n8n / Make**: Trigger the Apify Actor via HTTP/native module, wait for run completion, fetch dataset items from `defaultDatasetId`, route `hasValidMx === true && opportunityScore >= 50` directly to your CRM or Smartlead/Instantly campaign.

***

### Pay-Per-Event Pricing

This Actor supports Apify Pay-Per-Event billing (`domain-enriched`) with strict `maxTotalChargeUsd` budget enforcement so runs stop cleanly before exceeding your configured spend limit.

***

### Local Development

```bash
npm install
npm test
npm run lint
npm run format:check
```

# Actor input Schema

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

List of B2B domains or URLs (e.g. 'allbirds.com', 'https://yoast.com'). Also accepts lead objects in JSON mode.

## `targets` (type: `array`):

Array of objects like { "companyName": "Acme", "url": "acme.com", "city": "Lyon", "country": "FR" }. All extra input fields are preserved in output for seamless re-injection into Clay or Google Sheets.

## `maxPagesPerDomain` (type: `integer`):

Maximum pages crawled per domain (1 = homepage only, 3 = homepage + up to 2 detected /contact, /about, /legal, /mentions-legales, /privacy pages).

## `verifyMx` (type: `boolean`):

Run real DNS MX lookups (with in-memory domain caching) to verify deliverability of extracted emails and target domains.

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

Fallback ISO-3166-1 alpha-2 country code (e.g. 'US', 'FR', 'GB', 'DE') for E.164 phone parsing when no country field or ccTLD is available.

## `slowTtfbThresholdMs` (type: `integer`):

TTFB threshold in milliseconds above which `painSignals.slowResponseMs` is flagged.

## `minOpportunityScore` (type: `integer`):

Optional filter: only emit leads whose `opportunityScore` is greater than or equal to this value (0 = keep all).

## `onlyHighAgencyFit` (type: `boolean`):

When enabled, only outputs leads with `painSignals.highAgencyFit === true` (opportunityScore >= 50).

## `timeoutMs` (type: `integer`):

Per-request HTTP timeout in milliseconds (default 8000ms for fast batch throughput).

## `maxConcurrency` (type: `integer`):

Bounded concurrent domain workers (recommended 8-12 for 256-512 MB memory).

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

Disabled by default (100% zero-proxy HTTP). Enable Apify Proxy only if scraping strict WAF targets.

## Actor input object example

```json
{
  "urls": [
    "https://www.allbirds.com",
    "https://yoast.com",
    "https://finsweet.com",
    "http://neverssl.com"
  ],
  "targets": [],
  "maxPagesPerDomain": 3,
  "verifyMx": true,
  "defaultCountry": "US",
  "slowTtfbThresholdMs": 1500,
  "minOpportunityScore": 0,
  "onlyHighAgencyFit": false,
  "timeoutMs": 8000,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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://www.allbirds.com",
        "https://yoast.com",
        "https://finsweet.com",
        "http://neverssl.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesper_studio/b2b-domain-tech-pain-enricher").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://www.allbirds.com",
        "https://yoast.com",
        "https://finsweet.com",
        "http://neverssl.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("vesper_studio/b2b-domain-tech-pain-enricher").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://www.allbirds.com",
    "https://yoast.com",
    "https://finsweet.com",
    "http://neverssl.com"
  ]
}' |
apify call vesper_studio/b2b-domain-tech-pain-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesper_studio/b2b-domain-tech-pain-enricher"
        }
    }
}
```

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/hlxAvbe00UlY4OqI3/builds/J2plYOA9wRk1Z6xG0/openapi.json
