# B2B Contact, Tech Stack & DNS Auth Auditor (n8n & MCP) (`khoaphan/b2b-contact-auditor`) Actor

Robots.txt-compliant B2B lead enrichment Actor for automation agencies (n8n, Make, Zapier, Clay & MCP). Extracts verified public business emails, social profiles, web tech fingerprints, and MX/SPF/DMARC email infrastructure.

- **URL**: https://apify.com/khoaphan/b2b-contact-auditor.md
- **Developed by:** [Khoa Phan](https://apify.com/khoaphan) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.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/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 Company Contact, Tech Stack & DNS Auth Auditor (`n8n` / `Make` / `Zapier` / `MCP` Ready)

Deterministic, `robots.txt`-compliant B2B company enrichment Actor designed for **Automation Agencies, RevOps Workflows, and Model Context Protocol (MCP) Agents**.

### What It Extracts Per Domain

1. **Verified First-Party Public Contacts**: Deduplicated public emails across `/`, `/contact`, `/about`, `/services`, and `/.well-known/security.txt` (with asset/placeholder noise stripped).
2. **Social & Engineering Footprint**: Official GitHub, LinkedIn, X/Twitter, and YouTube links.
3. **Web & GTM Tech Stack**: Detects Next.js, Webflow, Shopify, WordPress, HubSpot, Stripe, Cloudflare, Intercom, Zendesk, PostHog, Plausible, Counter.dev, Vercel, Netlify, GitHub Pages, and JSON-LD Schema.
4. **Email Infrastructure & Deliverability Posture (`DNS-over-HTTPS`)**: Identifies active MX provider (`Google Workspace`, `Microsoft 365`, `Zoho Mail`, `Proton Mail`, etc.) plus `SPF` (`v=spf1`) and `DMARC` (`v=DMARC1`) policies.

### Sample Output

```json
{
  "domain": "khoaphan.dev",
  "start_url": "https://khoaphan.dev",
  "http_status": 200,
  "title": "Khoa Phan — Systems & AI Architect",
  "emails": ["khoa@khoaphan.dev", "contact@example.com"],
  "social_links": {
    "github": ["https://github.com/khoap1220-hue"],
    "linkedin": ["https://www.linkedin.com/in/khoa-phan-55bab8448"],
    "x_twitter": ["https://x.com/KPhan407"]
  },
  "tech_stack": ["Counter.dev Privacy Analytics", "GitHub Pages", "Schema.org JSON-LD"],
  "email_provider": "Zoho Mail",
  "has_spf": true,
  "has_dmarc": true,
  "pages_scanned": 4,
  "audited_at_utc": "2026-11-26T14:35:00Z"
}
```

### Custom White-Label Actors, Playwright Pipelines & MCP Servers

Built by **Khoa Phan** ([khoaphan.dev](https://khoaphan.dev) · `khoa@khoaphan.dev` · 21+ merged upstream OSS PRs · 5 official Anthropic MCP Registry servers). Available for white-label agency subcontracting and custom Apify/Playwright/MCP integrations.

# Actor input Schema

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

List of public company websites or root domains to enrich (e.g. https://khoaphan.dev).

## `crawlContactPages` (type: `boolean`):

Also inspect standard first-party contact and about routes on the same origin.

## `checkDnsEmailAuth` (type: `boolean`):

Resolve public MX provider (Google Workspace, Microsoft 365, Zoho, Proton, etc.) plus SPF and DMARC policies.

## `respectRobotsTxt` (type: `boolean`):

Check /robots.txt before fetching pages and skip disallowed paths.

## `requestTimeoutSecs` (type: `integer`):

Per-request HTTP timeout in seconds.

## Actor input object example

```json
{
  "domains": [
    "https://khoaphan.dev"
  ],
  "crawlContactPages": true,
  "checkDnsEmailAuth": true,
  "respectRobotsTxt": true,
  "requestTimeoutSecs": 12
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing all enriched company records

# 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": [
        "https://khoaphan.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khoaphan/b2b-contact-auditor").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": ["https://khoaphan.dev"] }

# Run the Actor and wait for it to finish
run = client.actor("khoaphan/b2b-contact-auditor").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": [
    "https://khoaphan.dev"
  ]
}' |
apify call khoaphan/b2b-contact-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khoaphan/b2b-contact-auditor"
        }
    }
}
```

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/x1JRqRg5SA1yUbDXB/builds/mGvH77dGQhNRTFmrV/openapi.json
