# WHOIS Lookup: Bulk Domain RDAP Data (`joesimo/whois-lookup`) Actor

Bulk WHOIS lookup for any list of domains, URLs or emails. Get registrar, creation and expiry dates, days until expiry, domain age, EPP status codes, nameservers and DNSSEC from official registry RDAP servers. No API key. Not found and failed rows are free.

- **URL**: https://apify.com/joesimo/whois-lookup.md
- **Developed by:** [Joe Simo](https://apify.com/joesimo) (community)
- **Categories:** Developer tools, SEO tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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

## WHOIS Lookup: Bulk Domain RDAP Data

Look up WHOIS data for a list of domains in one run. For each domain you get the registrar, the creation, update and expiry dates, days until expiry, domain age, EPP status codes, nameservers and DNSSEC, read from the official registry RDAP servers.

RDAP is the modern, structured replacement for port 43 WHOIS. The Actor uses the IANA RDAP bootstrap file to pick the right registry server for each TLD, so there is no API key, no login, no proxy and no captcha. You only pay for domains that come back with a record.

### What you get for each domain

| Field | Example |
|---|---|
| `domain` | `apify.com` (punycode for internationalized names) |
| `status` | `ok`, `not_found`, `unsupported_tld`, `failed` or `invalid_input` |
| `registered` | `true`, `false` (registry has no record) or null |
| `registrar` | `Amazon Registrar, Inc.` |
| `registrarIanaId` | `468` |
| `registrarUrl` | `http://registrar.amazon.com` |
| `registrarAbuseEmail`, `registrarAbusePhone` | The registrar's abuse desk (a business role contact) |
| `createdAt`, `updatedAt`, `expiresAt` | ISO 8601 dates, for example `2009-06-02T17:14:10.000Z` |
| `daysUntilExpiry` | `3123` (negative when the date has passed) |
| `ageDays` | `6373` |
| `statusCodes` | EPP codes, for example `clientTransferProhibited`, `serverDeleteProhibited`, `pendingDelete` |
| `nameservers` | `ns-449.awsdns-56.com`, ... |
| `dnssec` | `true` when the delegation is signed |
| `unicodeDomain`, `tld` | `bücher.de`, `co.uk` |
| `rdapServer`, `sourceUrl`, `registrarSourceUrl` | Where the data came from, so you can check any row |
| `input`, `error`, `checkedAt` | Your original line, the reason a row is not `ok`, and the check time |

The `OUTPUT` record holds a run summary with counts per status.

### Common uses

- **Expiry monitoring**: schedule a daily run over your portfolio and sort by `daysUntilExpiry` to catch renewals before a domain lapses.
- **Domain investing and drop watching**: see the age, registrar and `pendingDelete` or `redemptionPeriod` status of names you want.
- **Security and brand protection**: check the registrar, creation date and abuse contact of lookalike domains, so you know where to send a takedown request.
- **Lead and data enrichment**: add domain age and registrar to a list of company websites. Paste URLs or email addresses straight from a CRM export.
- **Migrations and audits**: confirm nameservers and DNSSEC for every domain a company owns.

### Input

One domain per line. You can paste:

- bare domains: `example.com`
- full URLs: `https://www.example.com/pricing` becomes `example.com`
- email addresses: `sales@shop.example.co.uk` becomes `example.co.uk`
- internationalized names: `bücher.de` is looked up as `xn--bcher-kva.de`

Subdomains are reduced to the registrable domain, and duplicates are looked up once.

```json
{
  "domains": ["apify.com", "https://www.bbc.co.uk/news", "info@wikipedia.org"],
  "followRegistrarLink": true,
  "maxConcurrency": 5
}
```

With an empty input the Actor looks up 20 well-known domains as a demo.

Options:

- **Follow the registrar RDAP link** (on by default): for .com, .net and other gTLDs the registry points to the registrar's own RDAP server. The Actor reads it too, to fill in a registrar URL, abuse email or phone the registry left out. No extra charge.
- **Max looked-up domains**: stop after this many charged rows.
- **Parallel lookups**: domains looked up at the same time (default 5).
- **Max run time**: stop starting new lookups after this many seconds.

### Pricing

$0.001 per domain looked up with a registry record ($1 per 1,000). Rows with `not_found`, `unsupported_tld`, `failed` or `invalid_input` are free. Set a maximum cost per run and the Actor stops exactly there.

### Status values

| Status | Meaning | Charged |
|---|---|---|
| `ok` | The registry returned a record. | Yes |
| `not_found` | The registry says the domain is not registered. It may be available, or reserved by the registry. | No |
| `unsupported_tld` | The TLD has no public RDAP server in the IANA bootstrap, and rdap.org has none either. Some country codes (for example .de, .io, .co, .jp, .eu) only run port 43 WHOIS or web lookups. | No |
| `failed` | Timeout, rate limit or an error from the registry after retries. Run the domain again later. | No |
| `invalid_input` | The line is not a domain, URL or email with a known TLD (for example an IP address). | No |

### Privacy: no personal data

The Actor never saves registrant, administrative, technical or billing contacts, even when a registry publishes them. Those RDAP entities are dropped before a row is built. The only contact fields are the registrar's own abuse desk email and phone, which registrars publish as a business role contact for abuse reports. Most registries already redact personal data under GDPR, so this matches what you would see on a public WHOIS page.

### How it works and limits

- RDAP only, over https. No port 43 WHOIS scraping and no web page scraping.
- The IANA bootstrap file (`data.iana.org/rdap/dns.json`) is read once per run. TLDs not listed there go through `rdap.org`.
- Each RDAP server gets a short pause between requests, 429 and 5xx answers are retried with backoff (honoring `Retry-After`), and every request has a timeout. Only public https hosts are contacted.
- Registries differ: some leave out the registrar IANA ID (country codes) or the update date, and those fields are null. The dates are what the registry reports; registrar side expiry can be later after an auto renewal.
- `not_found` means the registry has no record. It does not guarantee you can register the name (premium and reserved names exist). For an availability verdict across many TLDs, use [Domain Availability Checker](https://apify.com/joesimo/domain-availability-checker).

### FAQ

**Can I use it as a bulk WHOIS lookup for a list of domains?** Yes. Paste domains, URLs or email addresses one per line. Each registrable domain is looked up once (duplicates are skipped) and you get one row per domain with the registrar, dates, EPP status codes and nameservers. Only rows with a registry record are charged.

**Can I use it as a domain age checker?** Yes. `createdAt` is the registration date reported by the registry and `ageDays` is the domain age in days, so you can sort a lead list or a domain list by age. When a registry does not publish a creation date, both fields are null.

**Can I use it as a domain expiry checker?** Yes. `expiresAt` is the registry expiry date and `daysUntilExpiry` counts the days left (negative when the date has passed). Schedule a daily run over your portfolio and sort by `daysUntilExpiry`, or watch `statusCodes` for `redemptionPeriod` and `pendingDelete`. After an auto renewal the registrar side date can be later than the registry date.

**Does it return the domain owner's name or email?** No. Registrant, administrative, technical and billing contacts are never saved, even when a registry publishes them. The only contact fields are the registrar's abuse desk email and phone.

**Does it tell me if a domain is available?** A `not_found` row (free) means the registry has no record, which usually means the name is unregistered. It is not a guarantee, because premium and reserved names exist. For an availability verdict across many TLDs, use [Domain Availability Checker](https://apify.com/joesimo/domain-availability-checker).

**Why do some domains come back as `unsupported_tld`?** Some country code TLDs (for example .de, .io, .co, .jp, .eu) have no public RDAP server, so there is no structured record to read. These rows are free.

### Related Actors

- [Domain Availability Checker](https://apify.com/joesimo/domain-availability-checker): check thousands of names across TLDs.
- [DNS Lookup](https://apify.com/joesimo/dns-lookup): A, AAAA, MX, TXT, NS and other records in bulk.

### Questions and issues

Open an issue on the Actor's Issues tab with the domain and run ID, and it will be looked at quickly.

# Actor input Schema

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

One domain per line. Full URLs (https://www.example.com/page) and email addresses (name@example.com) are reduced to the registrable domain. Internationalized names are converted to punycode. Leave empty to run a demo with 20 well-known domains.

## `followRegistrarLink` (type: `boolean`):

When the registry points to the registrar's own RDAP server, read it too to fill in a missing registrar URL, abuse email or phone. One extra request per domain, no extra charge.

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

Stop after this many charged rows. 0 means no limit. The run also stops at your maximum cost per run.

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

Domains looked up at the same time. Each registry server also gets a short pause between requests, so a higher value mainly helps lists that mix many TLDs.

## `maxRunSecs` (type: `integer`):

Stop starting new lookups after this many seconds and finish cleanly. 0 means no limit (the run timeout still applies).

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "example.com",
    "wikipedia.org",
    "bbc.co.uk",
    "google.fr",
    "mozilla.org",
    "python.org",
    "nodejs.org",
    "crawlee.dev",
    "cloudflare.com",
    "amazon.com",
    "microsoft.com",
    "wordpress.org",
    "stackoverflow.com",
    "google.com.au",
    "openai.com",
    "shopify.com",
    "apple.com",
    "google.de"
  ],
  "followRegistrarLink": true,
  "maxItems": 0,
  "maxConcurrency": 5,
  "maxRunSecs": 120
}
```

# Actor output Schema

## `results` (type: `string`):

One item per domain, plus free rows for not found, unsupported, failed or invalid inputs.

## `runSummary` (type: `string`):

JSON summary: counts per status, requests, retries, stop reason.

# 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",
        "github.com",
        "example.com",
        "wikipedia.org",
        "bbc.co.uk",
        "google.fr",
        "mozilla.org",
        "python.org",
        "nodejs.org",
        "crawlee.dev",
        "cloudflare.com",
        "amazon.com",
        "microsoft.com",
        "wordpress.org",
        "stackoverflow.com",
        "google.com.au",
        "openai.com",
        "shopify.com",
        "apple.com",
        "google.de"
    ],
    "maxRunSecs": 120
};

// Run the Actor and wait for it to finish
const run = await client.actor("joesimo/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",
        "github.com",
        "example.com",
        "wikipedia.org",
        "bbc.co.uk",
        "google.fr",
        "mozilla.org",
        "python.org",
        "nodejs.org",
        "crawlee.dev",
        "cloudflare.com",
        "amazon.com",
        "microsoft.com",
        "wordpress.org",
        "stackoverflow.com",
        "google.com.au",
        "openai.com",
        "shopify.com",
        "apple.com",
        "google.de",
    ],
    "maxRunSecs": 120,
}

# Run the Actor and wait for it to finish
run = client.actor("joesimo/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",
    "github.com",
    "example.com",
    "wikipedia.org",
    "bbc.co.uk",
    "google.fr",
    "mozilla.org",
    "python.org",
    "nodejs.org",
    "crawlee.dev",
    "cloudflare.com",
    "amazon.com",
    "microsoft.com",
    "wordpress.org",
    "stackoverflow.com",
    "google.com.au",
    "openai.com",
    "shopify.com",
    "apple.com",
    "google.de"
  ],
  "maxRunSecs": 120
}' |
apify call joesimo/whois-lookup --silent --output-dataset

```

## MCP server setup

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