# Bulk WHOIS & DNS Lookup: Domain Age, Expiry, MX, SPF, DMARC (`data_factory_nerd/domain-whois-dns-lookup`) Actor

Check thousands of domains at once: registrar, creation and expiry dates, domain age, status, nameservers, DNSSEC (official RDAP/WHOIS), plus A, AAAA, MX, NS, TXT records, SPF, DMARC policy and email provider. Availability check included. No API key. $1.50 per 1,000 domains.

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

## Pricing

from $1.35 / 1,000 results

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

### What is Bulk WHOIS & DNS Lookup?

**Bulk WHOIS & DNS Lookup** checks thousands of domains in one run and returns one clean row per domain: **registrar, creation date, expiry date, domain age, days until expiry, status, nameservers and DNSSEC**, plus live **DNS records (A, AAAA, MX, NS, TXT…)**, **SPF**, **DMARC policy**, the detected **email provider** (Google Workspace, Microsoft 365, Proofpoint…) and whether the domain is **likely available to register**.

Registration data comes from the official registry **RDAP** servers (the modern, structured replacement for WHOIS). TLDs that don't offer RDAP yet, such as .io, .co, .so and .de, fall back automatically to classic WHOIS. DNS is resolved over HTTPS through Cloudflare and Google public resolvers. **No API key, no login, no proxies.**

Privacy by design: the Actor reads **only domain-level registration fields**. It never collects registrant names, emails, phone numbers or addresses.

### What data can you get?

| Field | Example |
|---|---|
| `domain` | stripe.com |
| `isRegistered` / `likelyAvailable` | true / false |
| `registrar` / `registrarIanaId` | SafeNames Ltd. / 447 |
| `createdAt` / `expiresAt` | 1995-09-12 / 2027-09-11 |
| `domainAgeDays` / `daysUntilExpiry` | 11385 / 301 |
| `status` | client transfer prohibited, … |
| `nameservers` | ns-423.awsdns-52.com, … |
| `dns` | `{ "A": [...], "MX": ["10 aspmx.l.google.com."], "TXT": [...] }` |
| `spf` / `dmarc` / `dmarcPolicy` | v=spf1 … / v=DMARC1; p=reject … / reject |
| `emailProvider` | Google Workspace |
| `whoisSource` | rdap or whois |

### Use cases

- 🎯 **Lead qualification and enrichment**: domain age, email provider (Google Workspace vs Microsoft 365) and DMARC posture for every prospect domain
- 📧 **Email deliverability audits**: find domains with missing SPF or DMARC `p=none`
- 🛡️ **Brand protection and security**: monitor look-alike domains, expiry dates and nameserver changes
- 🔁 **Domain portfolio management**: expiring domains, registrar consolidation, DNSSEC coverage
- 🆓 **Domain availability checks**: test name ideas in bulk (`likelyAvailable`)
- 🧹 **Data cleaning**: paste messy URLs; the Actor extracts and de-duplicates hostnames

### How to use it

1. Paste domains or URLs into **Domains or URLs** (one per line; `https://www.` and paths are removed automatically).
2. Keep **WHOIS / RDAP** and **DNS records** on, or switch one off for faster runs.
3. Click **Start** and download the results as JSON, CSV or Excel from the **Output** tab.

#### Input example

```json
{
  "domains": ["stripe.com", "https://www.apify.com/store", "notion.so", "my-new-startup-idea.com"],
  "dnsRecordTypes": ["A", "MX", "NS", "TXT"]
}
```

#### Output example

```json
{
  "input": "stripe.com",
  "domain": "stripe.com",
  "whoisSource": "rdap",
  "isRegistered": true,
  "likelyAvailable": false,
  "registrar": "SafeNames Ltd.",
  "registrarIanaId": "447",
  "createdAt": "1995-09-12T04:00:00+00:00",
  "expiresAt": "2027-09-11T04:00:00+00:00",
  "domainAgeDays": 11385,
  "daysUntilExpiry": 301,
  "nameservers": ["ns-1087.awsdns-07.org", "ns-423.awsdns-52.com"],
  "dnssec": false,
  "dns": {"A": ["..."], "MX": ["10 aspmx.l.google.com."], "NS": ["ns-423.awsdns-52.com."], "TXT": ["v=spf1 ..."]},
  "spf": "v=spf1 include:_spf.google.com ...",
  "dmarc": "v=DMARC1; p=reject; ...",
  "dmarcPolicy": "reject",
  "emailProvider": "Google Workspace",
  "resolves": true,
  "error": null
}
```

### How much does it cost?

**Pay per result: $1.50 per 1,000 domains** ($0.0015 per domain), WHOIS and DNS included.

- 1,000 domains = $1.50
- 100,000 domains = $150
- Apify's free plan includes $5 of monthly usage, enough for about 3,000 domains.

### API example

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_factory_nerd/domain-whois-dns-lookup").call(run_input={"domains": ["stripe.com", "notion.so"]})
for d in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(d["domain"], d["registrar"], d["expiresAt"], d["emailProvider"])
```

### FAQ

#### Is this WHOIS data accurate?

It comes straight from the registry that runs each TLD (RDAP, or WHOIS where RDAP isn't offered) and from live DNS. Some registries publish less: for example, DENIC (.de) shows only status and nameservers, and a few ccTLDs publish no public WHOIS at all; those rows have an explanation in `error`.

#### What does `likelyAvailable` mean?

The registry says the domain is not registered and it has no nameservers. Premium, reserved or blocked names can still be unavailable at registrars, so confirm at a registrar before you buy.

#### Does it collect personal data?

No. Registrant, admin and tech contact fields are ignored. Only domain-level registration fields are returned.

#### Why is a domain's WHOIS empty with a "rate limited" error?

Some classic-WHOIS servers limit how many queries they answer. The Actor paces and retries, but very large lists on those TLDs may need a second run for the failed rows.

#### Found a bug or need a field?

Open an issue on the **Issues** tab. We reply quickly.

### Related Actors by data_factory_nerd

| Actor | What it does |
|---|---|
| [Wayback Machine Scraper](https://apify.com/data_factory_nerd/wayback-machine-scraper) | Archived snapshots and page history of any URL or domain |
| [Workday Jobs Scraper](https://apify.com/data_factory_nerd/workday-jobs-scraper) | Every job from any myworkdayjobs.com careers site |
| [Multi-ATS Jobs Scraper](https://apify.com/data_factory_nerd/ats-jobs-scraper) | Jobs from 6 applicant tracking systems in one schema |

# Actor input Schema

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

One per line: example.com, https://www.example.com/page or sub.example.co.uk. Duplicates are removed; URLs and www. are cleaned automatically.

## `includeWhois` (type: `boolean`):

Registrar, created/updated/expiry dates, domain age, days until expiry, EPP status, nameservers, DNSSEC and registered/available flag. Uses the official registry RDAP servers (modern WHOIS), with an automatic classic-WHOIS fallback for TLDs without RDAP (e.g. .io, .co, .de). Registrant personal data is never collected.

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

Resolve DNS records plus SPF, DMARC policy and detected email provider.

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

Which record types to resolve.

## `maxItems` (type: `integer`):

Stop after this many domains (controls cost). 0 = no limit.

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

Registry servers rate-limit aggressive clients; the default is safe.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "apify.com",
    "nic.io",
    "thisdomainisprobablyfree-2931.com"
  ],
  "includeWhois": true,
  "includeDns": true,
  "dnsRecordTypes": [
    "A",
    "AAAA",
    "MX",
    "NS",
    "TXT"
  ],
  "maxItems": 0,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `domains` (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": [
        "stripe.com",
        "apify.com",
        "nic.io",
        "thisdomainisprobablyfree-2931.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_factory_nerd/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": [
        "stripe.com",
        "apify.com",
        "nic.io",
        "thisdomainisprobablyfree-2931.com",
    ] }

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

```

## MCP server setup

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