# b2b-tech-gap-contact-distress-sniper (`weak_altar/b2b-tech-gap-contact-distress-sniper`) Actor

Extract verified decision-maker emails, missing Meta/Google ad pixels, CRM gaps, distress scores, and AI cold email icebreakers from any list of domains.

- **URL**: https://apify.com/weak_altar/b2b-tech-gap-contact-distress-sniper.md
- **Developed by:** [NITISH KUMAR](https://apify.com/weak_altar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

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/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 Tech-Gap, Decision Maker & Distress Lead Sniper (AI + Ad Pixels)

**Turn raw domain lists into high-converting B2B sales pipelines in seconds.**

Stop stitching together 4 different expensive tools (BuiltWith + Hunter.io + Apify + Claygent) just to qualify a single lead. **B2B Tech-Gap & Distress Lead Sniper** uses stealth TLS-fingerprint crawling (`curl_cffi`), C-speed DOM auditing (`selectolax`), and structured AI market research to extract **verified emails, phone numbers, social links, missing ad pixels, CRM/chat gaps, a 0–100 Distress Score, decision-maker details, and a hyper-personalized cold email icebreaker** in one single API call.

***

### 🚀 Why Top Lead-Gen Agencies & Clay/n8n Builders Use This Actor

Most scrapers only give you a company name and a generic homepage URL. Selling to cold leads without knowing their **exact technical gaps** kills reply rates. This Actor audits every target domain across multiple internal pages (`/about`, `/team`, `/contact`, `/pricing`) to uncover **expensive revenue leaks** you can immediately pitch and fix:

- **🕵️ Stealth Anti-Bot Crawling:** Impersonates real browser TLS/JA3 fingerprints (`Chrome 124`) to bypass basic bot blocks without burning costly residential proxies.
- **📊 Ad Pixel & Marketing Stack Detector:** Instantly detects **Meta/Facebook Pixel, Google Tag Manager (GTM), Google Ads Conversion Tags, TikTok Pixel, LinkedIn Insight Tag, GA4, Microsoft Clarity, and Hotjar**.
- **💬 CRM, Booking & Chat Widget Audit:** Identifies **GoHighLevel (LeadConnector), HubSpot, Intercom, Drift, Tidio, Crisp, and Calendly**—flagging businesses losing inbound leads due to missing live chat or online booking.
- **🔥 Deterministic Distress Score (0–100):** Automatically scores every lead based on missing retargeting pixels, missing lead-capture widgets, slow server response times (`>2200ms`), weak SEO metadata, and missing SSL. Filter out low-intent prospects before paying for outreach.
- **📧 Multi-Page Contact & Social Extractor:** Crawls internal team and contact pages to extract clean, junk-filtered **direct emails, phone numbers, and LinkedIn/Instagram/Facebook/X profiles**.
- **🧠 Built-In AI Market Research & Cold Email Writer:** Uses structured AI analysis to identify the **Founder/Owner name**, diagnose **3–5 critical revenue leaks**, recommend the **exact high-ticket service to pitch**, and write a **non-robotic 2-sentence cold email icebreaker**.

***

### 🎯 High-ROI Use Cases

- **Paid Ads & Performance Agencies:** Filter for local businesses or D2C brands running traffic with **no Meta Pixel or Google Ads tag installed** (`distress_score >= 50`) and pitch retargeting setup.
- **AI Automation & GoHighLevel (GHL) Agencies:** Find clinics, roofers, lawyers, and home-service businesses with **zero live chat or Calendly booking widgets** and sell AI voice/chat agents.
- **Web Design & Technical SEO Studios:** Target slow-loading websites (`response_time_ms > 2200`) missing meta descriptions and modern CMS frameworks.
- **Clay.com, n8n & Make Workflows:** Plug this Actor directly into your enrichment waterfalls to replace multiple credit-heavy API steps with one unified JSON payload.

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domains` | `Array<String>` | **Required** | List of business domains or URLs to audit (e.g., `["austinroofing.com", "smiledental.com"]`). |
| `minDistressScore` | `Integer` | `0` | Only return leads with a distress score `>=` this threshold (`0` to `100`). Ideal for filtering high-intent prospects. |
| `maxSubpagesPerDomain` | `Integer` | `3` | Number of internal pages (`/about`, `/contact`, `/team`) to crawl per domain for founder names and direct emails. |
| `maxConcurrency` | `Integer` | `10` | Parallel worker threads (`1` to `50`). Higher values process thousands of domains faster. |
| `geminiApiKey` | `String` | *Built-in* | Optional. Leave blank to use the Actor's built-in AI enrichment, or supply your own Google Gemini API key. |
| `proxyConfiguration` | `Object` | `false` | Optional Apify Proxy configuration for strict enterprise firewalls. |

***

### 📦 Sample Output JSON

Every enriched domain produces a clean, database-ready JSON record:

```json
{
  "target_domain": "apexroofingaustin.com",
  "final_url": "https://apexroofingaustin.com",
  "http_status": 200,
  "response_time_ms": 2640,
  "company_title": "Apex Roofing & Exteriors | Austin, TX",
  "meta_description": "Residential and commercial roof repair in Austin.",
  "emails_found": [
    "marcus@apexroofingaustin.com",
    "estimates@apexroofingaustin.com"
  ],
  "phones_found": [
    "(512) 555-0194"
  ],
  "social_profiles": {
    "facebook": "https://facebook.com/apexroofingaustin",
    "linkedin_company": "https://linkedin.com/company/apex-roofing-austin"
  },
  "cms_or_framework": [
    "WordPress"
  ],
  "ad_pixels_detected": [],
  "analytics_detected": [
    "Google Analytics 4 (GA4)"
  ],
  "crm_and_chat_widgets": [],
  "missing_high_value_tech": [
    "Meta/Facebook Retargeting Pixel",
    "Google Tag Manager",
    "AI Live Chat / Lead Widget",
    "Online Booking Calendar"
  ],
  "deterministic_distress_score": 70,
  "distress_reasons": [
    "No retargeting pixels installed (100% of paid/organic traffic leaves untracked)",
    "No live chat, CRM capture widget, or instant booking system on site",
    "Slow server response time (2640 ms) hurting mobile conversions"
  ],
  "pages_crawled": 4,
  "ai_market_research": {
    "business_category": "Local Residential & Commercial Roofing Contractor",
    "estimated_company_tier": "Local SMB",
    "decision_makers": [
      {
        "name": "Marcus Vance",
        "role": "Founder & Owner",
        "personal_linkedin_or_contact": "marcus@apexroofingaustin.com"
      }
    ],
    "critical_revenue_leaks": [
      "Zero Meta or Google Ads retargeting pixels installed, losing 95%+ of storm-damage visitors without follow-up.",
      "No instant inspection booking calendar or live chat widget for urgent roof leak inquiries.",
      "2.6s initial page load speed increases mobile bounce rate on local search traffic."
    ],
    "high_ticket_service_to_pitch": "GoHighLevel AI Missed-Call/Chat Lead Capture + Meta Retargeting Funnel",
    "hyper_personalized_icebreaker": "Hey Marcus — noticed Apex Roofing is driving local Austin traffic to your WordPress site, but you don't have a Meta retargeting pixel or instant inspection booking widget active yet. Quick question: how are you currently capturing after-hours storm repair visitors before they click back to the next roofer on Google?"
  }
}
```

***

### 🔗 Seamless Integrations (Clay, n8n, Make & Python)

#### 1. Clay.com Integration

1. Add an **Apify — Run Actor** enrichment column in your Clay table.
2. Select **B2B Tech-Gap, Decision Maker & Distress Lead Sniper**.
3. Map your `Domain` column to the `domains` array input and pull `emails_found`, `deterministic_distress_score`, `missing_high_value_tech`, and `ai_market_research.hyper_personalized_icebreaker` directly into your Smartlead or Instantly campaign.

#### 2. Python API Integration

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run_input = {
    "domains": ["stripe.com", "apexroofingaustin.com"],
    "minDistressScore": 40,
    "maxSubpagesPerDomain": 3,
    "maxConcurrency": 10,
}

run = client.actor("weak_altar/b2b-tech-gap-contact-distress-sniper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["target_domain"], item["deterministic_distress_score"], item["emails_found"])
```

***

### 💡 Pro Tips for Maximum Results

- **Pair with Google Maps Scrapers:** Export 5,000+ local business websites from any Google Maps scraper, pass the `website` column into this Actor with `minDistressScore: 50`, and only pay for pre-qualified prospects with confirmed marketing/tech gaps.
- **Custom Gemini Key:** If you run massive batches (`50,000+` domains/month), you can optionally pass your own free/paid Google AI Studio `geminiApiKey` for unlimited throughput.Soup/bs4/doc/) to parse the data from it. The data are then stored in a [dataset](https://docs.apify.com/sdk/python/docs/concepts/storages#working-with-datasets) where you can easily access them.

The scraped data in this template are page headings but you can easily edit the code to scrape whatever you want from the page.

### Included features

- **[Apify SDK](https://docs.apify.com/sdk/python/)** for Python - a toolkit for building Apify [Actors](https://apify.com/actors) and scrapers in Python
- **[Input schema](https://docs.apify.com/platform/actors/development/input-schema)** - define and easily validate a schema for your Actor's input
- **[Request queue](https://docs.apify.com/sdk/python/docs/concepts/storages#working-with-request-queues)** - queues into which you can put the URLs you want to scrape
- **[Dataset](https://docs.apify.com/sdk/python/docs/concepts/storages#working-with-datasets)** - store structured data where each object stored has the same attributes
- **[HTTPX2](https://github.com/pydantic/httpx2)** - library for making asynchronous HTTP requests in Python
- **[Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)** - library for pulling data out of HTML and XML files

### How it works

1. `Actor.get_input()` gets the input where the page URL is defined
2. `httpx2.AsyncClient().get(url)` fetches the page
3. `BeautifulSoup(response.content, 'lxml')` loads the page data and enables parsing the headings
4. This parses the headings from the page and here you can edit the code to parse whatever you need from the page
   ```python
   for heading in soup.find_all(["h1", "h2", "h3", "h4", "h5", "h6"]):
   ```
5. `Actor.push_data(headings)` stores the headings in the dataset

### Resources

- [BeautifulSoup Scraper](https://apify.com/apify/beautifulsoup-scraper)
- [Python tutorials in Academy](https://docs.apify.com/academy/python)
- [Web scraping with Beautiful Soup and Requests](https://blog.apify.com/web-scraping-with-beautiful-soup/)
- [Beautiful Soup vs. Scrapy for web scraping](https://blog.apify.com/beautiful-soup-vs-scrapy-web-scraping/)
- [Integration with Make, GitHub, Zapier, Google Drive, and other apps](https://apify.com/integrations)
- [Video guide on getting scraped data using Apify API](https://www.youtube.com/watch?v=ViYYDHSBAKM)
- A short guide on how to build web scrapers using code templates:

[web scraper template](https://www.youtube.com/watch?v=u-i-Korzf8w)

### Getting started

For complete information [see this article](https://docs.apify.com/platform/actors/development#build-actor-at-apify-console). In short, you will:

1. Build the Actor
2. Run the Actor

### Pull the Actor for local development

If you would like to develop locally, you can pull the existing Actor from Apify console using Apify CLI:

1. Install `apify-cli`

   **Using Homebrew**

   ```bash
   brew install apify-cli
   ```

   **Using NPM**

   ```bash
   npm -g install apify-cli
   ```

2. Pull the Actor by its unique `<ActorId>`, which is one of the following:

   - unique name of the Actor to pull (e.g. "apify/hello-world")
   - or ID of the Actor to pull (e.g. "E2jjCZBezvAZnX8Rb")

   You can find both by clicking on the Actor title at the top of the page, which will open a modal containing both Actor unique name and Actor ID.

   This command will copy the Actor into the current directory on your local machine.

   ```bash
   apify pull <ActorId>
   ```

### Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

- [Apify SDK for JavaScript documentation](https://docs.apify.com/sdk/js)
- [Apify SDK for Python documentation](https://docs.apify.com/sdk/python)
- [Apify Platform documentation](https://docs.apify.com/platform)
- [Join our developer community on Discord](https://discord.com/invite/jyEM2PRvMU)

# Actor input Schema

## `domains` (type: `array`):

List of business domains or URLs to audit and enrich (e.g., \['austinroofing.com', 'smiledental.com']).

## `minDistressScore` (type: `integer`):

Only output leads whose deterministic distress score is equal to or above this threshold. Set to 0 to return all domains.

## `maxSubpagesPerDomain` (type: `integer`):

Number of internal pages to crawl per domain for founder names and direct emails.

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

Number of parallel TLS-spoofed workers.

## `geminiApiKey` (type: `string`):

Leave blank to use the Actor's built-in AI enrichment, or provide your own Google Gemini API key.

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

Optional proxy settings for heavy enterprise firewalls.

## Actor input object example

```json
{
  "domains": [
    "python.org",
    "scrapeme.live"
  ],
  "minDistressScore": 0,
  "maxSubpagesPerDomain": 3,
  "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 = {
    "domains": [
        "python.org",
        "scrapeme.live"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("weak_altar/b2b-tech-gap-contact-distress-sniper").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 = { "domains": [
        "python.org",
        "scrapeme.live",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("weak_altar/b2b-tech-gap-contact-distress-sniper").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 '{
  "domains": [
    "python.org",
    "scrapeme.live"
  ]
}' |
apify call weak_altar/b2b-tech-gap-contact-distress-sniper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,weak_altar/b2b-tech-gap-contact-distress-sniper"
        }
    }
}
```

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/wPSL4VSvgcQw1ehse/builds/aFWT5bH1GdLrFwrYd/openapi.json
