# Bulk Domain Lookup: WHOIS, DNS & Availability (`plain_rows/domain-lookup`) Actor

Look up domains in bulk: whether each is registered or available, its registrar, creation and expiry dates, age, name servers, and its DNS records (A, AAAA, MX, NS, CNAME, TXT), mail provider, SPF and DMARC. Uses the official RDAP and DNS protocols. Paste domains, links or email addresses.

- **URL**: https://apify.com/plain_rows/domain-lookup.md
- **Developed by:** [Plain Rows](https://apify.com/plain_rows) (community)
- **Categories:** Developer tools, Automation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Bulk Domain Lookup: WHOIS, DNS and Availability

Paste a list of domains and get back, for each one, whether it is registered or available, who the registrar is, when it was created and when it expires, and its DNS records, mail provider and email-security settings.

It uses the official protocols directly: RDAP, the registries' own replacement for WHOIS, and DNS. No websites are scraped and no proxies are needed. A hundred domains take well under a minute.

### What you get for each domain

- **Registered or available**, straight from the registry.
- **Registration details**: registrar, creation, update and expiry dates, age in days, days until expiry, registry status codes and name servers.
- **DNS records**: A, AAAA, CNAME, MX and NS, plus all TXT records if you ask for them.
- **Email setup**: whether the domain can receive mail, which provider it uses (Google Workspace, Microsoft 365 and others), and its SPF and DMARC records with the DMARC policy.

### What it is good for

- **Checking name availability** for a list of ideas.
- **Lead and vendor checks.** A domain registered last week is a different risk from one registered in 2009.
- **Email deliverability and security audits.** See which domains lack SPF or DMARC.
- **Watching expiry dates** across a portfolio. Schedule it and sort by days until expiry.
- **Enriching a company list** with mail provider and domain age.

### Input

| Field | What it does |
|---|---|
| **Domains** | One per line: `example.com`, a full link, or an email address. Duplicates are removed. |
| **Look up registration data** | On by default. |
| **Look up DNS records** | On by default. |
| **Include every TXT record** | Off by default. |

```json
{
    "domains": [
        "apify.com",
        "https://www.bbc.co.uk/news",
        "someone@wikipedia.org"
    ],
    "includeRegistration": true,
    "includeDns": true
}
```

### Output

```json
{
    "domain": "apify.com",
    "status": "ok",
    "registrableDomain": "apify.com",
    "tld": "com",
    "registered": true,
    "available": false,
    "registrar": "Amazon Registrar, Inc.",
    "createdAt": "2009-06-02T00:00:00.000Z",
    "expiresAt": "2035-06-02T00:00:00.000Z",
    "ageDays": 6380,
    "daysUntilExpiry": 3116,
    "nameServers": [
        "ns-1.awsdns-00.com",
        "ns-2.awsdns-00.net"
    ],
    "a": [
        "203.0.113.10"
    ],
    "mx": [
        {
            "priority": 1,
            "host": "aspmx.l.google.com"
        }
    ],
    "hasMail": true,
    "mailProvider": "Google Workspace",
    "spf": "v=spf1 include:_spf.google.com ~all",
    "dmarcPolicy": "reject",
    "resolves": true,
    "checkedAt": "2026-11-21T00:40:00.000Z"
}
```

The addresses and name servers in this example are placeholders; a real run returns the live values.

### How to check domains in bulk

1. Paste your domains into **Domains**, one per line.
2. Leave both lookups on, or switch one off if you only need registration data or only DNS.
3. Click **Start**.
4. Download the results as CSV, Excel or JSON, or read them through the API.

### How much does a domain lookup cost?

You pay **$0.002 per domain checked**, so 1,000 domains cost $2. Entries that are not domain names are skipped and free.

Apify's free plan includes $5 of usage a month, which is about 2,500 domains. Users on Apify's Silver plan pay 10% less and on Gold 20% less.

### Limits

- **Not every domain ending publishes registration data.** Most do, including .com, .net, .org, .co.uk, .dev, .app and .gov. Some, such as .de, .io, .jp and .edu, do not offer RDAP. For those the Actor says so, and uses DNS to tell you the domain is registered when it has records. It cannot confirm that such a domain is available.
- **No owner details.** Registries no longer publish who owns a domain, and this Actor does not try to find out. It returns the registrar, not the registrant.
- **Availability is what the registry reports at that moment.** A name can be reserved, premium-priced or in a grace period and still show no record.
- Registries limit how fast they answer, so very large lists are paced automatically.

### Frequently asked questions

#### Is this WHOIS?

It is the same registration data, read through RDAP, the protocol registries now use in place of the old WHOIS service. The answers are structured, so dates and statuses come back clean.

#### Can I paste links or email addresses instead of domains?

Yes. The domain is picked out of each one.

#### Does it tell me who owns a domain?

No. That information is no longer published for most domains.

#### How do I find domains without DMARC?

Run your list and filter the results for an empty `dmarcPolicy`.

### Other tools by Plain Rows

- [ATS Jobs Scraper](https://apify.com/plain_rows/ats-jobs-scraper): Search 11,400+ company career pages by keyword, with pay ranges and an only-new mode.
- [Greenhouse Jobs Scraper](https://apify.com/plain_rows/greenhouse-jobs-scraper): Greenhouse boards in depth: pay ranges, departments, offices and custom fields.
- [PDF Text Extractor](https://apify.com/plain_rows/pdf-text-extractor): PDF to text and Markdown, page by page, with OCR for scans.
- [US New Business Leads](https://apify.com/plain_rows/us-business-registry): Newly registered and newly licensed businesses from official state and city data.
- [Image to Text OCR](https://apify.com/plain_rows/image-ocr-text): Text from screenshots, scans and photos of documents, in 100+ languages.
- [Website Screenshot](https://apify.com/plain_rows/website-screenshot): Full-page or mobile screenshots of many web pages at once.

### Questions or problems

Open the **Issues** tab on this Actor's page and describe what you ran and what you expected. Issues are answered there.

# Actor input Schema

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

One per line. You can paste plain domains (example.com), full links (https://www.example.com/page) or email addresses (name@example.com); the domain is picked out for you.

## `includeRegistration` (type: `boolean`):

Registered or available, registrar, creation, update and expiry dates, age in days, and status. This is the data people call WHOIS, read through RDAP, its official replacement.

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

A, AAAA, CNAME, MX and NS records, the mail provider, and the SPF and DMARC email-security records.

## `includeTxtRecords` (type: `boolean`):

Add the full list of TXT records. SPF and DMARC are always included when DNS is on; this adds the rest, such as site-verification records.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "github.com",
    "wikipedia.org"
  ],
  "includeRegistration": true,
  "includeDns": true,
  "includeTxtRecords": false
}
```

# Actor output Schema

## `domains` (type: `string`):

One item per domain.

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

How many domains were checked or failed, and entries that were not domains.

# 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",
        "wikipedia.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plain_rows/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",
        "github.com",
        "wikipedia.org",
    ] }

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

```

## MCP server setup

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