# WHOIS Lookup (Bulk Domain Age, Expiry & Registrar) (`pagecraft/domain-whois-lookup`) Actor

Bulk domain WHOIS via RDAP: registrar, creation and expiry dates, domain age, status, nameservers, DNSSEC and whether a domain is registered. All TLDs, WHOIS fallback.

- **URL**: https://apify.com/pagecraft/domain-whois-lookup.md
- **Developed by:** [Pagecraft Tools](https://apify.com/pagecraft) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 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.
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 Lookup (RDAP): Domain Age, Expiry Date and Registrar in Bulk

**For** brand protection, lead qualification and domain investing. **You get** registrar, creation and expiry dates, domain age and nameservers for every domain.

**Real run (13 Nov 2026, the example input):** apify.com, bbc.co.uk and stripe.com, 3 domains in 4 seconds. **The example input costs 1.5 cents** on Apify's Free plan; the plan's $5 of free monthly usage covers about 1,000 domains.

| domain | registrar | created | expires | age (days) |
| --- | --- | --- | --- | --- |
| apify.com | Amazon Registrar, Inc. | 2009-06-02 | 2035-06-02 | 6,372 |
| bbc.co.uk | British Broadcasting Corporation | 1994-12-13 | 2034-12-13 | 11,658 |
| stripe.com | SafeNames Ltd. | 1995-09-12 | 2027-09-11 | 11,385 |

![Bulk WHOIS lookup demo: domains go in, registrar, dates and age come out](https://raw.githubusercontent.com/pagecraftAPI/pagecraft-mcp/main/media/whois-lookup.gif)

Look up thousands of domains at once: **registrar**, **creation date**, **expiry date**, **domain age**, **days until expiry**, status codes, nameservers, DNSSEC and whether the domain is registered at all.

### Quick start

1. Press **Try for free**. The form opens with a working example (`apify.com`, `bbc.co.uk` and more).
2. Replace it with your own domains.
3. Press **Start**. Results appear as they are found; download them as Excel, CSV or JSON, or use the API.

A result looks like this (some columns):

| domain | tld | registered | registrar | registrarIanaId |
| --- | --- | --- | --- | --- |
| example-shop.com | com | yes | Example Registrar, Inc. | 1234 |

### What it does

- Uses **RDAP**, the official modern replacement for WHOIS, via IANA's directory of registries, so answers come straight from the registry in structured form.
- Falls back to classic **WHOIS** for country domains that have no RDAP service.
- For .com, .net and similar, also asks the registrar for its abuse contact and any public registrant organisation and country.
- Accepts domains, URLs or email addresses, and removes duplicates.
- Tells you clearly when a domain is **not registered**.

### Who it's for

- **Lead qualification**: domain age is a strong signal of an established business.
- **Fraud and risk teams**: flag very new domains in sign-ups, payments and emails.
- **Domain investors and brand protection**: track expiry dates and registrars across portfolios.
- **SEO and sales tools** that enrich company records.

### Input

| Field | What to enter |
| --- | --- |
| Domains | Domains, URLs or email addresses, one per line |
| Ask the registrar too | Extra details for .com/.net (slightly slower) |

```json
{ "domains": ["apify.com", "https://www.bbc.co.uk/news", "someone@stripe.com"] }
```

### Output

```json
{
  "domain": "example-shop.com", "tld": "com", "registered": true,
  "registrar": "Example Registrar, Inc.", "registrarIanaId": "1234",
  "createdAt": "2015-03-02T10:00:00Z", "expiresAt": "2027-03-02T10:00:00Z", "updatedAt": "2026-02-01T08:00:00Z",
  "ageDays": 4258, "daysUntilExpiry": 126,
  "status": ["client transfer prohibited"], "nameservers": ["ns1.example.net", "ns2.example.net"], "dnssec": false,
  "registrantOrganization": null, "registrantCountry": "US", "abuseEmail": "abuse@example.com", "source": "rdap"
}
```

### Pricing

| Event | When it is charged | Price per 1,000 (Free / Bronze / Silver / Gold plan) |
| --- | --- | --- |
| Domain checked | Each domain looked up, registered or not. | $5 / $4.50 / $4 / $3.50 |
| Lookup failed | A domain whose registry could not be reached or refused the lookup. | $1.50 on every plan |

Example: 10,000 domains on the Free plan costs about $50; on the Gold plan about $35.

### Notes and limits

- Most registries hide personal registrant details under GDPR, so `registrantOrganization` is often empty.
- Some country registries limit WHOIS lookups per hour; a refused lookup is reported with a clear error and the lower "lookup failed" fee.
- Subdomains are looked up as their registered domain (`news.bbc.co.uk` becomes `bbc.co.uk`).

### Use with AI agents (MCP)

Connect this tool to Claude, Cursor, VS Code or any other MCP client through the [Apify MCP server](https://mcp.apify.com/). To load only this tool, use this server URL:

```
https://mcp.apify.com?tools=pagecraft/domain-whois-lookup
```

Then ask, for example: "Check when these domains expire and which registrar each one uses". The agent gets back registrar, creation and expiry dates, domain age, status and nameservers for each domain. Each call is charged per event at the prices in Pricing above. Agents without an Apify account can also pay per run through [Apify's agentic payments](https://docs.apify.com/agents/payments).

### Workflows with other Pagecraft tools

Pagecraft tools are built to work together. Ideas that use this one:

**Check a domain before you buy, partner or send.** Due diligence on any domain in minutes.

1. **This tool**: Age, expiry date and registrar.
2. [DMARC, SPF & DKIM Checker](https://apify.com/pagecraft/email-dns-security-audit): SPF, DKIM and DMARC email security records.
3. [Company Data Enrichment from Domain](https://apify.com/pagecraft/website-intelligence): Who runs the site and how to contact them.
4. [Website Screenshot & PDF](https://apify.com/pagecraft/website-screenshot-pdf): A dated screenshot or PDF of the site as evidence.

### More Pagecraft tools

- [DMARC, SPF & DKIM Checker (Bulk Email Security Audit)](https://apify.com/pagecraft/email-dns-security-audit): SPF, DMARC and DKIM checks for a list of domains.
- [Company Data Enrichment from Domain (Contacts, Tech Stack)](https://apify.com/pagecraft/website-intelligence): logo, contacts and tech stack for a list of company websites.
- [Tech Stack Detector (Website Technology Lookup)](https://apify.com/pagecraft/tech-stack-detector): what any website is built with.

# Actor input Schema

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

Domains, URLs or email addresses (the domain is used). One per line.

## `registrarDetails` (type: `boolean`):

For .com, .net and similar, also query the registrar for abuse contact and any public registrant details. Slightly slower.

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

Optional. Apify datacenter proxies or your own proxies. Residential proxies are not supported.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "bbc.co.uk",
    "stripe.com"
  ],
  "registrarDetails": true
}
```

# Actor output Schema

## `results` (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",
        "bbc.co.uk",
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pagecraft/domain-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",
        "bbc.co.uk",
        "stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pagecraft/domain-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",
    "bbc.co.uk",
    "stripe.com"
  ]
}' |
apify call pagecraft/domain-whois-lookup --silent --output-dataset

```

## MCP server setup

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