# Bulk Domain Checker - WHOIS (RDAP), DNS, SSL & Redirects (`beryline_pastel/bulk-domain-checker`) Actor

Check hundreds of domains in one run: RDAP/WHOIS registrar and expiry dates, DNS records with SPF/DMARC/mail provider, SSL certificate expiry, redirect chain and HSTS. One row per domain, with an issues list.

- **URL**: https://apify.com/beryline_pastel/bulk-domain-checker.md
- **Developed by:** [Beryline Pastel](https://apify.com/beryline_pastel) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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/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 Checker - WHOIS (RDAP), DNS, SSL & Redirects

Check **hundreds of domains in one run** and get **one row per domain** with registration data (WHOIS via the modern RDAP protocol), DNS records with email-security flags, SSL certificate details, and the HTTP redirect chain. Every row ends with a plain-English **`issues`** list, such as "SSL expires in 12 days", "No DMARC" or "Domain expires in 20 days".

### Why use it

- **Four checks in one row** - registration, DNS, SSL and HTTP, instead of stitching four tools together. Run only the checks you need.
- **Expiry monitoring** - `daysUntilExpiry` for both the domain registration and the SSL certificate. Schedule the actor daily and alert on `issues`.
- **Email security audit** - SPF record, DMARC record and policy (`none`/`quarantine`/`reject`), MX records and a guess of the mail provider (Google Workspace, Microsoft 365, Zoho, Proton, Fastmail and more).
- **Redirect and HSTS audit** - full redirect chain (up to 10 hops), final URL and status, whether plain `http://` ends up on HTTPS, HSTS header, server header.
- **Independent checks** - if one check fails (for example a server has no HTTPS), the others still return data and the failing one gets its own `error` field.
- **Privacy-safe** - only registrar-level data is returned. Registrant, admin and technical contact details are never read or output.
- **You only pay for successful rows.** Rows where every check failed (typo, unregistered domain) are free.

### Use cases

- Agencies and IT teams: monitor client domains for upcoming domain and certificate expiry.
- Security and compliance: find domains missing SPF, DMARC, HSTS or HTTPS redirects.
- Sales and lead qualification: see which mail provider and registrar a prospect uses.
- Domain portfolio audits and migrations: verify nameservers, redirects and certificates after a change.

### Input

| Field | Description |
|---|---|
| `domains` | Domains or URLs. Scheme, path, port and case are stripped; internationalized names become punycode. Duplicates are checked once. |
| `checks` | Any of `rdap`, `dns`, `ssl`, `http` (default: all four) |
| `concurrency` | Domains checked in parallel (default 5, max 25) |
| `timeoutSeconds` | Timeout for every individual network call (default 10) |
| `expiryWarningDays` | Domain/SSL expiry within this many days is added to `issues` (default 30) |

```json
{ "domains": ["apify.com", "https://github.com/apify", "example.org"], "checks": ["rdap", "dns", "ssl", "http"], "concurrency": 5 }
```

### Output (one row per domain)

```json
{
  "input": "github.com",
  "domain": "github.com",
  "status": "ok",
  "checksRun": ["rdap", "dns", "ssl", "http"],
  "checksSucceeded": ["rdap", "dns", "ssl", "http"],
  "rdap": {
    "error": null, "registrableDomain": "github.com", "source": "rdap.markmonitor.com", "registered": true,
    "registrar": "MarkMonitor Inc.", "registrarIanaId": "292",
    "createdAt": "2007-10-09T18:20:50Z", "expiresAt": "2028-10-09T18:20:50Z", "updatedAt": "2025-09-07T09:10:11Z",
    "daysUntilExpiry": 684, "statusCodes": ["client delete prohibited", "client transfer prohibited"],
    "nameservers": ["dns1.p08.nsone.net", "ns-1707.awsdns-21.co.uk"], "dnssec": false
  },
  "dns": {
    "error": null, "rcode": "NOERROR", "a": ["140.82.112.3"], "aaaa": [], "mx": [{ "priority": 1, "host": "aspmx.l.google.com" }],
    "ns": ["dns1.p08.nsone.net"], "txt": ["v=spf1 ..."], "cname": [], "caa": ["0 issue \"digicert.com\""],
    "hasSPF": true, "spfRecord": "v=spf1 ...", "hasDMARC": true, "dmarcRecord": "v=DMARC1; p=quarantine; ...", "dmarcPolicy": "quarantine",
    "hasMX": true, "mailProvider": "Google Workspace"
  },
  "ssl": {
    "error": null, "valid": true, "validationError": null, "issuer": "Sectigo Limited", "issuerCN": "Sectigo Public Server Authentication CA DV E36",
    "subjectCN": "github.com", "sanCount": 2, "validFrom": "2026-03-06T00:00:00.000Z", "validTo": "2027-03-06T23:59:59.000Z",
    "daysUntilExpiry": 64, "protocol": "TLSv1.3"
  },
  "http": {
    "error": null, "redirectChain": [{ "url": "https://github.com/", "status": 200 }], "redirectCount": 0,
    "finalUrl": "https://github.com/", "finalStatus": 200, "httpToHttpsRedirect": true, "hsts": true, "server": "GitHub.com"
  },
  "issues": [],
  "checkedAt": "2026-11-24T22:40:49.354Z"
}
```

Values above are illustrative; see a real run for exact data. A row that fails entirely has `status: "error"` and an `error` message.

### Pricing

Pay per event: **$0.003 per successfully checked domain** (`domain-checked`), covering all selected checks. 1,000 domains = $3. Failed rows and invalid inputs are free. Set *Max cost per run* to cap spending; the actor stops cleanly when the limit is reached.

### FAQ

**Is this real WHOIS?** It uses RDAP, the successor of WHOIS, via the IANA bootstrap registry (with rdap.org as fallback). Data is the same registry data, structured as JSON. Some registries redact fields; those come back as `null`.

**Why is registrant information missing?** By design. The actor never outputs personal contact data. Registrar name and IANA ID are included.

**Which DNS resolvers are used?** DNS-over-HTTPS JSON from Cloudflare, falling back to Google. Results reflect public resolvers, which may differ from your internal DNS.

**What does "ok" mean?** At least one check returned real data. A non-existent domain returns `status: "error"` and is not charged.

**Subdomains?** RDAP is looked up on the registrable domain (heuristic, no public suffix list, so unusual suffixes may be wrong). DNS, SSL and HTTP checks use the exact hostname you give.

### Limits

- Public RDAP servers can rate-limit; keep concurrency at 20 or less for big lists. Some ccTLDs have no RDAP service, in which case that check returns an error and the rest still run.
- SSL check connects to port 443 only and reports the certificate the server presents for that hostname.
- `httpToHttpsRedirect` is `null` when the plain-HTTP port is unreachable.
- The HTTP check sends one GET per hop and does not execute JavaScript, so client-side redirects are not detected.
- Domain availability and pricing are out of scope.

### Use with AI agents (MCP)

This Actor works as a tool for Claude, ChatGPT, Cursor and other MCP clients through the Apify MCP server:

```
https://mcp.apify.com?tools=beryline_pastel/bulk-domain-checker
```

Example prompt: *"Check these 20 domains and tell me which expire or whose SSL certificate expires in the next 30 days."*

### Related tools by the same author

- [Bulk Core Web Vitals Auditor](https://apify.com/beryline_pastel/bulk-core-web-vitals-auditor)
- [Bulk Phone Number Validator (E.164)](https://apify.com/beryline_pastel/bulk-phone-number-validator)
- [Broken Link & Redirect Checker](https://apify.com/beryline_pastel/broken-link-redirect-checker)
- [Bulk PDF Text Extractor](https://apify.com/beryline_pastel/bulk-pdf-text-extractor)
- [Bulk Email Validator (MX, disposable, typos)](https://apify.com/beryline_pastel/bulk-email-validator-mx-disposable)

# Actor input Schema

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

Domains or URLs to check. Scheme, path, port and case are normalized (https://Example.com/page becomes example.com); internationalized names are converted to punycode.

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

Which checks to run for each domain. Each check is independent; a failing check only sets its own error field.

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

How many domains are checked in parallel. 5 is a good default; public RDAP servers may rate-limit above 20.

## `timeoutSeconds` (type: `integer`):

Maximum time for each individual network request (RDAP, DNS query, TLS handshake, HTTP request).

## `expiryWarningDays` (type: `integer`):

Domain and SSL certificate expiry closer than this many days is added to the issues list.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "example.com"
  ],
  "checks": [
    "rdap",
    "dns",
    "ssl",
    "http"
  ],
  "concurrency": 5,
  "timeoutSeconds": 10,
  "expiryWarningDays": 30
}
```

# Actor output Schema

## `domains` (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",
        "example.com"
    ],
    "checks": [
        "rdap",
        "dns",
        "ssl",
        "http"
    ],
    "concurrency": 5,
    "timeoutSeconds": 10,
    "expiryWarningDays": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("beryline_pastel/bulk-domain-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",
        "example.com",
    ],
    "checks": [
        "rdap",
        "dns",
        "ssl",
        "http",
    ],
    "concurrency": 5,
    "timeoutSeconds": 10,
    "expiryWarningDays": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("beryline_pastel/bulk-domain-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",
    "example.com"
  ],
  "checks": [
    "rdap",
    "dns",
    "ssl",
    "http"
  ],
  "concurrency": 5,
  "timeoutSeconds": 10,
  "expiryWarningDays": 30
}' |
apify call beryline_pastel/bulk-domain-checker --silent --output-dataset

```

## MCP server setup

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