# Bulk Domain RDAP WHOIS, DNS Records & SSL Expiry API (`regenerative_cornice/domain-rdap-dns-ssl-intel`) Actor

Bulk domain WHOIS/RDAP ownership, registrar, age & expiry countdown, full public DNS (A, AAAA, NS, MX, CAA, SOA, TXT), DNSSEC, BGP ASN/CDN hosting detection & TLS/SSL certificate expiry intelligence for domain investors, security teams, brand protection, and MSPs.

- **URL**: https://apify.com/regenerative_cornice/domain-rdap-dns-ssl-intel.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (community)
- **Categories:** Developer tools, Automation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 domain intelligence records

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

## Bulk Domain RDAP WHOIS, DNS Records & SSL Expiry API

Inspect **1 to 1,000+ domains** in parallel to collect official **RDAP WHOIS registration & renewal data**, **full passive public DNS records (`A`, `AAAA`, `NS`, `MX`, `CAA`, `SOA`, `TXT`, `DS`)**, **BGP ASN & CDN/cloud hosting attribution**, and **TLS/SSL certificate expiry countdowns** — all structured into flat, analysis-ready JSON.

Designed for **domain portfolio investors**, **cybersecurity asset inventory & attack-surface management (ASM) teams**, **brand protection analysts**, **MSPs**, **n8n / Make automation pipelines**, and **AI agents (via Apify MCP)**.

***

### What Makes This Actor Production-Grade?

Legacy port-43 WHOIS scrapers break constantly on inconsistent registry text formats and aggressive IP bans. This Actor uses official modern internet standards and 100% passive infrastructure lookups:

- **Official IANA & Verisign RDAP Bootstrap**: Queries `https://rdap.verisign.com/{com,net}/v1/domain/<apex>` directly for `.com` and `.net` domains and `https://rdap.org/domain/<apex>` with automatic HTTP redirect following for all other gTLDs and ccTLDs (`.org`, `.io`, `.ai`, `.co.uk`, `.com.au`, etc.). Automatically resolves subdomains to their registrable apex domain for RDAP while still inspecting DNS and TLS on the requested hostname.
- **Registrar, Age, Expiry Countdown & EPP Locks**: Extracts registrar name, IANA Registrar ID, registrar abuse email, registration/update/expiration UTC timestamps, exact `domainAgeDays`, signed `daysUntilExpiry`, renewal risk tier (`EXPIRED`, `CRITICAL_30D`, `WARNING_90D`, `HEALTHY`), full EPP status flags, `transferLockEnabled`, and `registryLockEnabled`.
- **Full Public Passive DNS Record Enumeration**: Captures `A`, `AAAA`, `NS`, `MX`, `CAA`, `SOA`, `TXT`, and `DS` records in a single pass, plus inferred authoritative `dnsHost` (Cloudflare, AWS Route 53, GoDaddy, Google Cloud DNS, Azure DNS, IBM NS1, Akamai, etc.), `mailProviders`, `caaAllowedCas`, and authoritative `dnssecSigned` verification across both RDAP `secureDNS` and live DNS `DS` records.
- **Zero-API-Key BGP ASN & CDN/Cloud Hosting Detection**: Resolves BGP `asn`, routed `asnPrefix`, `asnCountry`, and `asnOrg` via passive Team Cymru DNS plus reverse DNS `ptrHostname` and curated CDN/cloud CIDR maps to identify Cloudflare, AWS, CloudFront, Fastly, Google Cloud, Azure, Akamai, Vercel, Netlify, Shopify, GitHub Pages, DigitalOcean, Hetzner, OVHcloud, and more — including an explicit `isCdnProxied` flag.
- **SSRF-Safe TLS/SSL Certificate Intelligence**: Validates public IP routability before opening a TLS handshake on port 443 to extract certificate validity, status (`VALID`, `EXPIRING_SOON`, `EXPIRED`, `INVALID`, `UNAVAILABLE`), `sslIssuer`, `sslCommonName`, negotiated `sslProtocol` (`TLSv1.3` / `TLSv1.2`), `sslValidFromUtc`, `sslExpiresAtUtc`, `sslDaysUntilExpiry`, and up to 25 SAN hostnames (`sslSans`).
- **Domain Governance Posture Score & Alerts**: Summarizes renewal urgency, registrar transfer locks, TLS certificate health, DNSSEC, CAA enforcement, NS redundancy, and IPv6 readiness into a `0–100` `postureScore`, `A–F` `postureGrade`, and prioritized `alerts` array.

***

### Ideal Use Cases

1. **MSPs & IT Operations**: Schedule weekly Apify runs to monitor client domain expirations (`daysUntilExpiry <= 90`), SSL certificate renewals (`sslDaysUntilExpiry <= 30`), and missing registrar transfer locks (`TRANSFER_LOCK_MISSING`) with automated Slack, Teams, or PagerDuty alerts.
2. **Cybersecurity Asset Inventories & EASM**: Enrich hundreds of corporate or acquired domains with live IPv4/IPv6 addresses, BGP ASN ownership, CDN proxy status, CAA certificate-issuance restrictions, DNSSEC status, and TLS Subject Alternative Names.
3. **Domain Investors & Portfolio Monitoring**: Track registration dates, domain age (`domainAgeDays`), registrar distribution, expiration countdowns, EPP lock states, and `NOT_FOUND` availability signals across bulk watchlists.
4. **Brand Protection & Lookalike Triage**: Quickly inspect newly spotted lookalike or typosquat domains to capture their registrar, registrar abuse contact email (`registrarAbuseEmail`), hosting ASN, nameservers, and live TLS certificates for takedown packets.

***

### Input Configuration

```json
{
  "domains": [
    "cloudflare.com",
    "stripe.com",
    "https://python.org/downloads",
    "security@github.com"
  ],
  "checkRdap": true,
  "checkSsl": true,
  "maxConcurrency": 10
}
```

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domains` | `string[]` | `["cloudflare.com", "stripe.com"]` | Bare domains, full URLs, or email addresses. Automatically normalized and deduplicated. |
| `checkRdap` | `boolean` | `true` | Query official Verisign / `rdap.org` RDAP endpoints for registrar, timestamps, expiry countdown, EPP locks, and RDAP DNSSEC. |
| `checkSsl` | `boolean` | `true` | Perform SSRF-safe TLS inspection on port 443 for issuer, CN, protocol, SANs, and SSL expiry countdown. |
| `maxConcurrency` | `integer` | `10` | Number of domains inspected concurrently (`1`–`30`). |

***

### Output Dataset Example

Each inspected domain pushes one structured JSON record to the default dataset (and populates the **Overview Table** view in Apify Console):

```json
{
  "domain": "cloudflare.com",
  "apexDomain": "cloudflare.com",
  "tld": "com",
  "rdapStatus": "FOUND",
  "rdapSourceUrl": "https://rdap.verisign.com/com/v1/domain/cloudflare.com",
  "registrar": "Cloudflare, Inc.",
  "registrarIanaId": "1910",
  "registrarAbuseEmail": "registrar-abuse@cloudflare.com",
  "registeredAtUtc": "2009-02-17T22:07:54Z",
  "updatedAtUtc": "2024-01-09T16:45:28Z",
  "expiresAtUtc": "2033-02-17T22:07:54Z",
  "domainAgeDays": 6487,
  "daysUntilExpiry": 2278,
  "expiryRisk": "HEALTHY",
  "eppStatuses": [
    "client delete prohibited",
    "client transfer prohibited",
    "client update prohibited",
    "server delete prohibited",
    "server transfer prohibited",
    "server update prohibited"
  ],
  "transferLockEnabled": true,
  "registryLockEnabled": true,
  "aRecords": ["104.16.132.229", "104.16.133.229"],
  "aaaaRecords": ["2606:4700::6810:84e5", "2606:4700::6810:85e5"],
  "ipv6Enabled": true,
  "nsRecords": ["ns3.cloudflare.com", "ns4.cloudflare.com", "ns5.cloudflare.com", "ns6.cloudflare.com"],
  "dnsHost": "Cloudflare",
  "mxRecords": [
    {"preference": 5, "exchange": "mxa-canary.global.inbound.cf-emailsecurity.net"}
  ],
  "mailProviders": ["Cloudflare Email Security"],
  "caaRecords": [
    {"flags": 0, "tag": "issue", "value": "digicert.com; cansignhttpexchanges=yes"},
    {"flags": 0, "tag": "issue", "value": "letsencrypt.org"}
  ],
  "caaAllowedCas": ["comodoca.com", "digicert.com", "letsencrypt.org"],
  "caaEnforced": true,
  "soaRecord": {
    "mname": "ns3.cloudflare.com",
    "rname": "dns.cloudflare.com",
    "serial": 2420406269,
    "refresh": 10000,
    "retry": 2400,
    "expire": 604800,
    "minimum": 300
  },
  "txtRecordCount": 12,
  "txtRecords": ["v=spf1 ..."],
  "dnssecSigned": true,
  "dsRecordCount": 1,
  "primaryIp": "104.16.132.229",
  "asn": 13335,
  "asnPrefix": "104.16.128.0/20",
  "asnCountry": "US",
  "asnOrg": "CLOUDFLARENET - Cloudflare, Inc., US",
  "hostingProvider": "Cloudflare",
  "isCdnProxied": true,
  "ptrHostname": null,
  "sslStatus": "VALID",
  "sslValid": true,
  "sslIssuer": "Google Trust Services",
  "sslCommonName": "cloudflare.com",
  "sslProtocol": "TLSv1.3",
  "sslValidFromUtc": "2026-11-03T22:47:56Z",
  "sslExpiresAtUtc": "2027-02-01T23:47:08Z",
  "sslDaysUntilExpiry": 71,
  "sslSanCount": 5,
  "sslSans": ["cloudflare.com", "*.cloudflare.com"],
  "sslError": null,
  "postureScore": 100,
  "postureGrade": "A",
  "alerts": [],
  "checkedAtUtc": "2026-11-22T18:35:00Z"
}
```

***

### Pay-Per-Event Pricing & Safety Guarantees

- **Event name**: `domain-intel` (`1` event per unique valid domain profiled and pushed to your dataset).
- **Idempotency**: Deduplicated per run via `idempotency_key="rdap-<domain>"`.
- **Budget guard**: Respects your Apify `maxTotalChargeUsd` limit immediately (`event_charge_limit_reached`), stopping queued work cleanly so you never overspend.
- **No wasted charges**: Malformed inputs and duplicate domains are filtered before processing or billing.

***

### Automation Snippets (n8n, Make, REST API & Apify MCP)

#### Synchronous REST API Call (`curl` / n8n HTTP Request)

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "domains": ["cloudflare.com", "stripe.com"],
    "checkRdap": true,
    "checkSsl": true,
    "maxConcurrency": 10
  }'
```

#### Automated Renewal & SSL Watchdog (n8n / Make)

1. Trigger weekly on a schedule and pass your portfolio domain list from Airtable, Google Sheets, Notion, or Postgres.
2. Filter output records where `expiryRisk` is in `["EXPIRED", "CRITICAL_30D", "WARNING_90D"]`, `sslStatus` is in `["EXPIRED", "EXPIRING_SOON", "INVALID"]`, or `transferLockEnabled === false`.
3. Send instant Slack/Email alerts containing `domain`, `registrar`, `daysUntilExpiry`, `sslDaysUntilExpiry`, and `alerts`.

#### AI Agents via Apify MCP

Expose this Actor as a live tool in Claude Desktop, Cursor, or any MCP-enabled agent to answer infrastructure questions like *"Check when our 25 customer domains expire, which ones lack CAA or DNSSEC, and which SSL certificates renew within 30 days."*

# Actor input Schema

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

List of target domains to inspect (accepts bare domains like 'cloudflare.com', full URLs like 'https://stripe.com/docs', or email addresses like 'ops@example.com'). Automatically normalized and deduplicated.

## `checkRdap` (type: `boolean`):

Query official IANA/Verisign RDAP servers (rdap.verisign.com for .com/.net and rdap.org with redirect following for all other TLDs) for registrar, IANA ID, registration/expiration dates, days until expiry, EPP transfer/registry locks, and DNSSEC status.

## `checkSsl` (type: `boolean`):

Perform an SSRF-safe TLS handshake on port 443 to extract certificate validity, issuer, subject CN, negotiated TLS version, valid-from/expiry timestamps, days until expiry, and SAN hostnames.

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

Maximum number of domains inspected concurrently (1–30). Higher values speed up large bulk asset inventories while staying respectful of RDAP and DNS resolvers.

## Actor input object example

```json
{
  "domains": [
    "cloudflare.com",
    "stripe.com"
  ],
  "checkRdap": true,
  "checkSsl": true,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

Structured overview table of domain registrar, expiry countdown, DNS host, hosting/ASN, DNSSEC, CAA, and SSL expiry.

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

All complete domain intelligence records in the default dataset.

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

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/domain-rdap-dns-ssl-intel").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",
        "stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/domain-rdap-dns-ssl-intel").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",
    "stripe.com"
  ]
}' |
apify call regenerative_cornice/domain-rdap-dns-ssl-intel --silent --output-dataset

```

## MCP server setup

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

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/tTUzz4zrat2fPkpDz/builds/kcvgHbydwamHiffY4/openapi.json
