# Website Contact, Email MX/DMARC & Tech Stack Enricher (`tsun_tsun/website-lead-tech-enricher`) Actor

Enrich company domains with public contact emails, phone numbers, social links, careers URLs, ATS detection, DNS MX/SPF/DMARC records, 70 tech stack signatures, and llms.txt/robots/sitemap signals.

- **URL**: https://apify.com/tsun_tsun/website-lead-tech-enricher.md
- **Developed by:** [tsun tsun](https://apify.com/tsun_tsun) (community)
- **Categories:** Lead generation, SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 enriched live domains

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Website Contact, Email MX/DMARC & Tech Stack Enricher

Feed company URLs or bare domains into this HTTP and DNS enricher to pull public contact emails, phone numbers, social links, careers URLs, ATS platforms, live DNS MX/SPF/DMARC records, 70 categorized technologies, HSTS headers, and `/llms.txt`, `/robots.txt`, and sitemap signals inside a 256 MB Node.js container.

For each domain, the Actor fetches the homepage, runs raw-HTML technology and WAF/parked checks, strips heavy non-JSON-LD `<script>`, `<style>`, `<noscript>`, and `<svg>` blocks in linear time before DOM parsing, and follows up to `maxPagesPerDomain - 1` prioritized internal links sequentially so every page buffer is released immediately.

### How it works

Each domain combines three lightweight data passes that run without headless Chrome or proxies:

- Contact, Schema.org, and careers extraction: prioritizes English and European internal pages (`contact`, `kontakt`, `contacto`, `mentions-legales`, `aviso-legal`, `a-propos`, `impressum`, `careers`, `jobs`), decodes Cloudflare `data-cfemail` and URL-encoded `mailto:`/`tel:` links, walks JSON-LD `@graph`, `Organization`/`LocalBusiness`/`Corporation`, `contactPoint`, and `sameAs`, tags emails as `role` vs `personal` plus disposable-domain flags, and inspects links and iframes for `careersUrl` and `detectedAts` across 11 ATS providers (Greenhouse, Lever, Ashby, Workable, SmartRecruiters, Workday, Personio, Recruitee, Teamtailor, BambooHR, iCIMS).
- Live DNS MX, SPF, and DMARC checks: resolves MX records (classifying primary `mxHosts[0]` first across Google Workspace, Microsoft 365, Zoho, Proton, Fastmail, Mimecast, Proofpoint, Cloudflare Email Routing, and Amazon SES), SPF `v=spf1`, and `_dmarc` TXT policies with automatic apex domain fallback for subdomains (`shop.acme.com` -> `acme.com`).
- Tech stack and AI/SEO probes: matches 70 technology signatures sorted across 9 categories (`cms`, `ecommerce`, `analytics`, `adsPixels`, `crmChat`, `emailMarketing`, `payments`, `hostingCdn`, `frameworks`), checks `Strict-Transport-Security`, and streams the first 32 KB of `/llms.txt`, `/robots.txt`, and `/sitemap.xml`. When `/sitemap.xml` returns non-2xx, same-domain `Sitemap:` directives declared in `/robots.txt` are verified before setting `hasSitemapXml`.

### Use cases

- Post-scrape B2B list enrichment: enrich Google Maps or directory domain exports with public contact emails, phones, social profiles, and mail provider classification (`Google Workspace` vs `Microsoft 365`), using `requireEmail: true` so domains with no public email cost `$0`.
- Email security and deliverability screening: inspect `hasSpf`, raw `spfRecord`, `dmarcPolicy` (`reject`, `quarantine`, `none`, `missing`), and `hasHsts` across outbound or vendor lists before sending mail.
- Technographic and hiring-stack routing: segment accounts by detected CMS, payments, analytics, or ATS (`Greenhouse`, `Lever`, `Ashby`, `Workday`, `Personio`, etc.) and pass discovered `careersUrl` boards into job-scraping workflows.
- AI and SEO readiness audits: check `/llms.txt`, `/robots.txt`, and verified sitemap presence (including `robots.txt` `Sitemap:` fallbacks) across domain portfolios.

### Measured Cloud benchmarks

| Target | Config | Output Records | Peak RAM (256 MB Apify Cloud) | Duration |
| :--- | :--- | :--- | :--- | :--- |
| `apify.com` + `stripe.com` | `maxPagesPerDomain: 2`, DNS + AI/SEO enabled | `2` enriched domains | **`76.5 MB`** | **`3.09 s`** |

### Input parameters

| Parameter | Type | Default | Limits | Description |
| :--- | :--- | :--- | :--- | :--- |
| `urls` | `string[]` | *(required)* | 1+ public URLs/domains | Public websites or bare domains (deduplicated by domain). |
| `maxPagesPerDomain` | `integer` | `4` | `1` to `10` | Homepage plus up to `N-1` prioritized contact/about/careers/legal pages. |
| `requireEmail` | `boolean` | `false` | `true` / `false` | Skip pushing and billing domains where no public email address was discovered. |
| `includeDnsChecks` | `boolean` | `true` | `true` / `false` | Resolve MX, SPF, and DMARC records with subdomain apex fallback. |
| `includeSeoAiSignals` | `boolean` | `true` | `true` / `false` | Run 32 KB streaming checks for `/llms.txt`, `/robots.txt` (including declared `Sitemap:` URLs), and `/sitemap.xml`. |
| `concurrency` | `integer` | `5` | `1` to `20` | Concurrent domain workers running in parallel. |

#### Example input

```json
{
  "urls": ["https://apify.com", "stripe.com"],
  "maxPagesPerDomain": 4,
  "requireEmail": false,
  "includeDnsChecks": true,
  "includeSeoAiSignals": true,
  "concurrency": 5
}
```

### Example output

```json
{
  "domain": "apify.com",
  "url": "https://apify.com",
  "finalUrl": "https://apify.com/",
  "status": "ok",
  "httpStatus": 200,
  "hasHsts": true,
  "language": "en",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "organizationName": "Apify",
  "emails": ["hello@apify.com"],
  "emailDetails": [
    {
      "email": "hello@apify.com",
      "type": "role",
      "isDisposableDomain": false,
      "sourcePage": "https://apify.com/"
    }
  ],
  "phones": [],
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/apify",
    "github": "https://github.com/apify"
  },
  "careersUrl": "https://apify.com/jobs",
  "detectedAts": "Greenhouse",
  "mailProvider": "Google Workspace",
  "mxHosts": ["aspmx.l.google.com"],
  "hasSpf": true,
  "spfRecord": "v=spf1 include:_spf.google.com ~all",
  "dmarcPolicy": "reject",
  "dmarcRecord": "v=DMARC1; p=reject; rua=mailto:dmarc@apify.com",
  "allTechnologies": ["AWS CloudFront", "Google Tag Manager", "HubSpot", "Intercom", "Next.js"],
  "hasLlmsTxt": true,
  "hasRobotsTxt": true,
  "hasSitemapXml": true,
  "pagesCrawled": ["https://apify.com/", "https://apify.com/contact"],
  "error": null,
  "scrapedAt": "2026-11-24T18:24:11.608Z"
}
```

### Output field reference

| Field | Type | Description |
| :--- | :--- | :--- |
| `domain`, `url`, `finalUrl` | `string\|null` | Root domain, requested origin, and post-redirect URL. |
| `status`, `httpStatus`, `error` | `string`, `number\|null` | `"ok"`/`"error"`, HTTP status, and error or WAF/parked reason. |
| `hasHsts`, `language` | `boolean\|null`, `string\|null` | Active `Strict-Transport-Security` flag and page language code. |
| `title`, `description`, `organizationName` | `string\|null` | Page title, meta description, and Schema.org/OpenGraph org name. |
| `emails`, `emailDetails` | `string[]`, `object[]` | Public contact emails with `role`/`personal`, disposable flag, and source URL. |
| `phones`, `socialLinks` | `string[]`, `object` | Digit-deduplicated phones and normalized social profile URLs. |
| `careersUrl`, `detectedAts` | `string\|null` | Discovered careers/jobs page URL and detected ATS provider (11 supported). |
| `mailProvider`, `mxHosts` | `string\|null`, `string[]` | Primary MX mail provider (`null` on DNS timeout) and priority-sorted MX hosts. |
| `hasSpf`, `spfRecord` | `boolean\|null`, `string\|null` | SPF presence (`null` on DNS timeout) and raw `v=spf1` TXT record. |
| `dmarcPolicy`, `dmarcRecord` | `string\|null` | `reject`, `quarantine`, `none`, `missing`, or `null`, plus raw DMARC TXT. |
| `techStack`, `allTechnologies` | `object`, `string[]` | Categorized tech breakdown and flat sorted list of detected technologies. |
| `hasLlmsTxt`, `hasRobotsTxt`, `hasSitemapXml` | `boolean\|null` | Soft-404-filtered AI/SEO flags (with `robots.txt` `Sitemap:` fallback). |
| `pagesCrawled`, `scrapedAt` | `string[]`, `string` | Crawled internal URLs and UTC extraction timestamp. |

### Integrations & API

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('tsun_tsun/website-lead-tech-enricher').call({
    urls: ['apify.com', 'stripe.com'],
    maxPagesPerDomain: 4,
    includeDnsChecks: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => ({ domain: i.domain, emails: i.emails, ats: i.detectedAts })));
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("tsun_tsun/website-lead-tech-enricher").call(
    run_input={"urls": ["apify.com", "stripe.com"], "includeDnsChecks": True}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["domain"], item["mailProvider"], item["detectedAts"], item["emails"])
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/tsun_tsun~website-lead-tech-enricher/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://apify.com","stripe.com"],"maxPagesPerDomain":3}'
```

#### Apify MCP Server (Claude Code, Claude Desktop, Cursor)

Add this Actor as a Streamable HTTP MCP tool in Claude Code:

```bash
claude mcp add --transport http apify-lead-enricher \
  "https://mcp.apify.com/?tools=tsun_tsun/website-lead-tech-enricher" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

Or configure any MCP client with Streamable HTTP JSON:

```json
{
  "mcpServers": {
    "apify-lead-enricher": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=tsun_tsun/website-lead-tech-enricher",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

### Pay-Per-Event pricing

| Event (Apify Store Label) | Free / 1k | Bronze (-10%) | Silver (-20%) | Gold+ (-30%) |
| :--- | :--- | :--- | :--- | :--- |
| **Enriched live domain** (`domain-enriched`) | `$3.00` | `$2.70` | `$2.40` | `$2.10` |

On Apify's Free plan, the included **$5/month free credit** covers **1,666 enriched live domains/month** at `$3.00 / 1k`, with `$0` start fee, `$0` compute fee, and `$0` proxy cost. Dead URLs, parked domains, WAF challenge pages, and domains filtered out by `requireEmail: true` cost **$0**.

### Frequently asked questions

#### Does this Actor verify individual email mailboxes via SMTP?

No. It extracts public contact emails published on company pages and Schema.org JSON-LD, then checks domain-level DNS MX, SPF, and DMARC records to confirm the domain accepts mail and identify its mail provider. It does not send SMTP `VRFY`/`RCPT TO` probes or guess unprinted employee addresses.

#### How does `hasSitemapXml` handle sites like `stripe.com` where `/sitemap.xml` returns 404?

When `/sitemap.xml` returns a non-2xx status or an HTML soft-404, the Actor inspects `/robots.txt` for same-domain `Sitemap:` directives, fetches up to three declared sitemap URLs (first 32 KB each), and verifies `<urlset>` or `<sitemapindex>` XML before returning `hasSitemapXml`.

#### Why can `mailProvider`, `hasSpf`, or `dmarcPolicy` return `null`?

If `includeDnsChecks` is `false` or a DNS lookup hits a transient timeout or `SERVFAIL`, those fields return `null` (indeterminate) instead of falsely reporting `"None"`, `false`, or `"missing"`. Authoritative `ENODATA` or `ENOTFOUND` replies report `"None"`, `false`, and `"missing"` directly.

#### When is `domain-enriched` billed as `$0`?

Dead hosts, parked domains, Cloudflare/Imperva WAF challenge interstitials (`status: "error"`), and live domains with zero public emails when `requireEmail: true` is enabled are never billed.

### When not to use this Actor

- JavaScript-only client-rendered SPAs with no SSR HTML: if contact emails, navigation links, or ATS embeds render strictly after client-side hydration, use a headless browser Actor.
- Finding private employee email addresses not published on the website: this Actor reads public website contacts and domain DNS records rather than permuting personal mailbox names.
- Domains behind hard bot-wall interstitials: sites requiring JS proof-of-work challenges return `status: "error"` at `$0` instead of launching Chrome.

### Runtime & limits

- Strips non-JSON-LD `<script>`, `<style>`, `<noscript>`, and `<svg>` blocks before Cheerio parsing and releases each homepage and sub-page buffer immediately.
- Streams only the first `32 KB` for `/llms.txt`, `/robots.txt`, and sitemap probes; enforces public-host DNS/IPv6 checks, `5 MB` HTML caps, bounded `Retry-After` retries on `429`/`5xx`, clean abort handling, and 5-second DNS timeouts.

### Related Actors

| Actor | What it covers |
| :--- | :--- |
| [Shopify Store & Products Scraper (Prices & Apps)](https://apify.com/tsun_tsun/shopify-store-intel) | Extract Shopify catalogs, discount percentages, themes, and 35+ installed apps. |
| [WooCommerce Store & Product Scraper (Prices & Plugins)](https://apify.com/tsun_tsun/woocommerce-store-intel) | Extract WooCommerce catalogs, decimal prices, and WordPress plugin stacks. |
| [Google Play Store & Reviews Scraper ($0.10/1k)](https://apify.com/tsun_tsun/google-play-reviews-scraper) | Extract Android app listings, developer contact emails, and paginated Google Play user reviews. |
| [Apple App Store & Reviews Scraper (iOS Apps & Ratings)](https://apify.com/tsun_tsun/app-store-reviews-scraper) | Pull iOS App Store metadata, ratings, and filtered customer reviews. |
| [Direct ATS Jobs Scraper (Greenhouse, Lever & Ashby)](https://apify.com/tsun_tsun/ats-career-jobs-scraper) | Feed `careersUrl` / `detectedAts` boards directly into structured Greenhouse, Lever, Ashby, Workable, and SmartRecruiters job extraction. |
| [Fast Website & Sitemap Markdown Crawler for AI/RAG](https://apify.com/tsun_tsun/fast-website-markdown-crawler) | Convert multi-page sites into clean Markdown for RAG pipelines. |
| [Apify Automation Toolkit](https://pie527645-cloud.github.io/apify-automation-toolkit/) | Free scripts, MCP config helpers, and n8n workflow templates for pairing these Actors with Clay and CRM pipelines. |

# Changelog

This Actor's version history is a separate document: https://apify.com/tsun_tsun/website-lead-tech-enricher/changelog.md

# Actor input Schema

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

Public website URLs or bare domains to enrich (e.g. https://apify.com, stripe.com). Duplicate domains are automatically deduplicated; private/internal hosts are rejected.

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

Homepage plus up to N-1 prioritized internal pages (contact, kontakt, contacto, about, a-propos, team, careers, jobs, imprint, impressum, mentions-legales, aviso-legal, support).

## `requireEmail` (type: `boolean`):

When enabled, domains where no public email address is discovered are skipped before pushing to the dataset and never billed for domain-enriched.

## `includeDnsChecks` (type: `boolean`):

Resolve MX, SPF, and DMARC records (with apex domain fallback for subdomains), classify primary mail provider, and return raw spfRecord and dmarcRecord strings.

## `includeSeoAiSignals` (type: `boolean`):

Perform 32 KB streaming HTTP checks for /llms.txt, /robots.txt (including declared Sitemap: directives), and /sitemap.xml while rejecting SPA HTML soft-404s.

## `concurrency` (type: `integer`):

Number of domains enriched in parallel (1 to 20).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "stripe.com"
  ],
  "maxPagesPerDomain": 4,
  "requireEmail": false,
  "includeDnsChecks": true,
  "includeSeoAiSignals": true,
  "concurrency": 5
}
```

# Actor output Schema

## `summary` (type: `string`):

JSON summary reporting requested, enriched, charged, and skipped domain counts plus budget status.

## `enrichedDomains` (type: `string`):

Dataset items containing contacts, careers/ATS links, DNS MX/SPF/DMARC diagnostics, tech stacks, and AI/SEO readiness per domain.

# 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://stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tsun_tsun/website-lead-tech-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://apify.com",
        "https://stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tsun_tsun/website-lead-tech-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://apify.com",
    "https://stripe.com"
  ]
}' |
apify call tsun_tsun/website-lead-tech-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tsun_tsun/website-lead-tech-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/sdUD5BTTi40lmt4jR/builds/YkXgmdUfe3dds2jzQ/openapi.json
