# Domain Intelligence, Email Security & Tech Stack API (`deliberate_gratitude_shj/domain-intel-api`) Actor

Fast batch Domain Intelligence, Email Security (MX, SPF, DMARC), RDAP registration, SSL/TLS certificate audit, and HTTP/CDN/tech-stack fingerprinting in 128 MB RAM with MCP-ready JSON.

- **URL**: https://apify.com/deliberate_gratitude_shj/domain-intel-api.md
- **Developed by:** [Apex Automation Labs](https://apify.com/deliberate_gratitude_shj) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 domains analyzed

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

## Domain Intelligence, Email Security (SPF/DMARC) & Tech Stack API

Batch-analyze any list of domains or URLs for **DNS records & email host (`Google Workspace`, `Microsoft 365`, `Proofpoint`, `Mimecast`, `Zoho`)**, **SPF & DMARC deliverability scoring (`0–100`)**, **RDAP / WHOIS domain age & registrar**, **SSL/TLS certificate expiration**, and **HTTP/CDN/WAF & tech stack fingerprinting**—at **$2.00 per 1,000 domains** (`$0.002 / domain`, `$0` start fee) inside **128 MB RAM**.

Built for **B2B lead enrichment**, **cold-email deliverability agencies**, **security & compliance audits**, **n8n / Make.com workflows**, and **AI coding/sales agents (MCP)**.

***

### Why Use This Actor Instead of Legacy Enrichment APIs?

- **Pure Native Node.js Speed (128 MB RAM):** Uses native `dns/promises`, `node:tls`, and `fetch` (HTTP/RDAP)—zero headless browsers, zero proxies, and strict per-probe timeouts so dead/unresolvable domains never stall a batch.
- **Email Provider & Outbound Readiness Intel:** Identifies email hosts + enterprise security gateways (`Proofpoint`, `Mimecast`, `Barracuda`), parses `SPF` mechanisms/lookup counts (`>10` RFC 7208 warning) and `DMARC` policies (`none` / `quarantine` / `reject` + `rua`), and outputs an actionable `emailAuthScore` (`0–100`) and `emailAuthGrade` (`A–F`).
- **Live RDAP Bootstrap + Graceful Fallback:** Resolves authoritative TLD RDAP servers via IANA bootstrap (`registrar`, `createdAt`, `expiresAt`, `domainAgeDays`, `dnssecSigned`, EPP statuses) and falls back cleanly if a TLD lacks RDAP.
- **Live TLS/SSL Socket Inspection:** Audits live port `443` certificates (`issuer`, `subject`, `sanDomains`, `validFrom`, `validTo`, `daysUntilExpiry`, `isExpired`, `isExpiringSoon`) without relying on stale third-party caches.
- **HTTP Redirects, Tech Stack & Security Headers:** Traces redirect hops, measures `responseTimeMs`, fingerprints CDNs/WAFs (`Cloudflare`, `AWS CloudFront`, `Vercel`, `Netlify`, `Fastly`, `Akamai`) and web stacks (`Shopify`, `WordPress`, `Webflow`, `Next.js`, `Stripe`, `HubSpot`, `Intercom`), and checks `HSTS`, `CSP`, `X-Frame-Options`, `robots.txt`, and `sitemap.xml`.

***

### Quick Start Input

Click **Start** immediately using the built-in defaults, or paste this JSON:

```json
{
  "domains": [
    "stripe.com",
    "https://linear.app",
    "shopify.com",
    "cloudflare.com",
    "vercel.com"
  ],
  "maxDomains": 50,
  "includeRdap": true,
  "includeSsl": true,
  "includeHttpTech": true,
  "includeRawRecords": true,
  "concurrency": 10,
  "timeoutMs": 10000
}
```

#### Key Input Options

- **`domains`**: Array of raw domains (`stripe.com`), full URLs (`https://www.linear.app/pricing`), or `{"domain": "..."}` objects. Automatically normalized (strips schemes, paths, leading `www.`) and deduplicated.
- **`maxDomains`**: Strict Pay-Per-Event cap (`1`–`5000`, default `50`).
- **`includeRdap` / `includeSsl` / `includeHttpTech`**: Toggle individual inspection modules (`DNS` & `Email Security` are always included).
- **`includeRawRecords`**: Set to `false` to omit raw `a`, `aaaa`, `mx`, `ns`, `txt` arrays for ultra-compact LLM/MCP context payloads.

***

### Sample Output JSON (Verified Live Cloud Run)

In a live Apify Cloud benchmark at **128 MB RAM** across 5 domains (including an unresolvable `.invalid` edge case), the run completed in **4.44s** (`2.45s` analysis time) using **`0.0001542` Compute Units** (`~0.031 CU / 1,000 domains`) and **58.5 MB peak RAM**.

Verbatim dataset item for `https://www.linear.app/pricing`:

```json
{
  "domain": "linear.app",
  "apexDomain": "linear.app",
  "inputValue": "https://www.linear.app/pricing",
  "reachable": true,
  "emailProvider": "Google Workspace",
  "emailAuthScore": 95,
  "emailAuthGrade": "A",
  "dmarcPolicy": "reject",
  "spfAllQualifier": "~all",
  "registrar": "CloudFlare, Inc.",
  "domainAgeDays": 3130,
  "sslValid": true,
  "sslDaysUntilExpiry": 88,
  "httpStatusCode": 200,
  "finalUrl": "https://linear.app/",
  "dns": {
    "resolved": true,
    "a": ["104.18.40.45", "172.64.147.211"],
    "aaaa": ["2606:4700:440a::ac40:93d3", "2a06:98c1:3105::6812:282d"],
    "mx": [
      { "exchange": "aspmx.l.google.com", "priority": 1 },
      { "exchange": "alt1.aspmx.l.google.com", "priority": 5 }
    ],
    "ns": ["zara.ns.cloudflare.com", "tim.ns.cloudflare.com"],
    "txt": ["v=spf1 include:_spf.google.com include:spf.mtasv.net include:44092442.spf10.hubspotemail.net include:amazonses.com ~all"],
    "dnsProvider": "Cloudflare DNS",
    "emailProvider": "Google Workspace",
    "emailSecurityGateways": [],
    "verificationProviders": ["Google Search Console", "Zoom", "Slack", "Stripe", "Linear", "Notion", "OpenAI", "Apple", "DocuSign", "Microsoft 365"]
  },
  "emailSecurity": {
    "spfPresent": true,
    "spfRecord": "v=spf1 include:_spf.google.com include:spf.mtasv.net include:44092442.spf10.hubspotemail.net include:amazonses.com ~all",
    "spfAllQualifier": "~all",
    "spfIncludes": ["_spf.google.com", "spf.mtasv.net", "44092442.spf10.hubspotemail.net", "amazonses.com"],
    "spfLookupCountEstimate": 4,
    "hasMultipleSpfRecords": false,
    "dmarcPresent": true,
    "dmarcRecord": "v=DMARC1; p=reject; rua=mailto:re+1790296a475d@inbound.dmarcdigests.com; aspf=r; pct=100",
    "dmarcPolicy": "reject",
    "dmarcSubdomainPolicy": null,
    "dmarcPct": 100,
    "dmarcRua": ["mailto:re+1790296a475d@inbound.dmarcdigests.com"],
    "dmarcRuf": [],
    "score": 95,
    "grade": "A",
    "readyForOutbound": true,
    "flags": ["SPF_SOFTFAIL_TILDE_ALL"]
  },
  "rdap": {
    "supported": true,
    "rdapUrl": "https://pubapi.registry.google/rdap/domain/linear.app",
    "registrar": "CloudFlare, Inc.",
    "createdAt": "2018-05-09T23:45:22.384Z",
    "updatedAt": "2026-12-04T17:16:37.376Z",
    "expiresAt": "2030-05-09T23:45:22.384Z",
    "domainAgeDays": 3130,
    "daysUntilExpiration": 1252,
    "statuses": ["client transfer prohibited"],
    "dnssecSigned": false,
    "error": null
  },
  "ssl": {
    "valid": true,
    "protocol": "TLSv1.3",
    "issuer": "Google Trust Services",
    "subject": "linear.app",
    "sanDomains": ["linear.app", "ornj730p.cms-cdn.linear.app"],
    "validFrom": "2026-12-03T06:25:38.000Z",
    "validTo": "2027-03-03T07:07:38.000Z",
    "daysUntilExpiry": 88,
    "isExpired": false,
    "isExpiringSoon": false,
    "authorizationError": null,
    "error": null
  },
  "http": {
    "reachable": true,
    "finalUrl": "https://linear.app/",
    "statusCode": 200,
    "redirectHops": 0,
    "responseTimeMs": 164,
    "title": "Linear – The system for product development",
    "serverHeader": "cloudflare",
    "poweredBy": null,
    "cdnWaf": ["Cloudflare", "Google Cloud / GFE"],
    "technologies": ["Next.js"],
    "securityHeaders": {
      "hsts": true,
      "csp": true,
      "xFrameOptions": null,
      "xContentTypeOptions": "nosniff",
      "referrerPolicy": "same-origin"
    },
    "hasRobotsTxt": true,
    "hasSitemapXml": true,
    "error": null
  },
  "errors": [],
  "analyzedAt": "2026-12-04T17:16:37.606Z"
}
```

***

### Native MCP Integration Guide (`mcp.apify.com`)

Connect this Actor directly to **Claude Desktop**, **Cursor**, or **Windsurf** via Apify's official hosted MCP server. Replace `<YOUR_APIFY_TOKEN>` with your Apify API token.

#### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "apify-domain-intel": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=deliberate_gratitude_shj/domain-intel-api",
        "--header",
        "Authorization: Bearer <YOUR_APIFY_TOKEN>"
      ]
    }
  }
}
```

#### Cursor (`.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "apify-domain-intel": {
      "url": "https://mcp.apify.com/?actors=deliberate_gratitude_shj/domain-intel-api",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

#### Windsurf (`~/.codeium/windsurf/mcp_config.json`)

```json
{
  "mcpServers": {
    "apify-domain-intel": {
      "serverUrl": "https://mcp.apify.com/?actors=deliberate_gratitude_shj/domain-intel-api",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

#### Ready-to-Use AI Agent Prompts

1. **B2B Prospect Enrichment:** *"Use `domain-intel-api` to analyze `["acme.com", "linear.app", "vercel.com"]` and summarize each company's email host, DMARC policy, CDN/tech stack, and domain age."*
2. **Cold-Email & Security Audit:** *"Run `domain-intel-api` on our sending domains and flag any domain with `emailAuthScore < 75`, missing DMARC enforcement, or SSL certificates expiring within 30 days."*

***

### n8n & Make.com Quick Guide

#### n8n Setup (HTTP Request Node)

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/deliberate_gratitude_shj~domain-intel-api/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>`
- **Headers:** `Content-Type: application/json`
- **Body:**

```json
{
  "domains": ["stripe.com", "linear.app", "shopify.com"],
  "includeRdap": true,
  "includeSsl": true,
  "includeHttpTech": true
}
```

#### Make.com Setup

1. Add **Apify → Run an Actor** (`deliberate_gratitude_shj/domain-intel-api`) with **Run synchronously** enabled.
2. Route dataset items directly to HubSpot/CRM enrichment, Google Sheets, or Slack SSL/DMARC security alerts.

***

### Transparent Pay-Per-Event Pricing

Simple, predictable **Pay-Per-Event (PPE)** billing — **$0.00 actor start fee** and **$0.002 per analyzed domain** ($2.00 per 1,000 domains). Test free with Apify's monthly $5 free developer credit (up to 2,500 domains/month free).

| Domains Analyzed | Event Rate (`domain-analyzed`) | Estimated Total Cost |
|---:|---:|---:|
| **5 domains** (Quick Test) | $0.002 / domain | **$0.01** |
| **50 domains** (Default Batch) | $0.002 / domain | **$0.10** |
| **1,000 domains** | $0.002 / domain | **$2.00** |
| **5,000 domains** | $0.002 / domain | **$10.00** |

*Set `maxDomains` or Apify's `maxTotalChargeUsd` budget limit for exact spend control.*

***

### Frequently Asked Questions (FAQ)

**1. How does this Actor avoid port-25 SMTP timeouts?**\
Cloud IPs commonly block outbound port 25, causing legacy email validators to hang or fail. This Actor uses pure `dns/promises` (`MX`, `TXT`, `SPF`, `_dmarc`), public RDAP JSON, port-443 TLS sockets, and HTTP `GET`/`HEAD`—giving fast, deterministic results inside 128 MB RAM.

**2. What happens if a domain is invalid or doesn't resolve in DNS?**\
Unresolvable domains (`NXDOMAIN`) never crash a batch. They return `reachable: false`, `dns.resolved: false`, and an explanatory entry in `errors[]` so downstream CRM/n8n pipelines can filter or flag them cleanly.

**3. What if a TLD does not support public RDAP?**\
Some ccTLDs lack RDAP endpoints. When IANA bootstrap or `rdap.org` returns 404/unsupported, the Actor sets `rdap.supported: false` with a clear `rdap.error` while still returning full DNS, Email Security, SSL, and HTTP/Tech results.

**4. Can I reduce JSON size for LLM / MCP tool calls?**\
Yes. Set `includeRawRecords: false` to omit raw DNS arrays (`a`, `aaaa`, `mx`, `ns`, `txt`) while keeping `emailProvider`, `dnsProvider`, `emailAuthScore`, `dmarcPolicy`, `rdap`, `ssl`, and `http`.

# Actor input Schema

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

List of domains or full URLs to analyze (e.g. stripe.com, https://linear.app/pricing). Inputs are automatically normalized and deduplicated.

## `maxDomains` (type: `integer`):

Maximum number of unique domains to analyze in this run. Acts as a strict Pay-Per-Event spending cap.

## `includeRdap` (type: `boolean`):

Query public RDAP bootstrap servers for registrar, creation/expiration dates, domain age, and EPP status flags.

## `includeSsl` (type: `boolean`):

Inspect live TLS certificate issuer, SAN domains, validity dates, days until expiry, and expiration warnings.

## `includeHttpTech` (type: `boolean`):

Trace HTTP redirects, response time, CDN/WAF, CMS/framework stack, security headers (HSTS/CSP/X-Frame-Options), robots.txt, and sitemap.xml.

## `includeRawRecords` (type: `boolean`):

Include full A, AAAA, MX, NS, and TXT record arrays in output. Disable for ultra-compact MCP/LLM payloads.

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

Maximum number of domains analyzed in parallel.

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

Strict timeout in milliseconds per network/DNS/TLS/RDAP probe so dead or unresponsive domains never hang.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "https://linear.app",
    "shopify.com",
    "cloudflare.com",
    "vercel.com"
  ],
  "maxDomains": 50,
  "includeRdap": true,
  "includeSsl": true,
  "includeHttpTech": true,
  "includeRawRecords": true,
  "concurrency": 10,
  "timeoutMs": 10000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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": [
        "stripe.com",
        "https://linear.app",
        "shopify.com",
        "cloudflare.com",
        "vercel.com"
    ],
    "maxDomains": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("deliberate_gratitude_shj/domain-intel-api").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": [
        "stripe.com",
        "https://linear.app",
        "shopify.com",
        "cloudflare.com",
        "vercel.com",
    ],
    "maxDomains": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("deliberate_gratitude_shj/domain-intel-api").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": [
    "stripe.com",
    "https://linear.app",
    "shopify.com",
    "cloudflare.com",
    "vercel.com"
  ],
  "maxDomains": 50
}' |
apify call deliberate_gratitude_shj/domain-intel-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deliberate_gratitude_shj/domain-intel-api"
        }
    }
}
```

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/hJdQ75438n8wfHGsq/builds/LrBN4q4WbFmk1WxHt/openapi.json
