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

Bulk WHOIS / RDAP lookup for any domain: creation date, domain age, expiry date, registrar, status, nameservers, owner (when public), availability check, plus MX, SPF and DMARC records. Works for .com, .fr, .co.uk, .io, .ai and 1000+ extensions. $1.50 per 1,000 domains.

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

## Pricing

from $1.50 / 1,000 domain looked ups

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 Domain Lookup - Domain Age, Expiry, Registrar & DNS

Bulk **WHOIS / RDAP lookup** for any list of domains: **creation date, domain age, expiry date, registrar, status, nameservers, owner (when public)** and **availability**, plus **MX, SPF and DMARC** DNS records. Works with .com, .net, .org, .fr, .co.uk, .io, .ai, .de and more than 1,000 extensions.

![WHOIS Domain Lookup example output: creation date, domain age, expiry date and registrar](https://api.apify.com/v2/key-value-stores/JJdNTW6mHqsclEqNv/records/whois-domain-lookup-output)

### What you get

| Field | Example |
|---|---|
| `domain` | `apify.com` (URLs and subdomains are cleaned) |
| `registered`, `available` | `true` / `false` |
| `createdDate`, `domainAgeDays`, `domainAgeYears` | `2009-06-02`, `6380`, `17.5` |
| `expiresDate`, `daysUntilExpiry` | `2035-06-02`, `3116` |
| `updatedDate` | Last change |
| `registrar`, `registrarIanaId` | `Amazon Registrar, Inc.` |
| `status` | `client transfer prohibited`... |
| `nameservers`, `dnssec` | `ns-449.awsdns-56.com`... |
| `registrant` | Organization, country, city, email (only when public, never privacy-proxy data) |
| `abuseEmail` | Registrar abuse contact |
| `dns` | `a`, `mx`, `spf`, `dmarc`, `hasWebsite`, `hasEmail` |
| `source` | `rdap` or `whois` |

### Use cases

- **Lead scoring**: domain age tells you how old a business is; new domains = new companies.
- **Domain investing**: find expiring domains and check availability in bulk.
- **Fraud and phishing checks**: very young domains are a red flag.
- **Email deliverability audits**: MX, SPF and DMARC in one place.
- **SEO and brand protection**: monitor your domains' expiry dates.

### How to use

```json
{
  "domains": ["apify.com", "bbc.co.uk", "https://www.example.fr/page"],
  "includeDns": true,
  "followRegistrar": true
}
```

### Pricing

**$1.50 per 1,000 domains looked up** (registered or available). Invalid domains and registry errors are **free**.

### How it works

Data comes from **RDAP**, the official modern replacement of WHOIS run by domain registries (server list published by IANA). When an extension has no RDAP server, the classic **WHOIS** protocol is used. DNS records come from public DNS.

### Limits

- Since GDPR, most owner details are hidden by registries: `registrant` is often empty.
- Some registries (for example .de) publish no dates at all.

### Other Actors you may like

- [Company Website Finder](https://apify.com/gosoul9/company-website-finder): company name in, official website out.
- [Company Email Finder](https://apify.com/gosoul9/company-email-finder): find and guess professional emails of a company.
- [Website Contact Scraper](https://apify.com/gosoul9/website-contact-scraper): emails, phones and social links from any website.
- [Phone Number Validator](https://apify.com/gosoul9/phone-number-validator): check, format and identify phone numbers.
- [Website Technology Detector](https://apify.com/gosoul9/website-technology-detector): the tech stack of any website.

### Support

Open an issue in the **Issues** tab with the domain and what looks wrong.

# Actor input Schema

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

One domain or URL per line (apify.com, https://www.example.co.uk/page). Subdomains are reduced to the registered domain.

## `includeDns` (type: `boolean`):

Also return A, MX, SPF and DMARC records, and whether the domain has a website and an email server.

## `followRegistrar` (type: `boolean`):

For .com and .net, also query the registrar's RDAP server to get owner details when they are public. Slightly slower.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "bbc.co.uk",
    "leslipfrancais.fr"
  ],
  "includeDns": true,
  "followRegistrar": 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",
        "leslipfrancais.fr"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gosoul9/whois-domain-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",
        "leslipfrancais.fr",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gosoul9/whois-domain-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/4k6Fg31uS20vTxnMU/builds/9eUiaeYyKTWRel4Kl/openapi.json
