# Bulk Domain, DNS, DMARC/SPF & Tech Stack ($0.006/domain) (`andque/domain-email-stack-lookup`) Actor

Fast 1-input -> 1-JSON lookup for DNS (A/AAAA/NS/MX/TXT), RDAP registration & expiration dates, Email Deliverability posture score (SPF/DMARC), HTTP TTFB, public Tech Stack & /llms.txt detection. Anonymous benchmarks unlock at 200+ domains. Standby & MCP ready.

- **URL**: https://apify.com/andque/domain-email-stack-lookup.md
- **Developed by:** [Masatoshi Mori](https://apify.com/andque) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 domain dns + rdap + tech stack lookups

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Bulk Domain, DNS, Email Deliverability (DMARC/SPF) & Tech Stack Lookup ($0.006/domain)

**1 Input -> 1 Normalized JSON.** Instant domain intelligence combining **DNS over HTTPS (A, AAAA, NS, MX, TXT)**, **RDAP registration & expiration dates**, **Email Deliverability Posture (SPF & DMARC policy grading 0–100)**, **HTTP TTFB latency**, and **public Tech Stack & `/llms.txt` detection**.

Built for **AI Agents (MCP)**, B2B enrichment pipelines, domain portfolio auditing, and email deliverability verification with **Standby synchronous mode (<3s response)** and transparent **Pay-Per-Event (PPE)** pricing.

***

### Transparent Pay-Per-Event (PPE) Pricing

No subscriptions. You only pay for the exact events triggered during your run:

| Event Name | Price (USD) | When it is charged |
|---|---|---|
| `apify-actor-start` | **$0.001** | Charged once when the Actor starts |
| `domain-basic` | **$0.006** / domain | Per domain for DNS (A/AAAA/NS/MX/TXT), RDAP dates, HTTP TTFB & tech stack |
| `email-posture` | **$0.008** / domain | Per domain when `includeEmailPosture: true` (SPF/DMARC parsing & 0–100 grade) |
| `bulk-100` | **$0.40** / 100 domains | Automatic bundle discount when querying a full batch of 100 domains |

***

### Output JSON Example (Exact Schema)

```json
{
  "domain": "cloudflare.com",
  "available": false,
  "rdap": {
    "registrar": "Cloudflare, Inc.",
    "createdAt": "2009-02-17T22:07:54Z",
    "expiresAt": "2030-02-17T22:07:54Z",
    "status": ["client delete prohibited", "client transfer prohibited"]
  },
  "dns": {
    "a": ["104.16.132.229", "104.16.133.229"],
    "aaaa": ["2606:4700::6810:84e5"],
    "ns": ["ns3.cloudflare.com", "ns4.cloudflare.com"],
    "mx": ["10 mailstream-east.mxrecord.io"],
    "txt": ["v=spf1 ip4:199.15.212.0/22 -all"]
  },
  "emailDeliverability": {
    "spf": {
      "present": true,
      "policy": "hardfail (-all)",
      "raw": "v=spf1 ip4:199.15.212.0/22 -all"
    },
    "dmarc": {
      "present": true,
      "policy": "reject",
      "pct": 100,
      "raw": "v=DMARC1; p=reject; pct=100"
    },
    "score": 100,
    "grade": "A"
  },
  "httpProfile": {
    "reachable": true,
    "statusCode": 200,
    "ttfbMs": 112,
    "serverHeader": "cloudflare",
    "techStack": ["cloudflare", "nextjs"],
    "hasLlmsTxt": true,
    "hasRobotsTxt": true,
    "publicContacts": ["https://cloudflare.com/contact"]
  },
  "anonymousBenchmarkComparison": {
    "status": "warming_up",
    "benchmarkDate": "2026-11-07",
    "realSampleSize": 42,
    "minRequiredSampleSize": 200,
    "emailPosturePercentile": null,
    "ttfbSpeedPercentile": null,
    "populationDmarcAdoptionRate": null,
    "populationLlmsTxtAdoptionRate": null
  },
  "delta": {
    "status": "new",
    "currentHash": "a94f8e1c...",
    "previousHash": null,
    "skippedDbWrite": false
  },
  "checkedAt": "2026-11-07T02:15:00.000Z"
}
```

***

### Why Use This Actor Over Standard WHOIS / DNS Scrapers?

1. **Unified DoH + RDAP + HTTP + DMARC in 1 Call**: No need to chain 4 separate Actors for DNS, WHOIS, tech stack, and email security.
2. **Honest Population Benchmarks**: `anonymousBenchmarkComparison` tracks real scanned domains in our ledger (`realSampleSize`). Comparative percentiles unlock automatically once the anonymous population sample reaches **200+ domains** (never fabricated).
3. **SHA-256 Change Detection Built-In**: Each response includes a deterministic `delta.currentHash` and `delta.status` (`new | changed | unchanged`) so scheduled pipelines can immediately filter out unchanged domains.

# Actor input Schema

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

List of domain names (1 to 100 domains per run, e.g. \["cloudflare.com", "stripe.com"]). Accepts bare domains or URLs.

## `includeEmailPosture` (type: `boolean`):

When enabled, parses SPF and \_dmarc TXT records and calculates a 0-100 deliverability grade (A-F) ($0.008/domain).

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

Probes HTTPS headers, measures TTFB latency in ms, fingerprints server/CMS stack, and checks for /llms.txt and /robots.txt.

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

Queries official RDAP registries for registrar name, creation date, and expiration date.

## Actor input object example

```json
{
  "domains": [
    "cloudflare.com",
    "example.com"
  ],
  "includeEmailPosture": true,
  "includeHttpTech": true,
  "includeRdap": true
}
```

# Actor output Schema

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

Normalized JSON records per domain including DNS, RDAP, SPF/DMARC score, HTTP TTFB, tech stack, and SHA-256 delta status.

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

Execution statistics, delta counts, and PPE charge summary.

# 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": [
        "cloudflare.com",
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("andque/domain-email-stack-lookup").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": [
        "cloudflare.com",
        "example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("andque/domain-email-stack-lookup").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": [
    "cloudflare.com",
    "example.com"
  ]
}' |
apify call andque/domain-email-stack-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andque/domain-email-stack-lookup"
        }
    }
}
```

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/ZJZ9lMoUSSbZqz15s/builds/9v0053hAPfFcjMKHb/openapi.json
