# Domain WHOIS, RDAP, DNS, DMARC & SSL Checker Scraper (`autotroph/domain-rdap-dns-tls-normalizer`) Actor

Bulk inspect domains for RDAP WHOIS registrar, domain age & expiry, DNS A/MX/NS, SPF & DMARC email posture, live TLS/SSL cert expiry & HTTP security headers (HSTS/CSP) with 0-100 score. Built for AppSec, B2B enrichment & Apify MCP.

- **URL**: https://apify.com/autotroph/domain-rdap-dns-tls-normalizer.md
- **Developed by:** [Shuma Fujino](https://apify.com/autotroph) (community)
- **Categories:** Developer tools, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 normalized domain intelligences

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

## Domain WHOIS, RDAP, DNS, DMARC & SSL Checker Scraper

Bulk inspect domains across **authoritative IANA RDAP WHOIS (1,200+ TLDs), Google DoH DNS/SPF/DMARC/MTA-STS, direct TLS 1.2/1.3 SSL expiry, and HTTPS security headers (HSTS/CSP)** with a transparent **0–100 security score** — **zero proxies, $0.00005 start fee (512 MB default), $0.003/domain ($3.00 / 1,000 domains)**. MCP-ready.

### Quickstart Input

Click **Start** with the pre-filled defaults to audit 3 domains across all 4 protocol layers in seconds:

```json
{
  "domains": ["apify.com", "cloudflare.com", "github.com"],
  "includeRdap": true,
  "includeDns": true,
  "includeTls": true,
  "includeHttpHeaders": true,
  "maxItems": 10
}
```

### Why This Actor Beats Flat WHOIS & DNS Scrapers

| Capability | Naive WHOIS / Single-Source DNS Scrapers | Domain RDAP WHOIS, DNS/DMARC & TLS Security Normalizer |
|---|---|---|
| **Authoritative RDAP WHOIS** | Scrapes HTML WHOIS sites or brittle port-43 text parsers (rate-limited, proxy burn, inconsistent date formats) | Uses **official IANA RDAP Bootstrap (`data.iana.org/rdap/dns.json`, 1,203 TLDs)** + `rdap.org` fallback with ISO-8601 `registered_at`, `expires_at`, `domain_age_days`, `days_until_expiry`, registrar IANA ID, EPP transfer lock, and `dnssec_signed` |
| **Email Authentication (SPF & DMARC)** | Dumps raw unparsed TXT blobs or ignores `_dmarc.<domain>` and `_mta-sts.<domain>` | Full **RFC 7208 SPF parser** (counts DNS lookup budget vs 10-lookup limit, detects duplicate records & `-all`/`~all`/`+all`), **RFC 7489 DMARC parser** (`p`, `sp`, `pct`, `rua`, `ruf`, `adkim`, `aspf`, `dmarc_enforced`), plus **MTA-STS** detection |
| **Provider Fingerprinting** | Leaves buyers writing fragile regexes against raw MX/NS strings | Deterministically fingerprints **DNS providers** (Cloudflare, Route 53, Google Cloud DNS, Akamai, Azure, Vercel, NS1, etc.) and **Email providers** (Google Workspace, Microsoft 365, Proofpoint, Mimecast, Proton, Fastmail, AWS SES, etc.) |
| **Live TLS Certificate & Expiry** | No SSL/TLS verification, or relies on stale cached datasets | Direct live **TLS 1.2/1.3 SNI handshake on port 443** returning exact protocol version, cipher, subject CN, issuer org, ISO `tls_not_after`, `tls_days_until_expiry`, `tls_expired`, and SAN count |
| **HTTPS Security Headers** | Completely missing | Live HTTPS probe extracting status, final URL, **HSTS** (`max-age`, `preload`), **CSP**, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, and `Permissions-Policy` |
| **Deterministic Scoring & Verification** | Unvalidated payloads, broken dates, silent empty fields | Built-in transparent **0–100 `security_score`**, `security_grade` (`A+`–`F`), actionable `risk_flags`, and `integrity_valid` verification (**100% pass across 20 live multi-TLD domains** vs `10.0%` for flat RDAP) |

### Verified Live Output Schema Example (`apify.com`)

```json
{
  "canonical_id": "domain:apify.com",
  "domain": "apify.com",
  "apex_domain": "apify.com",
  "tld": "com",
  "data_sources": ["iana_rdap", "google_doh", "direct_tls", "https_headers"],
  "rdap_available": true,
  "registrar_name": "Amazon Registrar, Inc.",
  "registrar_iana_id": "468",
  "is_transfer_locked": true,
  "dns_provider": "Amazon Route 53",
  "email_provider": "Google Workspace",
  "has_ipv6": true,
  "has_caa": true,
  "dnssec_effective": true,
  "spf_present": true,
  "spf_policy": "hardfail (-all)",
  "spf_exceeds_10_lookup_limit": false,
  "dmarc_present": true,
  "dmarc_policy": "reject",
  "dmarc_enforced": true,
  "mta_sts_present": true,
  "tls_reachable": true,
  "tls_version": "TLSv1.3",
  "tls_expired": false,
  "https_reachable": true,
  "http_status": 200,
  "hsts_present": true,
  "csp_present": true,
  "security_score": 100,
  "security_grade": "A+",
  "risk_flags": [],
  "integrity_valid": true,
  "integrity_errors": []
}
```

### Input Configuration

- **`domains`** *(required)*: Array of domains or URLs (e.g., `["apify.com", "https://www.stripe.com/pricing", "bbc.co.uk"]`). Schemes, `www.`, ports, and paths are normalized automatically; multi-part suffixes (`.co.uk`, `.co.jp`, `.com.au`, etc.) are handled cleanly.
- **`includeRdap` / `includeDns` / `includeTls` / `includeHttpHeaders`**: Enable or disable individual protocol layers (all `true` by default).
- **`maxItems`** *(1–1000, default 50)*, **`maxConcurrency`** *(1–12, default 6)*, **`timeoutSeconds`** *(2–30, default 8)*, **`strictValidation`** *(default `false`)*.

### MCP & AI Agent Integration

Connect this Actor directly to Claude Code, Cursor, VS Code, or any **Model Context Protocol (MCP)** client via Apify's hosted MCP server:

```bash
claude mcp add --transport http domain-rdap-tls \
  "https://mcp.apify.com?tools=autotroph/domain-rdap-dns-tls-normalizer" \
  --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

```json
{
  "mcpServers": {
    "domain-rdap-tls": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=autotroph/domain-rdap-dns-tls-normalizer",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

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

- **`apify-actor-start`**: `$0.00005` per run start (512 MB default — essentially free to test)
- **`domain-normalized`**: `$0.003` per normalized, integrity-verified domain (`$3.00 / 1,000 domains` — includes authoritative RDAP WHOIS, 8-record DoH DNS/SPF/DMARC/CAA/MTA-STS audit, direct TLS handshake, HTTPS security header probe, and deterministic security scoring)
- **Zero proxy surcharge**: 100% direct protocol and official IANA/Google DoH endpoints.

### Local Standalone Test

```bash
python -m src.main --local-test --domains apify.com,cloudflare.com,github.com
```

# Actor input Schema

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

List of domains or URLs to normalize and audit (schemes, www., ports, and paths are stripped automatically).

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

Query authoritative TLD RDAP servers via IANA bootstrap (registrar, IANA ID, creation/expiry dates, age, EPP transfer locks, DNSSEC).

## `includeDns` (type: `boolean`):

Resolve A, AAAA, NS, MX, TXT, CAA, \_dmarc, and \_mta-sts records via Google DoH with RFC 7208 SPF & RFC 7489 DMARC analysis and provider fingerprinting.

## `includeTls` (type: `boolean`):

Perform direct TLS 1.2/1.3 SNI handshake on port 443 to verify protocol version, cipher, issuer, expiry days, and SANs.

## `includeHttpHeaders` (type: `boolean`):

Probe HTTPS status, final redirect URL, HSTS (max-age/preload), CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy.

## `maxItems` (type: `integer`):

Maximum number of unique domains to process in this run (1 to 1000).

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

Parallel worker threads for domain lookups (1 to 12).

## `timeoutSeconds` (type: `number`):

Network timeout per RDAP/DoH/TLS/HTTPS probe.

## `strictValidation` (type: `boolean`):

If true, skip records that fail deterministic schema/integrity checks.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "cloudflare.com",
    "github.com"
  ],
  "includeRdap": true,
  "includeDns": true,
  "includeTls": true,
  "includeHttpHeaders": true,
  "maxItems": 10,
  "maxConcurrency": 6,
  "timeoutSeconds": 8,
  "strictValidation": false
}
```

# Actor output Schema

## `domains` (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": [
        "apify.com",
        "cloudflare.com",
        "github.com"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("autotroph/domain-rdap-dns-tls-normalizer").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": [
        "apify.com",
        "cloudflare.com",
        "github.com",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("autotroph/domain-rdap-dns-tls-normalizer").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": [
    "apify.com",
    "cloudflare.com",
    "github.com"
  ],
  "maxItems": 10
}' |
apify call autotroph/domain-rdap-dns-tls-normalizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,autotroph/domain-rdap-dns-tls-normalizer"
        }
    }
}
```

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/LLzCjgOmAWmcjfDE7/builds/ptA5osb9Fpf50AKlU/openapi.json
