# Domain WHOIS Lookup (RDAP) & DNS Records Checker (`kayorama/domain-whois-rdap-dns-lookup`) Actor

Bulk WHOIS via official RDAP plus DNS over HTTPS: registrar, creation and expiry dates, status, nameservers, DNSSEC, A, MX, TXT, SPF, DMARC, mail provider, availability and change alerts.

- **URL**: https://apify.com/kayorama/domain-whois-rdap-dns-lookup.md
- **Developed by:** [Kayorama](https://apify.com/kayorama) (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

$2.00 / 1,000 domain checkeds

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 Lookup (RDAP) & DNS Records Checker

Paste a list of domains and get one clean row per domain: registrar, creation and expiry dates, domain age, status codes, transfer lock, nameservers, DNSSEC, and the live DNS records (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA) with SPF and DMARC already parsed. It also tells you whether a domain looks available.

WHOIS data comes from the official RDAP servers of each registry, found through the IANA bootstrap list. DNS records come from Google Public DNS or Cloudflare over HTTPS. No scraping of WHOIS websites, no proxies, no captchas.

Turn on **Track changes** and schedule it to get alerts when a domain's registrar, expiry, status, nameservers, mail setup or DNS records change.

### What you can use it for

- **Domain portfolio and expiry monitoring.** Check hundreds of domains and filter to the ones expiring in the next 30 or 60 days.
- **Lead enrichment and KYB checks.** Add domain age, registrar, hosting and mail provider (Google Workspace, Microsoft 365 and others) to a list of company websites.
- **Email deliverability audits.** See which domains have SPF, how strict it is (`-all`, `~all`), and the DMARC policy (`reject`, `quarantine`, `none`).
- **Security and brand protection.** Watch your domains and lookalikes for nameserver, MX or registrar changes, and check transfer locks and DNSSEC.
- **Domain availability checks.** Names the registry does not know come back as `available`.

### Input example

```json
{
  "domains": ["apify.com", "wikipedia.org", "https://www.github.com/pricing"],
  "recordTypes": ["A", "MX", "NS", "TXT", "DMARC"],
  "onlyExpiringWithinDays": 90
}
```

You can paste URLs, hosts or bare domains. Lists separated by commas, spaces or new lines work too.

#### Weekly change alert

```json
{
  "domains": ["mycompany.com", "mycompany.net", "mycompany.io"],
  "trackChanges": true,
  "outputMode": "changesOnly",
  "stateStoreName": "my-domains"
}
```

Schedule it and connect the dataset to Slack, email, Google Sheets, Make or Zapier through Apify integrations.

### Output

One row per domain. Example (shortened):

```json
{
  "domain": "apify.com",
  "hostname": "apify.com",
  "availability": "registered",
  "registered": true,
  "registrar": "Amazon Registrar, Inc.",
  "registrarIanaId": "468",
  "createdAt": "2009-06-02T17:14:10.000Z",
  "updatedAt": "2026-05-16T16:53:04.000Z",
  "expiresAt": "2035-06-02T17:14:10.000Z",
  "domainAgeDays": 6376,
  "daysUntilExpiry": 3119,
  "status": ["client transfer prohibited"],
  "transferLocked": true,
  "dnssec": true,
  "nameservers": ["ns-1225.awsdns-25.org", "ns-1928.awsdns-49.co.uk", "ns-449.awsdns-56.com", "ns-839.awsdns-40.net"],
  "rdapServer": "rdap.verisign.com",
  "aRecords": ["18.239.83.29", "18.239.83.90"],
  "mxRecords": [{ "priority": 1, "host": "aspmx.l.google.com" }],
  "mailProvider": "Google Workspace",
  "spfRecord": "v=spf1 a mx include:_spf.google.com include:mailgun.org -all",
  "spfAll": "-",
  "dmarcRecord": "v=DMARC1; p=reject; sp=reject; pct=100; rua=[REDACTED_EMAIL]; ri=604800",
  "dmarcPolicy": "reject",
  "caaRecords": ["0 issue \"letsencrypt.org\""],
  "changes": [],
  "isChanged": false
}
```

| Field | What it holds |
| --- | --- |
| `domain`, `hostname`, `tld` | Registered domain, the exact host you gave, and the TLD |
| `availability`, `registered` | `registered`, `available`, `probablyAvailable` (DNS says the name does not exist and the TLD has no RDAP) or `unknown` |
| `registrar`, `registrarIanaId` | Sponsoring registrar and its IANA id |
| `createdAt`, `updatedAt`, `expiresAt` | Registry dates in ISO 8601 UTC |
| `domainAgeDays`, `daysUntilExpiry` | Computed from the dates |
| `status`, `transferLocked` | EPP status codes, and whether transfers are blocked |
| `dnssec` | Whether the delegation is signed |
| `nameservers` | From RDAP, or from DNS when the TLD has no RDAP |
| `aRecords`, `aaaaRecords`, `cname`, `mxRecords`, `txtRecords`, `caaRecords`, `soa` | DNS records |
| `mailProvider` | Detected from MX hosts |
| `spfRecord`, `spfAll`, `dmarcRecord`, `dmarcPolicy` | Email authentication setup |
| `changes`, `isChanged`, `firstRun` | With Track changes: list of `{ field, before, after }` |
| `errorCode`, `error` | `INVALID_DOMAIN`, `RDAP_HTTP_429`, `RDAP_TIMEOUT`, `DNS_PARTIAL` and similar |

The dataset has three views: **Overview**, **DNS records** and **Changes**.

### Pricing

Pay per event, no start fee:

- **Domain checked**: $0.002 per domain looked up successfully (WHOIS and DNS together).

Invalid inputs and lookups that fail completely are free. 1,000 domains cost $2. In changes-only mode you still pay per domain checked, but only changed domains are written to the dataset.

### Privacy and data rules

- **No registrant personal data.** Only the registrar, dates, status codes, nameservers and DNSSEC flag are read from RDAP. Registrant, admin, technical and billing contacts are never stored or returned, even where a registry publishes them.
- **Email addresses are redacted** from TXT and DMARC records (`[REDACTED_EMAIL]`) and the mailbox field of SOA records is removed.
- **Official sources only.** RDAP is the ICANN-mandated successor of WHOIS. Requests to each RDAP server are paced (1 second by default) with backoff on 429 and 5xx answers and `Retry-After` support. No proxies, no logins.

### Good to know

- **TLDs without RDAP.** Some ccTLDs such as .de, .io, .co and .eu have no public RDAP server. For those you get DNS data, nameservers from DNS and `rdapSupported: false`.
- **Expiry dates.** A few registries (for example .nl) do not publish expiry dates. `expiresAt` is then empty.
- **IP changes.** CDNs rotate addresses all the time. In change tracking, A and AAAA changes inside the same /24 or /48 network are ignored by default. Set **IP address changes** to Ignore for large anycast sites (Google, Cloudflare) or to Strict to see every address change. SOA serials are never treated as changes.
- **Subdomains.** Give `blog.example.com` to get DNS for that host and RDAP for `example.com`.

### FAQ

**Is RDAP the same as WHOIS?**
RDAP replaced port 43 WHOIS for gTLDs in 2025. It returns the same registry facts in a structured format, which is why the results are consistent across TLDs.

**Why is the registrant name or email missing?**
On purpose. This Actor does not collect personal data. Since GDPR most registries redact it anyway.

**How fast is it?**
About 1 to 3 seconds per domain, with 4 domains in parallel by default. Domains on the same registry share one paced queue, so large .com lists run at about one RDAP request per second.

# Actor input Schema

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

Domain names or website URLs, for example apify.com or https://www.example.org/page. RDAP data is looked up for the registered domain, DNS records for the exact host.

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

Registrar, creation, update and expiry dates, status codes, nameservers and DNSSEC from the official registry RDAP server. Registrant names, emails, phones and addresses are never collected.

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

Look up DNS records over HTTPS.

## `recordTypes` (type: `array`):

Record types to look up. DMARC reads the TXT record at \_dmarc.<domain>.

## `dnsResolver` (type: `string`):

Public DNS over HTTPS resolver to use.

## `onlyExpiringWithinDays` (type: `integer`):

Output only domains whose registration expires within this many days. Leave empty to output all.

## `trackChanges` (type: `boolean`):

Remember each domain in a named key-value store and report what changed since the last run (registrar, expiry, status, nameservers, DNS records).

## `outputMode` (type: `string`):

All domains, or only domains that changed since the last run (needs Track changes). The first run outputs every domain.

## `ipChanges` (type: `string`):

How A and AAAA changes count in change tracking. Network ignores moves inside the same /24 (IPv4) or /48 (IPv6) block, which CDNs do all the time. Ignore skips IP changes, useful for big anycast sites. Strict reports every address change.

## `stateStoreName` (type: `string`):

Name of the key-value store that keeps the memory between runs. Use one name per monitor.

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

How many domains to check at the same time. Requests to each RDAP server stay paced either way.

## `rdapDelayMs` (type: `integer`):

Pause between requests to the same RDAP server. 500 is the minimum.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "wikipedia.org"
  ],
  "includeRdap": true,
  "includeDns": true,
  "recordTypes": [
    "A",
    "AAAA",
    "CNAME",
    "MX",
    "NS",
    "TXT",
    "SOA",
    "CAA",
    "DMARC"
  ],
  "dnsResolver": "google",
  "trackChanges": false,
  "outputMode": "all",
  "ipChanges": "network",
  "stateStoreName": "domain-lookup-state",
  "maxConcurrency": 4,
  "rdapDelayMs": 1000
}
```

# Actor output Schema

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

No description

## `dns` (type: `string`):

No description

## `changes` (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",
        "wikipedia.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kayorama/domain-whois-rdap-dns-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": [
        "apify.com",
        "wikipedia.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kayorama/domain-whois-rdap-dns-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": [
    "apify.com",
    "wikipedia.org"
  ]
}' |
apify call kayorama/domain-whois-rdap-dns-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kayorama/domain-whois-rdap-dns-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/osEmPGe8agbkJcXkI/builds/CL2mQrrZjPuOQfVaa/openapi.json
