# Bulk Domain WHOIS (RDAP), DNS, Expiry & Availability (`rawtojson/domain-whois-dns-lookup`) Actor

Bulk domain lookup from official RDAP registries plus DNS over HTTPS: registrar, created/expiry dates, nameservers, DNSSEC, A/MX/TXT records, availability, expiry alerts and DNS change detection.

- **URL**: https://apify.com/rawtojson/domain-whois-dns-lookup.md
- **Developed by:** [Juan Francisco](https://apify.com/rawtojson) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/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 Lookup: bulk registrar, expiry, availability and DNS changes

Bulk **domain WHOIS lookup** built on the official **RDAP** registries (the modern replacement of WHOIS) and **DNS over HTTPS**. Paste a list of domains and get, per domain: registrar, creation / expiry / last-update dates, status codes, nameservers, DNSSEC, A / AAAA / MX / TXT / NS records, an `available` flag when the registry says the name is not registered, an "expires in N days" alert and a diff against your previous run. No proxies, no scraping of protected pages, no personal data.

### Who is it for

- Domain investors and drop-catchers watching expiry dates and availability.
- Brand protection and legal teams monitoring look-alike domains.
- Agencies and IT teams auditing client portfolios (expiry, registrar, DNSSEC, MX/SPF/TXT).
- Security and OSINT analysts tracking nameserver or DNS changes.
- SEO and lead-gen workflows that need domain age and registrar.

### Input

| Field | Meaning |
|---|---|
| `domains` | List of domains. URLs and emails are reduced to the registrable domain (`https://www.example.co.uk/x` becomes `example.co.uk`). |
| `includeDns`, `dnsRecordTypes` | Live DNS records over DoH (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA). Free of extra charge. |
| `dohProvider` | `cloudflare` (default) or `google`. The other is the fallback. |
| `expiresWithinDays`, `onlyExpiring` | Flag, or return only, domains that expire inside the window. |
| `onlyAvailable` | Return only domains that are not registered. |
| `monitorChanges` | Compare with the snapshot of your previous run; differences go to `changes`. |

```json
{ "domains": ["google.com", "bbc.co.uk", "denic.de", "a-domain-nobody-registered-93847.com"], "expiresWithinDays": 90 }
```

### Output (real run, 23 Nov 2026)

```json
{
  "domain": "google.com",
  "tld": "com",
  "registrationStatus": "registered",
  "available": false,
  "registrar": "MarkMonitor Inc.",
  "registrarIanaId": "292",
  "createdAt": "1997-09-15T04:00:00.000Z",
  "expiresAt": "2028-09-14T04:00:00.000Z",
  "daysToExpiry": 660,
  "domainAgeDays": 10661,
  "rdapStatuses": ["client delete prohibited", "client transfer prohibited", "..."],
  "nameservers": ["ns1.google.com", "ns2.google.com", "ns3.google.com", "ns4.google.com"],
  "dnssecSigned": false,
  "dns": { "A": ["142.251.140.238"], "MX": ["10 smtp.google.com"], "NS": ["ns1.google.com"], "...": [] },
  "checkedAt": "2026-11-23T18:27:46.696Z"
}
```

An unregistered name returns `"registrationStatus": "available", "available": true`.

### RDAP coverage (honest limits)

The Actor reads the IANA RDAP bootstrap (about 1,200 TLDs) plus a few extra servers verified by hand (.de, .io, .me, .sh, .ac, .us, .ch, .li). Tested: .com, .net, .org, .uk / .co.uk, .fr, .nl, .de, .io, .me, .ch, .ai, .app, .dev, .xyz, .info, .br, .ca, .au.

- **No RDAP published** (for example .es, .it, .eu, .be, .se, .at, .dk, .jp, .cn, .ru, .co): `registrationStatus` is `unknown`, a note explains why, DNS records are still returned, and the domain is **not billed**.
- Some registries do not publish dates or the registrar (for example .de): those fields are `null`.
- Registries rate-limit. The Actor throttles per server and retries with back-off; if a server keeps failing, the domain is returned with an `error` and is not billed.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Domain checked (registry gave a definite answer: registered or not registered) | **$0.0012** ($1.20 per 1,000) |
| Actor start | $0.00005 |

Invalid names, TLDs without RDAP and registry errors are never billed. DNS records, expiry flags and change detection cost nothing extra.

Rivals on the Store charge $0.002 to $0.003 per domain for WHOIS + DNS (for example santamaria-automations/domain-whois-dns at $0.003, agenscrape/whois-domain-lookup at $0.0025, automation-lab/domain-availability-checker at $0.0023 plus $0.035 per start, fguiraud/bulk-whois-domain-lookup at $0.002). This Actor is about 40 to 60 percent cheaper, adds expiry alerts and change detection, and does not bill for failures. Measured cost of a 100-domain run: about $0.006 of platform usage.

### Schedule and send to Sheets or a webhook

1. Create a Task with your domains and `monitorChanges: true`, `expiresWithinDays: 60`, `onlyExpiring: false`.
2. Schedule it daily (Apify Schedules).
3. Add an integration: Google Sheets (append dataset items) or a webhook to Slack, Zapier or Make. Filter on `changes` not empty or `expiringSoon: true`.

### FAQ

**Is this WHOIS?** It is RDAP, the protocol ICANN mandates to replace WHOIS. Same registration data, structured JSON.

**Does it return the owner's name or email?** No. Registries redact personal data under GDPR and the Actor does not read contact entities at all. Only technical and registrar data are returned.

**How reliable is `available: true`?** It means the registry answered "not found". A name can still be reserved, premium, or in a pending-delete grace period, so confirm with a registrar before relying on it.

**Why did a TLD return `unknown`?** Its registry does not publish RDAP. Use the DNS data as a hint only.

### Legal and GDPR notice

All data comes from public registry RDAP servers and public DNS resolvers. RDAP responses can include personal data for some registries; this Actor does not collect it. You are responsible for using the results lawfully, respecting each registry's terms of use (for example they forbid using the data for unsolicited marketing).

### Resumen en español

Consulta masiva de dominios por RDAP (el WHOIS moderno) y DNS sobre HTTPS: registrador, fechas de creación y caducidad, nameservers, DNSSEC, registros A/MX/TXT, disponibilidad, alerta "caduca en N días" y detección de cambios entre ejecuciones. Cobra 0,0012 $ por dominio con respuesta definitiva del registro; los TLD sin RDAP (.es, .it, .eu...) devuelven solo DNS y no se cobran. Sin datos personales (RDAP los redacta y el Actor no los lee).

# Actor input Schema

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

Domains to look up. URLs and emails are accepted and reduced to the registrable domain (https://www.example.co.uk/page becomes example.co.uk). Duplicates are removed.

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

Also query live DNS records over HTTPS (DoH). Not billed separately.

## `dnsRecordTypes` (type: `array`):

Record types to fetch when DNS is on. Allowed: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA.

## `dohProvider` (type: `string`):

Public DNS-over-HTTPS resolver used first. The other one is the fallback.

## `expiresWithinDays` (type: `integer`):

Flag domains whose registration expires within this many days with expiringSoon=true. Leave empty to skip.

## `onlyExpiring` (type: `boolean`):

With 'Expires within N days' set, return (and pay for) only the domains that expire inside that window.

## `onlyAvailable` (type: `boolean`):

Return (and pay for) only domains the registry reports as not registered, so likely free to register.

## `monitorChanges` (type: `boolean`):

Compare each domain with its snapshot from your previous run (registrar, expiry, status, nameservers, DNS records) and list differences in the changes field. Ideal for a daily schedule.

## `concurrency` (type: `integer`):

Domains looked up in parallel. Registries are also throttled per server, so higher values rarely help.

## `maxDomains` (type: `integer`):

Safety cap on the number of domains processed (and billed).

## Actor input object example

```json
{
  "domains": [
    "google.com",
    "example.org",
    "rawtojson.com",
    "denic.de",
    "bbc.co.uk",
    "a-domain-nobody-registered-93847.com"
  ],
  "includeDns": true,
  "dnsRecordTypes": [
    "A",
    "AAAA",
    "MX",
    "TXT",
    "NS"
  ],
  "dohProvider": "cloudflare",
  "onlyExpiring": false,
  "onlyAvailable": false,
  "monitorChanges": false,
  "concurrency": 6,
  "maxDomains": 1000
}
```

# Actor output Schema

## `domains` (type: `string`):

Lookup results, one item per domain.

# 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": [
        "google.com",
        "example.org",
        "rawtojson.com",
        "denic.de",
        "bbc.co.uk",
        "a-domain-nobody-registered-93847.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rawtojson/domain-whois-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": [
        "google.com",
        "example.org",
        "rawtojson.com",
        "denic.de",
        "bbc.co.uk",
        "a-domain-nobody-registered-93847.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rawtojson/domain-whois-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": [
    "google.com",
    "example.org",
    "rawtojson.com",
    "denic.de",
    "bbc.co.uk",
    "a-domain-nobody-registered-93847.com"
  ]
}' |
apify call rawtojson/domain-whois-dns-lookup --silent --output-dataset

```

## MCP server setup

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