# WHOIS Lookup: Bulk Domain Age, Expiry & Availability Checker (`plainrows/whois-lookup`) Actor

WHOIS lookup and MCP tool for any list of domains: registrar, creation and expiry dates, domain age, days until expiry, status, name servers, DNSSEC, and whether the domain is registered. RDAP first, WHOIS for .de, .io, .co, .it. Pay per domain plus a small start fee per run.

- **URL**: https://apify.com/plainrows/whois-lookup.md
- **Developed by:** [PlainRows](https://apify.com/plainrows) (community)
- **Categories:** SEO tools, AI, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 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/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

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

Paste a list of domains, get **one spreadsheet-ready row per domain** with its **registrar, creation date, expiry date, domain age, days until expiry, registry status, name servers and DNSSEC**, and whether the domain is **registered or likely available**. A bulk WHOIS lookup that also works as an **MCP tool** for AI agents.

Data comes straight from the registries: **RDAP** first (the official JSON successor of WHOIS, servers listed by IANA), and the classic **WHOIS service (port 43)** for extensions that have no RDAP yet, such as **.de, .io, .co, .ch, .it, .be, .eu, .at, .dk, .se, .jp**. No browser, no proxy, no third-party database: each answer is the registry's own record at the time of the run.

**You pay only for domains the registry answered for** (registered or not registered), plus a small start fee per run. Domains without an answer (rate limit, timeout, extension without a public service) are free.

### Typical uses

- **SEO and link building**: check the age and expiry date of domains before buying links or an expired domain.
- **Domain investing and brand protection**: see which names in a list are free, which expire soon, and who the registrar is.
- **Lead qualification and fraud checks**: flag very young domains (a few days old) in sign-ups, shops or e-mails.
- **IT and security inventory**: list the expiry dates, registrars, DNSSEC and name servers of all your company's domains, and catch renewals before they lapse.
- **Automations and AI agents**: enrich a CRM, a Google Sheet or an n8n / Make / Zapier flow with domain age and expiry.

### What you get for each domain

| Field | Description |
|---|---|
| `domain`, `input` | The registered domain looked up (subdomains, `www.` and paths removed) and the value you gave |
| `registered`, `likelyAvailable` | `true` / `false`: the registry has a record of the domain, or none (the name is probably free; premium or reserved names can still be refused by registrars) |
| `registrar`, `registrarIanaId` | Registrar name and IANA ID (when the registry publishes it) |
| `createdDate`, `updatedDate`, `expiryDate` | Dates as `YYYY-MM-DD` |
| `domainAgeDays`, `domainAgeYears`, `daysUntilExpiry` | Computed from the dates: sort by age or by days left in one click |
| `statuses` | Registry statuses (EPP codes such as `clientTransferProhibited`, or the registry's own words) |
| `nameservers`, `dnssec` | Name servers (lower case) and whether the delegation is signed |
| `source`, `registryServer` | `rdap` or `whois`, and the registry server that answered |
| `found`, `error`, `errorMessage` | `found: false` = no answer, free row, with the reason: `NO_REGISTRY_SERVICE`, `RATE_LIMITED`, `REGISTRY_ERROR`, `NETWORK_ERROR`, `FORMAT_UNKNOWN`, `CUT_BY_RUN_END` |
| `checkedAt` | When the lookup ran (UTC) |

Every row has the same columns, so the dataset exports cleanly to CSV, Excel or Google Sheets.

**What registries do not publish**: some country registries keep dates private. DENIC (.de) gives no creation or expiry date, SWITCH (.ch) and EURid (.eu) give no expiry date, nic.at gives no expiry date. Those fields are then `null`: nothing is guessed.

### Input

```json
{
  "domains": ["apify.com", "https://blog.example.co.uk/page", "spiegel.de", "my-new-brand-name-123.io"]
}
```

- **domains**: domains or URLs, up to 10,000 per run. Subdomains and paths are reduced to the registered domain (`blog.example.co.uk` → `example.co.uk`); duplicates are removed.

### Output example

Real answer of the .com registry (Verisign RDAP), lookup of 2026-11-24:

```json
{
  "domain": "apify.com",
  "input": "apify.com",
  "found": true,
  "registered": true,
  "likelyAvailable": false,
  "registrar": "Amazon Registrar, Inc.",
  "registrarIanaId": "468",
  "createdDate": "2009-06-02",
  "updatedDate": "2026-05-16",
  "expiryDate": "2035-06-02",
  "domainAgeDays": 6384,
  "domainAgeYears": 17.5,
  "daysUntilExpiry": 3112,
  "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,
  "source": "rdap",
  "registryServer": "rdap.verisign.com",
  "error": null,
  "errorMessage": null,
  "checkedAt": "2026-11-24T12:00:00.000Z",
  "schemaVersion": "1.0"
}
```

A name nobody registered comes back as `"registered": false, "likelyAvailable": true` (charged: it is the registry's answer).

### Pricing

Pay per event: **$0.002 per domain** on the Apify Free plan, down to **$0.0012 per domain** on higher Apify plans ($1.2 per 1,000 domains), plus **$0.0005 per run** (start fee). Free rows (no registry answer) cost nothing. On the Apify Free plan a run looks up at most 25 domains.

### Privacy

Only registration facts are returned. **Owner, admin and technical contact details are never read into the output**, even when a registry still publishes them. The Actor queries public registry services at a moderate pace (at most 2 lookups at a time per registry server) and does not store anything outside your run.

### Limits and good to know

- **Rate limits**: some registries limit lookups per IP. When an RDAP server refuses, the Actor retries once, then asks the same registry's WHOIS server (.uk, .nl). Domains still refused are free rows marked `RATE_LIMITED`: run them again later.
- **.ch / .li** (SWITCH) limits WHOIS lookups strongly: from Apify's servers some lookups get no answer and come back as free rows `NETWORK_ERROR` (seen in our test run of 2026-11-24).
- **.es** (Red.es) answers WHOIS only to registered IP addresses: `.es` domains come back as free rows `NO_REGISTRY_SERVICE`.
- A few registries restrict some names (e.g. .nz for certain brands): free row `FORMAT_UNKNOWN`.
- Speed: most domains answer in under half a second; runs of thousands of domains take minutes, not hours.

### Use it from code, n8n or an AI agent

- **API**: `POST https://api.apify.com/v2/acts/plainrows~whois-lookup/run-sync-get-dataset-items?token=<YOUR_TOKEN>` with the input above as JSON body.
- **MCP**: available to AI agents through Apify's MCP server (`https://mcp.apify.com`), tool `plainrows/whois-lookup`.
- **n8n, Make, Zapier**: use the Apify integration with Actor `plainrows/whois-lookup`.

### Related PlainRows Actors

- [Website Technology Checker](https://apify.com/plainrows/website-tech-stack): CMS, ecommerce platform, analytics and hosting of any website.
- [Domain Authority Checker](https://apify.com/plainrows/domain-authority-checker): authority score, backlinks and referring domains in bulk.
- [Backlink Checker](https://apify.com/plainrows/backlink-checker): backlinks, anchors and referring domains of any site.

### For AI agents

- **Use when:** you need WHOIS / RDAP registration data for a list of domains: registrar, creation and expiry dates, domain age, days until expiry, statuses, name servers, DNSSEC, or whether a domain name is registered or likely available.
- **Do not use for:** owner contact details (never returned, privacy); a website's technologies (use plainrows/website-tech-stack); domain authority or backlinks (use plainrows/domain-authority-checker or plainrows/backlink-checker).
- **Input JSON (minimal):** `{"domains": ["apify.com"]}`
- **Output fields:** `domain`, `input`, `found`, `registered`, `likelyAvailable`, `registrar`, `registrarIanaId`, `createdDate`, `updatedDate`, `expiryDate`, `domainAgeDays`, `domainAgeYears`, `daysUntilExpiry`, `statuses`, `nameservers`, `dnssec`, `source`, `registryServer`, `error`, `errorMessage`, `checkedAt`, `schemaVersion`
- **Price per result:** $0.0018 per `domain-result` on the Starter plan, plus $0.0005 per run (other plans: see the pricing table)
- **Median run time:** 6 s (successful runs of the last 30 days)
- **Success rate (30 days):** no public run in the last 30 days

# Actor input Schema

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

Domains or URLs, one per line: "apify.com", "https://blog.example.co.uk/page". Subdomains, "www." and paths are reduced to the registered domain (example.co.uk). Up to 10,000 per run; duplicates are removed.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "wikipedia.org",
    "bbc.co.uk",
    "spiegel.de",
    "example-domain-not-registered-123.com"
  ]
}
```

# Actor output Schema

## `results` (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",
        "spiegel.de",
        "example-domain-not-registered-123.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainrows/whois-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",
        "wikipedia.org",
        "bbc.co.uk",
        "spiegel.de",
        "example-domain-not-registered-123.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("plainrows/whois-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",
    "wikipedia.org",
    "bbc.co.uk",
    "spiegel.de",
    "example-domain-not-registered-123.com"
  ]
}' |
apify call plainrows/whois-lookup --silent --output-dataset

```

## MCP server setup

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