# Domain Intel: RDAP, DNS & SSL Bulk Lookup (`dvc-analytics/domain-intel-rdap-dns-ssl`) Actor

Bulk domain lookup: RDAP registration dates, registrar and expiry, DNS records (A, MX, NS, TXT, SPF, DMARC, CAA) and SSL certificate expiry, one row per domain.

- **URL**: https://apify.com/dvc-analytics/domain-intel-rdap-dns-ssl.md
- **Developed by:** [luc guerin](https://apify.com/dvc-analytics) (community)
- **Categories:** Developer tools, SEO tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 result rows

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 Intel: RDAP, DNS & SSL Bulk Lookup

**Domain Intel** is a bulk domain lookup tool: for each domain you get registration data from RDAP (the official WHOIS alternative run by registries), the main DNS records including SPF and DMARC, and the SSL certificate with its expiry date. One clean row per domain, ready for JSON, CSV or Excel. No login, no API key, no proxy.

### What it does

- **RDAP lookup (WHOIS alternative):** registrar name and IANA ID, creation, last-change and expiry dates, **domain age in days**, days to expiry, EPP statuses, nameservers and DNSSEC. The authoritative RDAP server is taken from the IANA bootstrap registry; `rdap.org` is used as a fallback.
- **DNS records:** A, AAAA, MX (priority + host), NS, TXT, CAA, plus the SPF record, the DMARC policy (`_dmarc.<domain>`) and a `hasMx` flag (a null MX `0 .` counts as no mail).
- **SSL certificate expiry checker:** issuer, subject CN, SANs (up to 50), valid-from and valid-until dates, days until the certificate expires, negotiated TLS version, whether the chain verified and whether the certificate matches the host name.
- Takes plain domains, URLs or email addresses and reduces them to the registrable domain (`https://shop.example.co.uk/x` and `info@mail.example.co.uk` both become `example.co.uk`). Internationalised names are converted to punycode.
- Each section can be switched off. If one section fails (for example a country-code TLD with no RDAP service), the row is still returned with a section error field.

### Use cases

- Find out how old a domain is (bulk domain age) before buying links, approving a partner or scoring leads.
- Track domain and SSL certificate expiry for a portfolio of sites and get warned in time.
- Audit email setup across many domains: MX present, SPF and DMARC published.
- Enrich a lead list with registrar, hosting nameservers and mail provider.
- Spot misconfigured sites: expired or mismatched certificates, missing DNSSEC, NXDOMAIN.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `domains` | list of strings | `["example.com"]` | 1-1000 domains, URLs or emails. Duplicates are removed; invalid entries are skipped with a log warning. |
| `includeRdap` | boolean | `true` | RDAP registration data. |
| `includeDns` | boolean | `true` | DNS records, SPF and DMARC. |
| `includeSsl` | boolean | `true` | TLS certificate on port 443 (falls back to `www.<domain>`). |
| `maxConcurrency` | integer | `5` | Domains checked in parallel (1-20). |

```json
{ "domains": ["example.com", "python.org"], "includeRdap": true, "includeDns": true, "includeSsl": true, "maxConcurrency": 5 }
```

### Output example

A real row (TXT and SAN lists shortened):

```json
{
  "domain": "python.org",
  "input": "python.org",
  "registrar": "Gandi SAS",
  "registrarIanaId": "81",
  "createdAt": "1995-03-27T05:00:00Z",
  "updatedAt": "2026-08-12T05:01:11Z",
  "expiresAt": "2033-03-28T05:00:00Z",
  "domainAgeDays": 11563,
  "daysToExpiry": 2317,
  "statuses": ["client transfer prohibited"],
  "nameservers": ["ns-1134.awsdns-13.org", "ns-2046.awsdns-63.co.uk", "ns-484.awsdns-60.com", "ns-981.awsdns-58.net"],
  "dnssec": false,
  "rdapServer": "https://rdap.publicinterestregistry.org/rdap/",
  "rdapError": null,
  "a": ["151.101.0.223", "151.101.128.223", "151.101.192.223", "151.101.64.223"],
  "aaaa": ["2a04:4e42:200::223", "2a04:4e42:400::223", "2a04:4e42:600::223", "2a04:4e42::223"],
  "mx": [{ "priority": 50, "host": "mail.python.org" }],
  "ns": ["ns-1134.awsdns-13.org", "ns-2046.awsdns-63.co.uk", "ns-484.awsdns-60.com", "ns-981.awsdns-58.net"],
  "txt": ["twilio-domain-verification=1c295667813cc0aaae819ed7657818f8", "libera-1298aas"],
  "caa": [],
  "spf": "v=spf1 mx ip4:188.166.95.178/32 ip6:2a03:b0c0:2:d0::71:1 include:stspg-customer.com include:_spf.google.com include:mailgun.org ~all",
  "dmarc": "v=DMARC1; p=none; pct=100; rua=mailto:re+shb8ybr70a3@dmarc.postmarkapp.com; sp=none; aspf=r;",
  "hasMx": true,
  "dnsError": null,
  "sslHost": "python.org",
  "certIssuer": "GlobalSign nv-sa",
  "certSubjectCN": "www.python.org",
  "certSans": ["www.python.org", "*.python.org", "python.org"],
  "certNotBefore": "2026-01-13T13:03:46Z",
  "certNotAfter": "2027-02-14T13:03:45Z",
  "certDaysToExpiry": 84,
  "tlsVersion": "TLSv1.3",
  "certVerified": true,
  "certValidForHost": true,
  "sslError": null,
  "checkedAt": "2026-11-22T11:52:28Z",
  "error": null
}
```

`error` is `null`, `"NXDOMAIN"` (the domain does not exist in DNS) or `"all checks failed"`. Section-level problems are in `rdapError`, `dnsError` and `sslError`. Dates are ISO 8601 in UTC.

### How much does it cost?

Pay per result: **$4 per 1,000 domains** ($0.004 per row) plus $0.00005 per actor start. Every domain checked gives one row, including rows that report an error such as NXDOMAIN. Invalid inputs that cannot be parsed as a domain are skipped and not charged. You can set a maximum charge per run; the actor stops when it is reached.

### Data source & legality

- **RDAP:** public registry and registrar RDAP services listed in the IANA bootstrap file (`data.iana.org/rdap/dns.json`), with `rdap.org` as a redirect fallback. RDAP is the standard (RFC 9082/9083) that ICANN requires as the replacement of port-43 WHOIS.
- **DNS:** ordinary DNS queries through the system resolver.
- **SSL:** a normal TLS handshake with the website, exactly as a browser does.
- **No personal data:** only the registrar entity is read from RDAP. Registrant, admin and technical contacts are never collected or stored, even when a registry publishes them. Note that TXT/DMARC records may contain role email addresses published by the domain owner in DNS.

Respect the terms of use of the RDAP services (they are meant for lookups, not for rebuilding a registry database).

### Limits

- Up to 1,000 domains per run; split larger lists into several runs or schedule them.
- Some country-code TLDs (for example `.de`) do not offer RDAP yet; these rows have `rdapError` set and no registration fields, while DNS and SSL still work.
- RDAP servers may rate-limit bursts. The actor retries with backoff and falls back to `rdap.org`; keep `maxConcurrency` at 5-10 for large lists.
- Timeouts: 5 s per DNS query, 8 s per TLS connection, 15 s per RDAP request.
- Only port 443 is checked for SSL. Subdomains are reduced to the registrable domain.

### FAQ

**Is this a WHOIS lookup?** It returns the same registration facts (registrar, dates, statuses, nameservers) via RDAP, the structured JSON successor of WHOIS. Port-43 WHOIS is not used.

**Can I monitor expiry dates on a schedule?** Yes. Create an Apify Schedule (daily or weekly) and filter rows by `daysToExpiry` or `certDaysToExpiry`, or send the dataset to a webhook, Slack or email integration.

**Can I call it from code or other tools?** Yes, through the Apify API (run the actor and read the dataset), the Python and JavaScript clients, and integrations such as Make, Zapier, n8n and Google Sheets.

**Can AI agents use it?** Yes. The actor works through the Apify MCP server, so an AI agent can call it with a list of domains and read the rows as structured JSON.

**Why is `certValidForHost` true while `certVerified` is false?** The certificate names the host, but the chain did not verify (expired, self-signed or missing intermediate). The reason is in `sslError`.

**Why is a domain I entered missing?** Inputs that cannot be parsed as a public domain (IP addresses, bare TLDs, typos with invalid characters) are skipped and listed in the run log.

### Support

Found a bug or need another field? Open an issue on the **Issues** tab of this actor.

# Actor input Schema

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

One domain per line (1-1000). URLs and email addresses are accepted and reduced to the registrable domain (e.g. https://blog.example.co.uk/x -> example.co.uk). Internationalised names are converted to punycode. Duplicates are removed.

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

Look up registrar, creation / update / expiry dates, domain age, EPP statuses, nameservers and DNSSEC via RDAP (the registry's official successor of WHOIS). Contact data of the registrant is never collected.

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

Resolve A, AAAA, MX, NS, TXT and CAA records plus SPF and DMARC policies.

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

Connect to port 443 (falls back to www.<domain>) and read the TLS certificate: issuer, subject, SANs, validity dates, days to expiry, TLS version and hostname match.

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

How many domains are checked in parallel (1-20). Lower values are gentler on RDAP servers.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "python.org"
  ],
  "includeRdap": true,
  "includeDns": true,
  "includeSsl": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Result rows 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": [
        "example.com",
        "python.org"
    ]
};

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

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

```

## MCP server setup

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

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/8uq8xh5F05xEc5Rak/builds/kfczfhZr5sA4KguIB/openapi.json
