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

Bulk lookup of domains: registrar, creation and expiry dates, availability, status and nameservers from official RDAP/WHOIS, plus live DNS (A, MX, TXT), email provider, SPF and DMARC.

- **URL**: https://apify.com/cvillasanti/bulk-domain-whois-dns-lookup.md
- **Developed by:** [Ciro Villasanti](https://apify.com/cvillasanti) (community)
- **Categories:** Developer tools, SEO 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.00 / 1,000 domains

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 Domain WHOIS & DNS Lookup - RDAP, Availability, Expiry, MX

Check **thousands of domains at once** and get clean JSON with the **registrar, creation and expiry dates, availability, EPP status, nameservers and DNSSEC**, plus live **DNS records (A, AAAA, MX, NS, TXT)**, the **email provider** (Google Workspace, Microsoft 365, Zoho…), **SPF** and **DMARC**.

Paste domains, URLs or email addresses and the Actor returns one record per registrable domain. Registration data comes from **RDAP**, the official successor of WHOIS run by each registry, with a classic **WHOIS fallback** for extensions that have no RDAP yet (.io, .co, .me, .tv, .mx, .de, .cl and more).

- ✅ **Bulk and fast:** about 100 domains per minute (6,000 per hour), up to 30,000 per run.
- ✅ **1,200+ extensions:** gTLDs (.com, .net, .org, .app, .dev…) and ccTLDs (.br, .ar, .uk, .fr, .io, .co, .mx…).
- ✅ **Availability check:** `available: true` when the registry says the domain is not registered.
- ✅ **Email and security posture:** MX, email provider, SPF and DMARC in the same record.
- ✅ **Fair pricing:** values that are not domains are skipped, and lookups where the registry could not be reached are free.
- ✅ **Ready for AI agents and MCP:** flat English field names and a fully described output schema.

### What data does it extract?

| Field | Example |
|---|---|
| Registered / available | `true` / `false` |
| Registrar and IANA ID | `Amazon Registrar, Inc.`, `468` |
| Created, updated, expires | `2009-06-02`, `2026-05-16`, `2035-06-02` |
| Age and days until expiry | `6383`, `3113` |
| EPP statuses, nameservers, DNSSEC | `client transfer prohibited`, `ns-449.awsdns-56.com`, `true` |
| Registrant organization and country | when the registry publishes them (often redacted for privacy) |
| DNS: A, AAAA, MX, NS, TXT | `aspmx.l.google.com` |
| Email provider, SPF, DMARC | `Google Workspace`, `v=spf1 …`, `v=DMARC1; p=reject …` |

### Use cases

- **Domain portfolio and brand protection:** track expiry dates and registrars of all your domains and typo variants.
- **Domain investing:** check availability of a list of names across extensions.
- **Lead enrichment and sales intelligence:** find which companies use Google Workspace or Microsoft 365, and how old their domain is.
- **Email deliverability and security audits:** list domains without SPF or DMARC, or without DNSSEC.
- **Fraud and risk:** flag very young domains (`ageDays`) behind sign-ups, payments or phishing reports.

### Input examples

**Mixed input (domains, URLs and emails):**

```json
{
    "domains": ["apify.com", "https://www.google.com.br/", "info@stripe.co"]
}
```

**Availability and expiry only, without DNS:**

```json
{
    "domains": ["mybrand.com", "mybrand.io", "mybrand.co", "mybrand.app"],
    "includeDns": false
}
```

| Field | Description |
|---|---|
| `domains` | Domains, URLs or email addresses. Subdomains are reduced to the registrable domain (`blog.example.co.uk` becomes `example.co.uk`), IDNs are converted to punycode and duplicates are removed. |
| `includeDns` | Add live DNS records, email provider, SPF and DMARC. Default `true`. |

### Output example

```json
{
    "domain": "apify.com",
    "input": "apify.com",
    "tld": "com",
    "registered": true,
    "available": false,
    "source": "rdap",
    "registrar": "Amazon Registrar, Inc.",
    "registrarIanaId": "468",
    "createdAt": "2009-06-02",
    "updatedAt": "2026-05-16",
    "expiresAt": "2035-06-02",
    "ageDays": 6383,
    "daysUntilExpiry": 3113,
    "statuses": [
        "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,
    "registrantOrganization": null,
    "registrantCountry": null,
    "registrationError": null,
    "checkedAt": "2026-11-23T04:02:14.691Z",
    "dns": {
        "a": [
            "99.84.24.46",
            "99.84.24.64"
        ],
        "aaaa": [
            "2600:9000:261a:2a00:9:a03e:6540:93a1"
        ],
        "mx": [
            {
                "exchange": "aspmx.l.google.com",
                "priority": 1
            },
            {
                "exchange": "alt1.aspmx.l.google.com",
                "priority": 5
            },
            {
                "exchange": "alt2.aspmx.l.google.com",
                "priority": 5
            },
            {
                "exchange": "aspmx2.googlemail.com",
                "priority": 10
            },
            {
                "exchange": "aspmx3.googlemail.com",
                "priority": 10
            }
        ],
        "ns": [
            "ns-1225.awsdns-25.org",
            "ns-1928.awsdns-49.co.uk",
            "ns-449.awsdns-56.com",
            "ns-839.awsdns-40.net"
        ],
        "txt": [
            "apple-domain-verification=A4eZHTuAHVZqRimj",
            "tito-domain-verification=pbg2696rvzbax2t4dl7h5ynqm"
        ],
        "spf": "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com include:19497222.spf05.hubspotemail.net -all",
        "dmarc": "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc-reports@apify.com; ri=604800",
        "emailProvider": "Google Workspace"
    }
}
```

`source` tells where the registration status came from: `rdap`, `whois` or, when the registry cannot be reached, `dns` (the domain resolves, so it is registered, but dates are unknown).

### Pricing

Pay per event: you pay per domain checked.

| Event | When it is charged |
|---|---|
| `domain` | Once for every domain whose registration status was determined, with DNS included. |

Values that are not domains are skipped, and domains whose status could not be determined are saved for free. Set a **maximum cost per run** in the run options and the Actor stops cleanly when it reaches it.

### Tips and limits

- Some registries hide dates or registrars (for example .de shows only whether a domain is registered, and some ccTLDs such as .es have no public WHOIS). For those, `registered` still comes from the registry or from DNS.
- Since GDPR most registrant names and emails are redacted; the Actor returns them only when the registry publishes them.
- WHOIS servers throttle bulk queries, so large lists of .io, .co or .mx domains run slower than .com or .net.

### Use it from the API

Run the Actor and get the results in one call. This endpoint waits up to 5 minutes, so use the Python client below for longer runs:

```bash
curl -X POST "https://api.apify.com/v2/acts/cvillasanti~bulk-domain-whois-dns-lookup/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["apify.com", "https://www.google.com.br/", "info@stripe.co"]}'
```

Or with the Python client (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("cvillasanti/bulk-domain-whois-dns-lookup").call(run_input={
    "domains": [
        "apify.com",
        "https://www.google.com.br/",
        "info@stripe.co"
    ]
})
for item in client.dataset(run["default_dataset_id"]).iterate_items():
    print(item)
```

It also works from Make, Zapier, n8n, Google Sheets and any AI agent through the [Apify MCP server](https://mcp.apify.com).

### FAQ

**Is this legal?** Yes. RDAP, WHOIS and DNS are public services designed to be queried. The Actor respects each registry's rate limits.

**Why RDAP instead of WHOIS?** RDAP is the official, structured replacement for WHOIS mandated by ICANN, so dates and statuses are exact instead of parsed from free text.

**Can I use it from an AI agent?** Yes. Call it through the Apify MCP server or the API. The input and output schemas are fully described.

# Actor input Schema

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

Domains, URLs or email addresses. Subdomains are reduced to the registrable domain (blog.example.co.uk becomes example.co.uk). Duplicates are removed. Up to 30,000 per run.

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

Add live A, AAAA, MX, NS and TXT records, SPF, DMARC and the email provider.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "https://www.google.com.br/",
    "info@stripe.co"
  ],
  "includeDns": true
}
```

# Actor output Schema

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

Registration, availability, expiry and DNS 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": [
        "apify.com",
        "https://www.google.com.br/",
        "info@stripe.co"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cvillasanti/bulk-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": [
        "apify.com",
        "https://www.google.com.br/",
        "info@stripe.co",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cvillasanti/bulk-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": [
    "apify.com",
    "https://www.google.com.br/",
    "info@stripe.co"
  ]
}' |
apify call cvillasanti/bulk-domain-whois-dns-lookup --silent --output-dataset

```

## MCP server setup

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