# Domain WHOIS, DNS & SSL Lookup - Bulk Domain Checker (`pshivam/domain-whois-dns-scraper`) Actor

Look up many domains at once: registration (registrar, created and expiry dates, status, nameservers), whether it is available, DNS records, SPF and DMARC, and the HTTPS certificate with days left. Export to Excel, CSV or API.

- **URL**: https://apify.com/pshivam/domain-whois-dns-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (community)
- **Categories:** 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.40 / 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.
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

## Domain WHOIS, DNS & SSL Lookup - Bulk Domain Checker

**Look up many domains at once: who registered it and until when, whether it is available, its DNS records, whether it is protected against email spoofing (SPF and DMARC), and its HTTPS certificate with the days left.** Give domains, web addresses or email addresses, get one clean record per domain, and export to Excel, CSV, JSON or the API. No login, no API key.

**Actively maintained.** Last update: 2026-11-21. Every release passes 100+ automated tests on real registry, DNS and certificate answers.

### What can you use it for?

- **Find domains that expire soon or are available.** `daysToExpiry` and `isRegistered` for a whole list: backorder, investors, brand protection.
- **Watch your own domains.** Registration and certificate days left for every domain of a company, on a schedule: no surprise expiry.
- **Audit email setup.** SPF, DMARC and its policy, mail servers (MX) and CAA records for a list of domains: lead-gen and security teams.
- **Research domains.** Age, registrar, nameservers, DNSSEC, IP addresses and mail servers of competitors and prospects.
- **Clean a list.** Spot dead domains (no DNS, no HTTPS) before a campaign.

### What data can you get?

Choose the checks. Every record is one domain.

| You give | You get |
|---|---|
| `domains`: domains, web addresses or emails | One record per domain, `www` and paths removed |
| `checks`: whois | Registration from the registry (RDAP): registrar, dates, status, nameservers, DNSSEC, available or not |
| `checks`: dns | A, AAAA, NS, MX, TXT, CAA, SOA records, SPF and DMARC |
| `checks`: ssl | The HTTPS certificate: issuer, names, dates, days left, or why it is wrong |

#### Fields

A field that a check did not run for, or that does not apply, is `null`, or an empty list.

##### The domain

| Field | What it is |
|---|---|
| `domain` | The registrable domain that was looked up: www and paths are removed, and example.co.uk keeps its two-part ending. |
| `inputValue` | What you gave: the entry as you wrote it. |
| `tld` | The top-level domain: com, org, uk, de. |
| `checks` | The checks that were run for the record: whois, dns, ssl. |
| `problems` | Problems that stopped a check, in words. Empty when everything worked. |

##### Registration (WHOIS / RDAP)

| Field | What it is |
|---|---|
| `isRegistered` | False when the registry has no such domain (the domain is available to register), true when it is registered. Empty when the registry has no RDAP service (many country domains) or did not answer. |
| `registrar` | The registrar that manages the domain. |
| `registrarIanaId` | The registrar's IANA id. |
| `createdAt` | When the domain was first registered (UTC). |
| `expiresAt` | When the registration expires (UTC). |
| `updatedAt` | When the registration was last changed (UTC). |
| `daysToExpiry` | Days from today until the registration expires. Negative when it has passed. |
| `ageYears` | Years since the first registration. |
| `statuses` | The registry's status flags, for example client transfer prohibited. |
| `nameservers` | The nameservers the registry lists, in lower case. |
| `dnssec` | True when the domain is signed with DNSSEC. |
| `rdapUrl` | The address of the registry's record. |

##### DNS

| Field | What it is |
|---|---|
| `dnsExists` | False when DNS says the name does not exist (NXDOMAIN), true when it answers. |
| `a` | The IPv4 addresses (A records). |
| `aaaa` | The IPv6 addresses (AAAA records). |
| `ns` | The nameservers in DNS (NS records). |
| `mx` | The mail servers (MX records), the preferred one first, written priority and host: 10 mail.example.com. |
| `txt` | The text records (TXT), strings joined. |
| `caa` | The CAA records: which authorities may issue certificates. |
| `soa` | The SOA record: primary nameserver, contact, serial and timers. |

##### Email security

| Field | What it is |
|---|---|
| `spf` | The SPF record that says which servers may send mail for the domain. |
| `hasSpf` | True when the domain has an SPF record. |
| `dmarc` | The DMARC record (the TXT record at \_dmarc.<domain>). |
| `hasDmarc` | True when the domain has a DMARC record. |
| `dmarcPolicy` | The DMARC policy: none, quarantine or reject. |

##### HTTPS certificate

| Field | What it is |
|---|---|
| `sslValid` | True when the HTTPS certificate is valid and matches the name; false when the certificate is wrong or the domain does not answer on HTTPS. |
| `sslHost` | The name the certificate was read from: the domain, or www.<domain> when the bare domain does not answer on HTTPS. |
| `sslIssuer` | The certificate's issuer. |
| `sslSubject` | The certificate's subject name. |
| `sslSans` | The names the certificate covers. |
| `sslValidFrom` | When the certificate starts to be valid (UTC). |
| `sslValidTo` | When the certificate expires (UTC). |
| `sslDaysLeft` | Days until the certificate expires. |
| `sslProtocol` | The TLS version that was negotiated: TLSv1.3. |
| `sslError` | Why the certificate is not valid or could not be read: certificate has expired, self-signed certificate, no answer on the HTTPS port ... |

##### Where it came from

| Field | What it is |
|---|---|
| `scrapedAt` | When the record was collected (UTC). |

#### Example result

```json
{"domain": "apify.com", "inputValue": "https://www.apify.com/store", "tld": "com", "isRegistered": true, "registrar": "Amazon Registrar, Inc.", "registrarIanaId": "468", "createdAt": "2009-06-02T17:14:10Z", "expiresAt": "2035-06-02T17:14:10Z", "updatedAt": "2026-05-16T16:53:04Z", "daysToExpiry": 3115, "ageYears": 17.5, "statuses": ["client transfer prohibited"], "nameservers": ["ns-1225.awsdns-25.org", "ns-1928.awsdns-49.co.uk"], "dnssec": true, "rdapUrl": "https://rdap.verisign.com/com/v1/domain/apify.com", "dnsExists": true, "a": ["108.158.46.18", "108.158.46.106"], "aaaa": ["2600:9000:237a:1e00:9:a03e:6540:93a1"], "ns": ["ns-1225.awsdns-25.org", "ns-1928.awsdns-49.co.uk", "ns-449.awsdns-56.com", "ns-839.awsdns-40.net"], "mx": ["1 aspmx.l.google.com", "5 alt1.aspmx.l.google.com"], "txt": ["apple-domain-verification=A4eZHTuAHVZqRimj", "tito-domain-verification=pbg2696rvzbax2t4dl7h5ynqm"], "caa": ["0 issue \"amazonaws.com\"", "0 issue \"digicert.com\""], "soa": "ns-839.awsdns-40.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400", "spf": "v=spf1 a mx include:_spf.google.com include:mailgun.org include:amazonses.com include:19497222.spf05.hubspotemail.net -all", "hasSpf": true, "dmarc": "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc-reports@apify.com; ri=604800", "hasDmarc": true, "dmarcPolicy": "reject", "sslValid": true, "sslHost": "apify.com", "sslIssuer": "Amazon / Amazon RSA 2048 M04", "sslSubject": "*.apify.com", "sslSans": ["*.apifier.com", "*.apify.com", "apifier.com", "apify.com"], "sslValidFrom": "2026-07-03T00:00:00Z", "sslValidTo": "2027-01-16T23:59:59Z", "sslDaysLeft": 56, "sslProtocol": "TLSv1.3", "checks": ["whois", "dns", "ssl"], "scrapedAt": "2026-11-21T10:00:06Z"}
```

### Input

| Input | What it does |
|---|---|
| `domains` | The domains to look up |
| `checks` | whois, dns, ssl |
| `onlyNew` | Skip domains that earlier runs of the same input returned |
| `maxItems`, `maxConcurrency`, `secondsBetweenRequests`, `proxyConfiguration` | Limits and speed |

### How much does it cost?

You pay per domain returned, whatever the number of checks. There is no start fee.

| Plan | Price per 1,000 domains |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.60 |
| Gold | $1.40 |

- 1,000 domains cost about $2 on the Free plan.
- Use `maxItems` to cap the cost of a run, and `onlyNew` to pay only for new domains on scheduled runs.

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/domain-whois-dns-scraper").call(run_input={
    "domains": ["example.com", "https://www.mycompany.io/pricing", "info@client.co.uk"],
    "checks": ["whois", "dns", "ssl"],
})
for d in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(d["domain"], d["isRegistered"], d["daysToExpiry"], d["sslDaysLeft"], d["dmarcPolicy"])
```

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/domain-whois-dns-scraper` and an input like this, scheduled daily:

```json
{"domains": ["mycompany.com", "mycompany.io"], "checks": ["whois", "ssl"]}
```

### Good to know

- **Sources.** Registration comes from the registry's own RDAP service (the successor of WHOIS), found through IANA's list. DNS comes from Cloudflare's public DNS-over-HTTPS service. The certificate is read from the domain's HTTPS port. No paid data is used.
- **Registry coverage.** Most generic domains (.com, .net, .org, .app and hundreds of new ones) and many country domains have RDAP. Some country registries do not (for example .de and .io today): `isRegistered` is then empty and the record says so in `problems`. DNS and the certificate still work.
- **Registrant data.** Since 2018 registries hide the owner's name, email and address for privacy: the Actor returns the registrar, dates, status and nameservers, not the owner.
- **Registrable domain.** `shop.example.co.uk` looks up `example.co.uk`. The certificate is read from the domain itself, or from `www.` when the bare domain does not answer on HTTPS.
- **Available domains.** `isRegistered` false means the registry has no such domain right now. Confirm at a registrar before you rely on it.
- **Speed.** About 10 requests per domain (one each for registration, the eight DNS questions and the certificate): 8 domains took 9 seconds with 4 at a time, so 1,000 domains take about 15 minutes.
- **Independent tool.** Not affiliated with registries, registrars or Cloudflare.

### FAQ

#### How do I check if a domain is available?

Put it in `domains` with the whois check. `isRegistered` false means it is not registered.

#### How do I find when a domain expires?

`expiresAt` and `daysToExpiry` from the whois check. Sort the dataset by `daysToExpiry` to see the soonest first.

#### Can I check SPF and DMARC?

Yes. The dns check returns `spf`, `hasSpf`, `dmarc`, `hasDmarc` and the DMARC policy (none, quarantine or reject).

#### Can I check the SSL certificate expiry?

Yes. The ssl check returns the issuer, the names covered, the dates and `sslDaysLeft`, or the error when the certificate is wrong.

#### Does it show who owns the domain?

No. Registries hide the owner's details. You get the registrar, dates, status and nameservers.

#### Can I look up thousands of domains?

Yes. Paste them in `domains`. They are looked up a few at a time with pauses that keep the services happy.

# Actor input Schema

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

The domains to look up, one per line. A web address or an email address works too: www and paths are removed (https://www.example.com/page and info@example.com both look up example.com). Leave empty to look up three examples.

## `checks` (type: `array`):

whois: registration and availability from the registry (RDAP). dns: DNS records, SPF and DMARC. ssl: the HTTPS certificate. All three by default.

## `onlyNew` (type: `boolean`):

Skip domains that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store 'domain-whois-dns-scraper-only-new'.

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

Stop after this many domains. You are charged per domain returned.

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

How many domains are looked up at the same time.

## `secondsBetweenRequests` (type: `number`):

Pause between requests to the services. If a service asks the Actor to slow down, the Actor lets its address rest and lengthens the pause.

## `proxyConfiguration` (type: `object`):

Not needed: the Actor reads with its own address. Turn it on only if a service refuses the address; the proxy then takes over while the address rests.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "wikipedia.org",
    "example.com"
  ],
  "checks": [
    "whois",
    "dns",
    "ssl"
  ],
  "onlyNew": false,
  "maxItems": 50,
  "maxConcurrency": 4,
  "secondsBetweenRequests": 0.1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Domains as a table.

## `email` (type: `string`):

Email security as a table.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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",
        "example.com"
    ],
    "checks": [
        "whois",
        "dns",
        "ssl"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/domain-whois-dns-scraper").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",
        "example.com",
    ],
    "checks": [
        "whois",
        "dns",
        "ssl",
    ],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/domain-whois-dns-scraper").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",
    "example.com"
  ],
  "checks": [
    "whois",
    "dns",
    "ssl"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call pshivam/domain-whois-dns-scraper --silent --output-dataset

```

## MCP server setup

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

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/gC1FPGEdcOIk4qeWD/builds/34MelFNgxozEsEUB5/openapi.json
