# B2B Domain Tech-Stack, SPF/DMARC/MX & SSL Sales Trigger Engine (`pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger`) Actor

Zero-browser B2B domain enrichment and sales trigger engine. Resolves MX provider (Google Workspace, M365, Proofpoint, Mimecast), SPF strictness, DMARC policy, SSL certificate expiry days, CMS/E-com/CRM/Ad Pixels, and generates ready-to-send MSP & Agency sales hooks.

- **URL**: https://apify.com/pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger.md
- **Developed by:** [Yaşar Kaan Özdamur](https://apify.com/pipeforge) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 b2b domain trigger scans

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, SPF/DMARC/MX & SSL Sales Trigger Engine

Zero-browser B2B domain intelligence Actor built for **Clay tables, MSP outbound teams, Cold Email agencies, and E-commerce / CRO agencies**.

While traditional tech-stack scrapers spin up heavy headless browsers and return raw technology lists at `$5.00 / 1,000 domains`, this engine runs on **Google DNS-over-HTTPS (DoH), direct TLS X.509 socket inspection, and a single lightweight HTTP GET**—delivering ready-to-merge B2B sales hooks at **$3.50 / 1,000 domains** (`$0.0035` per domain via Apify Pay-Per-Event) with **$0 proxy cost**.

***

### Why Outbound Teams Switch to This Actor

| Feature | Legacy Tech-Stack Detectors (`$5/1K`) | B2B Domain Sales Trigger Engine (`$3.50/1K`) |
| :--- | :--- | :--- |
| **Execution Architecture** | Headless Chromium (slow, high RAM) | **Zero-Browser DoH + TLS Socket + Single HTTP GET** |
| **Proxy Requirement** | Residential / Datacenter proxies needed | **$0 Proxy Required** |
| **Cold Email MX Routing** | Missing | **Google Workspace, M365, Proofpoint, Mimecast, Cloudflare Area 1, Null MX** |
| **Email Spoofing Posture** | Missing | **SPF (`-all` / `~all` + 1-hop redirect) & `_dmarc` (`p=reject` / `p=none` / `missing`)** |
| **SSL Certificate Health** | Boolean only | **Exact Expiry Date, `ssl_days_remaining`, and CA Issuer** |
| **Actionable B2B Hooks** | Raw JSON list only | **`msp_security_hook`, `ecom_agency_hook`, `cold_email_mx_provider`, `severity_score` (0-100)** |

***

### Core Intelligence Signals Extracted Per Domain

1. **Cold Email Deliverability & MX Gateway Classification (`cold_email_mx_provider`)**
   - Identifies whether a prospect domain routes mail through **Google Workspace**, **Microsoft 365**, **Zoho**, or an enterprise Secure Email Gateway (**Proofpoint SEG**, **Mimecast SEG**, **Cloudflare Area 1 SEG**, **Barracuda**, **Cisco IronPort**) or explicitly drops mail via **RFC 7505 Null MX**.
   - Lets cold email teams separate Proofpoint/Mimecast targets into plain-text, zero-link sequences before burning sender domains.

2. **MSP & Cybersecurity Spoofing Audit (`spf_strictness`, `dmarc_policy`, `msp_security_hook`)**
   - Resolves root `TXT` SPF policies (automatically following 1-hop `redirect=` chains) and `_dmarc.<domain>` policies (`missing`, `p=none`, `p=quarantine`, `p=reject`).
   - Checks `Strict-Transport-Security` (HSTS) and `Content-Security-Policy` (CSP) headers.
   - Generates a direct `msp_security_hook` explaining the exact security gap or confirming `HARDENED_ENTERPRISE` status.

3. **Real X.509 SSL Expiry Countdown (`ssl_days_remaining`, `ssl_expiry_date`, `ssl_issuer`)**
   - Opens a direct port `443` TLS handshake to extract the exact certificate expiration date, remaining days, and issuing Certificate Authority.

4. **Storefront, CMS, CRM & Ad Pixel Detection (`cms_ecom`, `crm_marketing`, `pixels_analytics`, `ecom_agency_hook`)**
   - Detects **Shopify, WooCommerce, Webflow, WordPress, Next.js, Magento, Squarespace, Wix**.
   - Detects **HubSpot, Klaviyo, Intercom, Drift, Marketo, Salesforce Pardot, ActiveCampaign, Mailchimp**.
   - Detects **Google Tag Manager (GTM), GA4, Meta Pixel, TikTok Pixel, LinkedIn Insight Tag**.
   - Generates `ecom_agency_hook` highlighting missing retention tools (e.g., Shopify store without Klaviyo) or paid social attribution gaps.

***

### Input Configuration

```json
{
  "domains": [
    "shopify.com",
    "hubspot.com",
    "stripe.com",
    "cloudflare.com",
    "example.com"
  ],
  "maxConcurrency": 5,
  "timeoutSeconds": 6,
  "minSeverityScore": 0
}
```

***

### Sample Output Record

```json
{
  "domain": "shopify.com",
  "http_status": 200,
  "severity_score": 40,
  "cold_email_mx_provider": "Google Workspace (Standard B2B - Match Google-to-Google inbox rotation)",
  "mx_provider": "Google Workspace",
  "mx_primary": "alt3.aspmx.l.google.com",
  "has_enterprise_seg": false,
  "spf_present": true,
  "spf_strictness": "softfail (~all)",
  "dmarc_present": true,
  "dmarc_policy": "p=reject",
  "ssl_valid": true,
  "ssl_expiry_date": "2027-01-06",
  "ssl_days_remaining": 48,
  "ssl_issuer": "Google Trust Services",
  "cdn_edge": "Cloudflare",
  "has_hsts": true,
  "has_csp": false,
  "cms_ecom": "Shopify",
  "crm_marketing": "None Detected",
  "pixels_analytics": "None Detected",
  "detected_tech_stack": "Shopify, Cloudflare",
  "msp_security_hook": "LOW: SPF uses SoftFail (~all) instead of HardFail (-all) | Missing Content-Security-Policy (CSP) header",
  "ecom_agency_hook": "E-com store without Klaviyo detected on storefront (Pitch Email/SMS retention flows) | E-com storefront missing Meta/TikTok ad pixel on initial HTML (Pitch Paid Social CAPI audit)",
  "scan_latency_ms": 1067
}
```

***

### 1-Click AI Agent & MCP Server Integration (Claude, Cursor, n8n)

This Actor works out-of-the-box as a Model Context Protocol (MCP) tool via Apify's hosted MCP server—zero self-hosting required:

- **Single-Actor MCP Endpoint:** `https://mcp.apify.com/?actors=pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger`
- **2-Actor B2B Lead + Domain Audit Chain:** `https://mcp.apify.com/?actors=pipeforge/us-socrata-b2b-signal-crossjoin-engine,pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger`

Example prompt in **Claude Desktop / Cursor / n8n AI Agent**:

> *"Scan these 50 prospect domains with `pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger` (`minSeverityScore: 40`), separate Proofpoint/Mimecast enterprise gateways from standard Google Workspace/M365 domains, and draft a 1-sentence MSP cold opener from each domain's `msp_security_hook`."*

***

### 30-Second Copy-Paste Clay.com HTTP API Column Setup (Bulk 5,000+ Domains)

Run this Actor directly inside any **Clay.com** table with zero browser overhead (`$0.0035` per domain):

1. In your Clay table, click **Add Enrichment → HTTP API**.
2. Set **Method** to `POST` and **Endpoint** to:
   `https://api.apify.com/v2/acts/pipeforge~b2b-domain-tech-stack-dns-ssl-sales-trigger/run-sync-get-dataset-items`
3. Add Header **`Authorization`**: `Bearer YOUR_APIFY_API_TOKEN` and **`Content-Type`**: `application/json`.
4. Paste this **Body** (map `/Company Domain` to your Clay column):

```json
{
  "domains": ["/Company Domain"],
  "maxConcurrency": 5,
  "timeoutSeconds": 6,
  "minSeverityScore": 0
}
```

5. Map `0.cold_email_mx_provider`, `0.has_enterprise_seg`, `0.dmarc_policy`, `0.ssl_days_remaining`, `0.msp_security_hook`, and `0.ecom_agency_hook` directly into columns!

***

### Clay / Make / n8n Integration Workflow

1. **Clay Outbound Table**: Pass the `Company Domain` column to this Actor via the Apify integration (`POST https://api.apify.com/v2/acts/pipeforge~b2b-domain-tech-stack-dns-ssl-sales-trigger/run-sync-get-dataset-items` with `Header Auth: Authorization: Bearer <YOUR_APIFY_TOKEN>`).
2. **Route by `has_enterprise_seg` & `mx_provider`**: Send `Google Workspace` leads to Google sender inboxes, `Microsoft 365` leads to Exchange senders, and `Proofpoint / Mimecast / Cloudflare Area 1` leads to plain-text outreach campaigns.
3. **Dynamic Icebreakers**: Map `msp_security_hook` or `ecom_agency_hook` directly into your first-line personalization prompt.

# Actor input Schema

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

List of company domains or URLs to enrich (e.g., shopify.com, https://www.hubspot.com). Automatically normalizes URLs and email domains.

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

Number of domains to process in parallel via lightweight DoH, TLS socket, and HTTP header inspection.

## `timeoutSeconds` (type: `integer`):

Socket and HTTP timeout per domain in seconds.

## `minSeverityScore` (type: `integer`):

Optional filter: only push domains whose computed B2B sales opportunity score is at or above this threshold (0 returns all domains).

## Actor input object example

```json
{
  "domains": [
    "shopify.com",
    "hubspot.com",
    "stripe.com",
    "cloudflare.com",
    "example.com"
  ],
  "maxConcurrency": 5,
  "timeoutSeconds": 6,
  "minSeverityScore": 0
}
```

# 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 = {
    "domains": [
        "shopify.com",
        "hubspot.com",
        "stripe.com",
        "cloudflare.com",
        "example.com"
    ],
    "maxConcurrency": 5,
    "timeoutSeconds": 6,
    "minSeverityScore": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger").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": [
        "shopify.com",
        "hubspot.com",
        "stripe.com",
        "cloudflare.com",
        "example.com",
    ],
    "maxConcurrency": 5,
    "timeoutSeconds": 6,
    "minSeverityScore": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger").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": [
    "shopify.com",
    "hubspot.com",
    "stripe.com",
    "cloudflare.com",
    "example.com"
  ],
  "maxConcurrency": 5,
  "timeoutSeconds": 6,
  "minSeverityScore": 0
}' |
apify call pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pipeforge/b2b-domain-tech-stack-dns-ssl-sales-trigger"
        }
    }
}
```

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/GmdzJbfVgJDsIl6dE/builds/CAebpImTdS6ro6GpH/openapi.json
