# WHOIS Domain Lookup Scraper (`confidential_gnat/whois-com`) Actor

Bulk WHOIS lookups via whois.com. Accepts URLs, bare domains, or whois.com lookup links, and returns registration dates, registrar, name servers, status codes, abuse contacts, registrant/technical contact details, and similar domain suggestions.

- **URL**: https://apify.com/confidential\_gnat/whois-com.md
- **Developed by:** [Night Owl](https://apify.com/confidential_gnat) (community)
- **Categories:** Developer tools, Automation, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Whois Domain Lookup Scraper

Look up **WHOIS registration data** for any list of websites or domains using [whois.com](https://www.whois.com/whois/). Get registration and expiry dates, registrar details, name servers, domain status codes, abuse contacts, registrant and technical contact information, and suggested similar domains — all in structured JSON.

### ✨ Features

- **WHOIS record extraction** — registration/expiry/update dates, domain status, name servers, registrar info, abuse contacts, and registrant/technical contact details
- **Flexible input** — accepts full page URLs, bare domain names, or direct whois.com lookup links
- **Proxy support** — built-in proxy configuration (residential proxy recommended) to avoid blocks

### 🔧 Input Configuration

| Field                | Type   | Required | Default                                                          | Description                                                                                                                   |
| -------------------- | ------ | -------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `startUrls`          | array  | —        | `[{ "url": "https://apify.com" }]`                               | List of URLs (or bare domains) to look up. The hostname is extracted automatically and converted into a whois.com lookup URL. |
| `domains`            | array  | —        | `["google.com", "github.com", "wikipedia.org"]`                  | List of bare domain names to look up, e.g. `"google.com"`. Can be used instead of, or together with, Start URLs.              |
| `proxyConfiguration` | object | —        | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` | Proxy configuration used to fetch whois.com pages. A residential proxy group is recommended to avoid blocks.                  |

**Supported URL types:**

- Full page URLs, e.g. `https://example.com/some/page` (the domain is extracted automatically)
- Bare domains, e.g. `example.com`
- Direct whois.com lookup links, e.g. `https://www.whois.com/whois/example.com`

**Example input:**

```json
{
    "startUrls": [{ "url": "https://apify.com" }, { "url": "https://www.whois.com/whois/youtube.com" }],
    "domains": ["google.com", "github.com", "wikipedia.org"],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
````

[![input page.png](https://i.postimg.cc/mkfs92N7/image.png)](https://postimg.cc/YG3ZK7PS)

### 📦 Output

The dataset has a single **Overview** view containing the domain, last-updated label, and grouped WHOIS sections (domain information, registrar information, registrant contact, technical contact, and similar domains).

**Sample output:**

```json
[
    {
        "Domain": "apify.com",
        "Updated": "Updated 15 days ago",
        "domainInformation": [
            { "attributeName": "Domain", "attributeValue": "apify.com" },
            { "attributeName": "Registered On", "attributeValue": "2009-06-02" },
            { "attributeName": "Expires On", "attributeValue": "2035-06-02" },
            { "attributeName": "Updated On", "attributeValue": "2026-05-16" },
            { "attributeName": "Status", "attributeValue": ["client transfer prohibited"] },
            {
                "attributeName": "Name Servers",
                "attributeValue": [
                    "ns-1225.awsdns-25.org",
                    "ns-1928.awsdns-49.co.uk",
                    "ns-449.awsdns-56.com",
                    "ns-839.awsdns-40.net"
                ]
            }
        ],
        "registrarInformation": [
            { "attributeName": "Registrar", "attributeValue": "Amazon Registrar, Inc." },
            { "attributeName": "IANA ID", "attributeValue": "468" },
            { "attributeName": "Abuse Email", "attributeValue": "trustandsafety@support.aws.com" },
            { "attributeName": "Abuse Phone", "attributeValue": "+1.2024422253" }
        ],
        "registrantContact": [
            { "attributeName": "Name", "attributeValue": "On behalf of apify.com OWNER" },
            { "attributeName": "Organization", "attributeValue": "c/o whoisproxy.com" },
            { "attributeName": "Street", "attributeValue": "604 Cameron Street" },
            { "attributeName": "City", "attributeValue": "Alexandria" },
            { "attributeName": "State", "attributeValue": "VA" },
            { "attributeName": "Postal Code", "attributeValue": "22314" },
            { "attributeName": "Country", "attributeValue": "US" },
            { "attributeName": "Phone", "attributeValue": "+64.48319528" },
            { "attributeName": "Email", "attributeValue": "@apify.com.whoisproxy.org" }
        ],
        "technicalContact": [
            { "attributeName": "Name", "attributeValue": "On behalf of apify.com TECH" },
            { "attributeName": "Organization", "attributeValue": "c/o whoisproxy.com" },
            { "attributeName": "Street", "attributeValue": "604 Cameron Street" },
            { "attributeName": "City", "attributeValue": "Alexandria" },
            { "attributeName": "State", "attributeValue": "VA" },
            { "attributeName": "Postal Code", "attributeValue": "22314" },
            { "attributeName": "Country", "attributeValue": "US" },
            { "attributeName": "Phone", "attributeValue": "+64.48319528" },
            { "attributeName": "Email", "attributeValue": "@apify.com.whoisproxy.org" }
        ],
        "similarDomains": null
    }
]
```

[![output page.png](https://i.postimg.cc/BQ5qxDzZ/image.png)](https://postimg.cc/Cz1T0ZY9)

### 📋 Uses of This Data

- Domain expiry and renewal monitoring for domains you own or watch
- Competitive research — see who registered a competitor's domain, when, and through which registrar
- Brand protection — find similar/typo-squat domains and abuse contacts for reporting
- Lead generation and due diligence using registrant country, organization, and contact info
- Bulk auditing of domain portfolios for compliance or security reviews

### 🚀 How to Use

1. [Sign up](https://apify.com/sign-up) for a free Apify account — includes **$5 monthly credit**.
2. Open the actor page and click **Try for free**.
3. Add one or more entries to **Start URLs** and/or **Domains**.
4. Click **Start** and wait for the run to complete.
5. Download results from the **Output** tab in JSON, CSV, or Excel format.

You can also run this actor via the [Apify API](https://docs.apify.com/api/v2) or integrate it directly into your workflows using [Zapier](https://zapier.com/apps/apify), [Make](https://www.make.com/), or [n8n](https://n8n.io/).

### ⚠️ Limitations & Known Issues

- **Hidden registrant data** — Some registrars use privacy services, so `registrantContact` and `technicalContact` may be `null` or contain proxy contact details instead of the real owner.
- **Rate limiting** — Heavy usage may trigger rate limits on whois.com; use a residential proxy and reasonable concurrency.

### 📝 Notes

- **Proxy recommended for large-scale scraping** — For high-volume runs, keep the residential proxy enabled to avoid blocks.
- **API integration** — This actor can be called as an API from any automation platform (Zapier, Make, n8n, custom scripts).

### 🔗 Other Actors

Check out some of our other Actors:

| Actor                                                                                                                | What it does                                                                            |
| -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [Rightmove Listing Availability Checker](https://apify.com/confidential_gnat/rightmove-listing-availability-checker) | Checks whether Rightmove property listings are still available or have been taken down. |
| [Cheapest Cars and Bids Scraper](https://apify.com/confidential_gnat/cheapest-carsandbids-scraper)                   | Finds the cheapest live auctions on Cars & Bids.                                        |

### 💬 Support & Contact

If you encounter any issues or have questions, please open an issue.

You can also find more of our actors on our [Profile Page](https://apify.com/store).

Screenshots taken from https://www.whois.com/

# Actor input Schema

## `startUrls` (type: `array`):

List of URLs (or bare domains) to look up on whois.com. The hostname is extracted automatically and converted into a whois.com lookup URL.

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

List of bare domain names to look up on whois.com, e.g. "google.com". Can be used instead of, or together with, Start URLs.

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

Proxy configuration used to fetch whois.com pages. A residential proxy group is recommended to avoid blocks.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "domains": [
    "google.com",
    "github.com",
    "wikipedia.org"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        }
    ],
    "domains": [
        "google.com",
        "github.com",
        "wikipedia.org"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("confidential_gnat/whois-com").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 = {
    "startUrls": [{ "url": "https://apify.com" }],
    "domains": [
        "google.com",
        "github.com",
        "wikipedia.org",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("confidential_gnat/whois-com").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "domains": [
    "google.com",
    "github.com",
    "wikipedia.org"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call confidential_gnat/whois-com --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=confidential_gnat/whois-com",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "WHOIS Domain Lookup Scraper",
        "description": "Bulk WHOIS lookups via whois.com. Accepts URLs, bare domains, or whois.com lookup links, and returns registration dates, registrar, name servers, status codes, abuse contacts, registrant/technical contact details, and similar domain suggestions.",
        "version": "1.0",
        "x-build-id": "wXw4iX1u86xgaLgEh"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/confidential_gnat~whois-com/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-confidential_gnat-whois-com",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/confidential_gnat~whois-com/runs": {
            "post": {
                "operationId": "runs-sync-confidential_gnat-whois-com",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/confidential_gnat~whois-com/run-sync": {
            "post": {
                "operationId": "run-sync-confidential_gnat-whois-com",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "URLs",
                        "type": "array",
                        "description": "List of URLs (or bare domains) to look up on whois.com. The hostname is extracted automatically and converted into a whois.com lookup URL.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "List of bare domain names to look up on whois.com, e.g. \"google.com\". Can be used instead of, or together with, Start URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy configuration used to fetch whois.com pages. A residential proxy group is recommended to avoid blocks.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
