# Bulk WHOIS Lookup - Domain Age, Expiry, DNS & Availability (`consequential_programmer/domain-whois-dns-checker`) Actor

Bulk WHOIS/RDAP domain lookup: registrar, creation and expiry dates, domain age, availability, nameservers, DNS (A, MX, NS), email provider, SPF/DMARC and SSL certificate expiry. Official RDAP + DNS, no proxy. $1.70 per 1,000 domains.

- **URL**: https://apify.com/consequential_programmer/domain-whois-dns-checker.md
- **Developed by:** [Nirajan Prasai](https://apify.com/consequential_programmer) (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 $1.70 / 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

## Bulk WHOIS Lookup: Domain Age, Expiry, DNS & Availability

**Check thousands of domains at once and export the results to JSON, CSV or Excel.** Paste domains, URLs or email addresses and get the **registrar, creation date, expiry date, domain age, availability**, nameservers, **DNS records**, **email provider**, **SPF / DMARC** and **SSL certificate expiry** for each one. No API key, login, browser or proxy needed.

It uses the official sources: **RDAP** (the ICANN-mandated replacement for WHOIS, routed through the IANA bootstrap registry), **DNS-over-HTTPS** and a direct TLS handshake. That keeps it fast and cheap: **$1.70 per 1,000 domains**, about 30-45% less than comparable WHOIS + DNS Actors.

### What you get for each domain

- 🏢 **WHOIS / RDAP:** registrar, IANA ID, registrar URL and abuse email, registrant organization and country (when the registry publishes them), EPP status codes, DNSSEC
- 📅 **Dates:** created, updated and expiry date, **domain age** in days and years, **days until expiry** and an `expiringSoon` flag
- ✅ **Availability:** `registered`, `available` (no registry record and no DNS delegation), `likely-available` or `unknown`
- 🌐 **DNS:** A, AAAA, MX and NS records, detected **DNS host** (Cloudflare, Route 53, GoDaddy, ...) and optional raw TXT records
- 📧 **Email setup:** detected **email provider** (Google Workspace, Microsoft 365, Zoho, Proofpoint, ...), SPF record, DMARC record and policy
- 🔒 **SSL:** valid or not, issuer, expiry date and days left

### Why use this domain checker?

- **Accepts messy input.** Bare domains, full URLs, subdomains and email addresses: the registrable domain is extracted automatically (`https://blog.example.co.uk/page` becomes `example.co.uk`). Duplicates are checked once.
- **Official data, no scraping.** RDAP is the structured, rate-limit-friendly successor to port-43 WHOIS. For TLDs whose registry has no public RDAP yet (for example `.de` or `.io`), the status comes from DNS and the row says so.
- **Privacy-friendly.** Personal registrant contact data (names, emails, phone numbers, street addresses) is never stored.
- **Fair pricing.** Invalid inputs, duplicates and lookups that fail completely are free error rows. Set a maximum cost per run and the Actor stops cleanly when it is reached.
- **Fast and light.** Plain HTTPS requests, 256 MB memory, retries with back-off and per-request timeouts.

### Use cases

- **Domain investors:** find expiring and available domains, check age and registrar in bulk
- **Sales and lead generation:** enrich a lead list with company email provider (Google Workspace vs Microsoft 365), DNS host and domain age
- **Security and IT teams:** audit SPF, DMARC, DNSSEC and SSL expiry across all your domains and catch renewals before they lapse
- **SEO and marketing agencies:** check domain age and registration details of competitors or link prospects
- **Brand protection:** check look-alike domains for registration status

### How to use it

1. Paste your domains under **Domains** (one per line; URLs and emails work too).
2. Keep the checks you need: **WHOIS / RDAP**, **DNS records & email security**, **SSL certificate**. Turn on **Include all TXT records** for raw TXT data.
3. Click **Start**.
4. Download the **Domain overview** view or all fields as CSV, Excel or JSON. You can also run it on a schedule or call it from the API, n8n, Make or Zapier.

#### Example input

```json
{
  "domains": ["apify.com", "https://www.bbc.co.uk/news", "sales@stripe.com", "my-new-startup-idea-2026.com"],
  "checkWhois": true,
  "checkDns": true,
  "includeTxtRecords": false,
  "checkSsl": true,
  "expiringSoonDays": 30,
  "maxConcurrency": 5
}
```

#### Example output (one domain)

```json
{
  "type": "domain",
  "input": "apify.com",
  "domain": "apify.com",
  "inputHost": null,
  "tld": "com",
  "registrationStatus": "registered",
  "statusNote": "Registry RDAP record found.",
  "whoisSource": "rdap",
  "registrar": "Amazon Registrar, Inc.",
  "registrarIanaId": "468",
  "registrarUrl": "http://registrar.amazon.com",
  "registrarAbuseEmail": "trustandsafety@support.aws.com",
  "registrantOrganization": null,
  "registrantCountry": null,
  "createdDate": "2009-06-02T17:14:10Z",
  "updatedDate": "2026-05-16T16:53:04Z",
  "expiryDate": "2035-06-02T17:14:10Z",
  "domainAgeDays": 6379,
  "domainAgeYears": 17.5,
  "daysUntilExpiry": 3116,
  "expiringSoon": false,
  "domainStatus": ["client transfer prohibited"],
  "nameservers": ["ns-1225.awsdns-25.org", "ns-1928.awsdns-49.co.uk", "ns-449.awsdns-56.com", "ns-839.awsdns-40.net"],
  "dnssec": true,
  "resolves": true,
  "aRecords": ["3.170.42.68", "3.170.42.76"],
  "aaaaRecords": ["2600:9000:2870:2400:9:a03e:6540:93a1"],
  "mxRecords": ["aspmx.l.google.com", "alt1.aspmx.l.google.com"],
  "dnsNameservers": ["ns-1225.awsdns-25.org", "ns-1928.awsdns-49.co.uk", "ns-449.awsdns-56.com", "ns-839.awsdns-40.net"],
  "emailProvider": "Google Workspace",
  "dnsProvider": "Amazon Route 53",
  "hasSpf": true,
  "spfRecord": "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com -all",
  "hasDmarc": true,
  "dmarcPolicy": "reject",
  "dmarcRecord": "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc-reports@apify.com; ri=604800",
  "sslValid": true,
  "sslIssuer": "Amazon",
  "sslSubject": "*.apify.com",
  "sslExpiryDate": "2027-01-16T23:59:59Z",
  "sslDaysLeft": 58,
  "sslAltNamesCount": 4,
  "sslError": null,
  "warnings": null,
  "checkedAt": "2026-11-19T21:14:47Z"
}
```

An unregistered domain looks like this (shortened):

```json
{
  "type": "domain",
  "domain": "zzqx-not-registered-8812.com",
  "registrationStatus": "available",
  "statusNote": "Registry RDAP has no record and DNS has no delegation - very likely available to register.",
  "registrar": null,
  "resolves": false,
  "sslValid": null,
  "sslError": "skipped: domain is not registered"
}
```

Inputs that are not domains produce a free row: `{"type": "error", "input": "not a domain!!", "errorMessage": "Skipped (not charged): not a valid domain name."}`. A run summary is saved as the `SUMMARY` record in the key-value store.

### Pricing

Pay per event. You only pay for domains that are actually checked:

| Event | What it is | Price |
| --- | --- | --- |
| `domain-checked` | One domain looked up and saved | $1.70 / 1,000 domains ($0.0017 each) |
| Actor start | Once per run (set by Apify, scales with memory) | $0.001 |

Example: 1,000 domains cost about $1.70. Invalid inputs, duplicates and failed lookups are free.

### Limits

- Availability is a strong signal, not a guarantee: premium, reserved or recently deleted domains can still be unavailable at a registrar. Always confirm before you buy.
- Some country-code registries (for example `.de`, `.io`, `.co`, `.jp`) have no public RDAP service. For those, the Actor reports status from DNS and leaves registrar and dates empty.
- Registries redact most registrant contact details for privacy. The Actor never outputs personal contact data.

### Legal

The Actor only queries public, official services: registry RDAP servers, public DNS resolvers and each domain's public HTTPS endpoint. It does not log in anywhere or bypass any protection, and it does not store personal data. Use the results in line with the registries' terms of use.

### FAQ

- **How am I charged?** $0.0017 per domain checked plus a $0.001 start fee. Error rows are free.
- **Is RDAP the same as WHOIS?** RDAP is the modern, structured version of WHOIS. Since 2025, ICANN requires gTLD registries and registrars to provide RDAP, and it returns the same registration data in clean JSON.
- **Can I check only DNS or only WHOIS?** Yes. Turn the checks you don't need off to make runs even faster.
- **What if I leave the input empty?** The Actor falls back to three sample domains (apify.com, wikipedia.org, bbc.co.uk), logs a warning and still writes a dataset.
- **Can I monitor expiry dates?** Yes. Schedule a weekly run and filter on `expiringSoon` or `sslDaysLeft`.

# Actor input Schema

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

Domains to check, one per line. You can paste bare domains (example.com), full URLs (https://www.example.com/page) or email addresses (name@example.com) - the registrable domain is extracted automatically. Duplicates are checked once. Max 10,000 per run.

## `checkWhois` (type: `boolean`):

Look up the official registry RDAP record (the modern replacement for WHOIS): registrar, creation, update and expiry dates, domain age, EPP status codes, nameservers, DNSSEC and availability.

## `checkDns` (type: `boolean`):

Resolve A, AAAA, MX, NS and TXT records over DNS-over-HTTPS, detect the email provider (Google Workspace, Microsoft 365, ...) and DNS host, and check SPF and DMARC.

## `includeTxtRecords` (type: `boolean`):

Also output every raw TXT record (site verifications, SaaS tools in use). Off by default to keep rows small.

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

Connect on port 443 and report whether the certificate is valid, who issued it and how many days are left before it expires.

## `expiringSoonDays` (type: `integer`):

Domains whose registration expires within this many days get expiringSoon = true. Handy for drop-catching and renewal monitoring.

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

How many domains are checked in parallel. Keep it moderate so registries don't rate-limit you.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each RDAP, DNS or SSL request. Failed requests are retried automatically.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "wikipedia.org",
    "bbc.co.uk"
  ],
  "checkWhois": true,
  "checkDns": true,
  "includeTxtRecords": false,
  "checkSsl": true,
  "expiringSoonDays": 30,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

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

No description

## `allItems` (type: `string`):

No description

## `summary` (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",
        "bbc.co.uk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("consequential_programmer/domain-whois-dns-checker").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",
        "bbc.co.uk",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("consequential_programmer/domain-whois-dns-checker").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",
    "bbc.co.uk"
  ]
}' |
apify call consequential_programmer/domain-whois-dns-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,consequential_programmer/domain-whois-dns-checker"
        }
    }
}
```

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/Rn6YmHxepq6cJVdJO/builds/UJLVuKV1r2SXCldyB/openapi.json
