# Domain Lookup: Bulk WHOIS, Availability Checker & Expiry Alerts (`pikoulas/domain-lookup`) Actor

Look up domains in bulk, or check names across TLDs: whether each is free, its registrar, age and expiry from the registry's RDAP, its DNS, email and DNS hosts, SPF and DMARC, and its SSL certificate. Schedule it for expiry and change alerts. Failures are free.

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

## Pricing

from $3.00 / 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.
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 Lookup: Bulk WHOIS, Availability Checker & Expiry Alerts

Give it a list of domains, or names to check across TLDs, and get for each domain:

- **Availability:** whether it's registered, asked of the registry itself.
- **Registration, as WHOIS gives it:** the registrar, the creation, update and expiry dates, its age, days left
  until it expires, its status codes (such as `client transfer prohibited`), nameservers and DNSSEC. It comes from the
  registry's RDAP service, WHOIS's successor, in the same form for every TLD.
- **DNS records:** A, AAAA and MX, and the SPF and DMARC policies.
- **Who serves it:** its DNS host (Cloudflare, Route 53, GoDaddy...), its email host (Google Workspace,
  Microsoft 365...), the services that send email as it, read from its SPF record (HubSpot, Salesforce,
  Zendesk, Mailchimp...), and its DMARC policy.
- **The SSL certificate:** its issuer, validity dates, days left, and whether it verifies.

And three ways to get only what matters:

- **Name search:** each name you give, checked on every TLD you pick (acme.com, acme.io, acme.ai...), with
  variations such as getacme and acmehq if you like; **Free domains only** gives just the ones you can register.
- **Expiry alerts:** **Expiring within (days)** gives only the domains whose registration or certificate runs
  out within that many days.
- **Change alerts:** with a **Memory name**, each domain has `isNew`, and `previous`: the earlier value of
  whatever changed since the last run, whether it went free, was renewed, moved to another registrar, DNS or
  email host, or got a new certificate. **New and changed domains only** gives just those.

It costs **$3 per 1,000 domains** on Apify's paid plans and $4 on the free plan. A domain that gets no answer
costs nothing, and with a filter, nor does one it leaves out.

### What people use it for

- **Expiry monitoring:** your domains and certificates on a schedule, alerted on the ones expiring within a
  month, before one lapses.
- **Domain name search:** which of a list of names, on which TLDs, are still free to register.
- **Watching domains you want:** a schedule on names someone else holds, telling you the day one goes free.
- **Portfolio and brand audits:** who holds each domain, where it's hosted, and whether its email is protected by
  SPF and DMARC.
- **Lead and market research:** how old a company's domain is, who hosts its email and DNS, and which CRM,
  help desk and email marketing tools send as it.

### How to look up domains

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter the **Domains**: plain domains, or URLs and email addresses to take them from. Or enter **Names to
   check on TLDs**, and the TLDs.
3. Pick the **Checks**, or keep all three, and any filter.
4. Click **Start**, then open the results from the **Output** tab, or download them as JSON, CSV or Excel.

Domains, from plain names, a URL and an email address:

```json
{
  "domains": ["apify.com", "https://www.python.org/downloads/", "info@bbc.co.uk", "my-new-startup-name-2026.com"],
  "checks": ["registration", "dns", "ssl"]
}
```

Which forms of a name are free on eight TLDs: 48 domains looked up, the free ones given:

```json
{
  "names": ["northwind"],
  "tlds": ["com", "net", "org", "io", "ai", "co", "app", "dev"],
  "variations": true,
  "onlyAvailable": true,
  "checks": ["registration"]
}
```

A weekly watch on your domains, giving those that changed, or expire within 30 days, in two schedules:

```json
{
  "domains": ["mycompany.com", "mycompany.io", "mybrand.co.uk"],
  "memory": "my-domains",
  "onlyChanges": true
}
```

```json
{
  "domains": ["mycompany.com", "mycompany.io", "mybrand.co.uk"],
  "expiringWithinDays": 30
}
```

### Output

```json
{
  "domain": "python.org",
  "input": "python.org",
  "available": false,
  "availabilitySource": "rdap",
  "registrar": "Gandi SAS",
  "registrarIanaId": "81",
  "registeredAt": "1995-03-27T05:00:00Z",
  "ageYears": 31.7,
  "updatedAt": "2026-08-12T05:01:11Z",
  "expiresAt": "2033-03-28T05:00:00Z",
  "daysToExpiry": 2318,
  "status": ["client transfer prohibited"],
  "nameservers": ["ns-1134.awsdns-13.org", "ns-2046.awsdns-63.co.uk", "ns-484.awsdns-60.com", "ns-981.awsdns-58.net"],
  "dnsProvider": "Amazon Route 53",
  "dnssec": false,
  "a": ["151.101.0.223", "151.101.128.223", "151.101.192.223", "151.101.64.223"],
  "aaaa": ["2a04:4e42:200::223", "2a04:4e42:400::223", "2a04:4e42:600::223", "2a04:4e42::223"],
  "mx": ["mail.python.org"],
  "emailProvider": null,
  "spf": "v=spf1 mx ip4:188.166.95.178/32 ip6:2a03:b0c0:2:d0::71:1 include:stspg-customer.com include:_spf.google.com include:mailgun.org ~all",
  "emailSenders": ["Google Workspace", "Mailgun"],
  "dmarc": "v=DMARC1; p=none; pct=100; rua=mailto:re+shb8ybr70a3@dmarc.postmarkapp.com; sp=none; aspf=r;",
  "dmarcPolicy": "none",
  "sslHost": "python.org",
  "sslIssuer": "GlobalSign nv-sa",
  "sslValidFrom": "2026-01-13T13:03:46Z",
  "sslExpiresAt": "2027-02-14T13:03:45Z",
  "daysToSslExpiry": 84,
  "sslValid": true,
  "sslError": null,
  "checkedAt": "2026-11-21T13:29:41Z",
  "error": null,
  "isNew": true,
  "previous": {}
}
```

A domain that's free has `available: true` and no registration fields. A check you didn't ask for is `null`.
`sslHost` is the subdomain you gave, or the domain, or its `www` when the domain itself has no address. A
domain that gives no answer comes with `domain`, `input` and `error`, saying why. `emailProvider` and
`dnsProvider` are `null` for a host it doesn't know, such as python.org's own mail server. From a name, `input`
is the name.

`isNew` and `previous` come with a **Memory name**. `previous` holds the earlier value of each field that
changed since that memory's last run, among `available`, `registrar`, `expiresAt`, `status`, `nameservers`,
`mx`, `spf`, `dmarc`, `sslIssuer`, `sslExpiresAt` and `sslValid`; a renewal reads
`"previous": {"expiresAt": ...}` beside the new `expiresAt`. A and AAAA records aren't compared, as CDNs rotate
them. The memory is kept in your account's key-value store `domain-lookup-memory`, one record per name; a
domain not looked up for 180 days is forgotten.

### Use it as an API

Apify's API starts a run and returns its dataset as JSON; its Python and JavaScript clients, and
its Make, Zapier and n8n integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~domain-lookup/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["apify.com", "python.org"]}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/domain-lookup`.

### How much does it cost?

A domain is $0.003, with any of the checks, so 1,000 domains cost $3. Each subdomain you give is its own lookup,
and so is each domain a name is checked on: a name on eight TLDs is eight, and with variations 48. A domain the
registry or DNS gives no answer for, and an input that isn't a domain, cost nothing. With **Free domains only**,
**Expiring within** or **New and changed domains only**, only the domains given are charged. Set a spending
limit on a run and it stops there, with what it has looked up so far.

### Good to know

- **Where availability comes from:** the registry's RDAP for the 1,200 TLDs IANA lists a server for, among them
  .com, .net, .org, .ai, .app, .dev, .uk, .fr, .nl, .ca and .au. For the rest, such as .io, .co, .de, .eu and
  .me, and for registries whose `robots.txt` refuses lookups (CentralNic's .xyz, .art and .icu, GMO's .shop and .tokyo),
  it's DNS alone (`availabilitySource: "dns"`): a domain with no DNS is reported free, which a domain registered
  without nameservers isn't.
- **Free isn't always for sale:** a name the registry has reserved or prices as premium can read as free.
- **Registrant details are never read.** Only the registrar's name and IANA ID are taken from the registry's
  answer; the owner's, admin and technical contacts are left out, even where a registry shows them.
- **Each registry at its own pace:** two lookups a second at most per registry, or the crawl delay its
  `robots.txt` asks for. A registry that refuses (HTTP 401, 403 or 429) is left alone for the rest of the run, its
  domains free; the rest of your list goes on. It uses no proxy.
- **DNS** is asked of Cloudflare's and Google's public resolvers.
- **The certificate check** is a TLS handshake on port 443 and nothing more: no page is loaded. Only public
  addresses are reached. `sslValid: false` comes with the reason: an expired or self-signed certificate, a name
  that doesn't match, or a chain missing its intermediate certificate, which some browsers fill in by themselves.
- **Contact.** The Actor keeps nothing itself: results sit in the storage of whoever ran it. Questions or requests
  go to spyridwn.pd@gmail.com.

### FAQ

#### Is it legal to look up domains in bulk?

Registration data is public, as ICANN requires of registries, and this Actor reads only what's public: no
registrant contacts. [Verisign's RDAP terms](https://www.verisign.com/domain-names/registration-data-access-protocol/terms-service/index.xhtml),
like most registries', prohibit using it to "enable high volume, automated, electronic processes" against their
systems, and your use of it is your own responsibility. It keeps to each registry's pace and `robots.txt`, and stops
at a refusal. If you're unsure, ask a lawyer.

#### Why WHOIS through RDAP?

RDAP is WHOIS's successor: ICANN let generic TLD registries retire WHOIS in January 2025, and RDAP gives the same
data in one form for every registry, over HTTPS.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

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

Domains, or URLs and email addresses to take them from. A subdomain is looked up as its registered domain (blog.example.co.uk as example.co.uk), with the SSL certificate of the subdomain itself. Give domains, names, or both.

## `names` (type: `array`):

Names, such as acme or Acme Labs, each checked on every TLD below: acme.com, acme.io and so on. Each domain checked is a lookup. Add Free domains only to get just the ones you can register.

## `tlds` (type: `array`):

The TLDs each name is checked on, such as com, io or co.uk.

## `variations` (type: `boolean`):

Also checks each name as get, try and use before it, and hq and app after it (getacme.com, acmehq.com): six times the lookups.

## `checks` (type: `array`):

Registration is availability, registrar, dates, status and nameservers; DNS is the A, AAAA, MX, SPF and DMARC records; SSL is the certificate's issuer, expiry and validity. The price is the same for any of them.

## `onlyAvailable` (type: `boolean`):

Gives only the domains free to register. Only the domains given are charged.

## `expiringWithinDays` (type: `integer`):

Gives only the domains whose registration or SSL certificate expires within this many days, or has expired. Only the domains given are charged.

## `memory` (type: `string`):

Keeps each domain's availability, registrar, expiry, status, nameservers, MX, SPF, DMARC and certificate, in your account's key-value store domain-lookup-memory, for the next run with the same name: each domain then has isNew, and previous, the earlier value of each of those that changed. One per schedule; a domain not looked up for 180 days is forgotten.

## `onlyChanges` (type: `boolean`):

With a memory, gives only the domains new to it or changed since its last run: one gone free, renewed, moved to another registrar or DNS host, or with a new certificate. Only the domains given are charged.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "python.org",
    "bbc.co.uk",
    "my-new-startup-name-2026.com"
  ],
  "tlds": [
    "com",
    "net",
    "org",
    "io",
    "ai",
    "co",
    "app",
    "dev"
  ],
  "variations": false,
  "checks": [
    "registration",
    "dns",
    "ssl"
  ],
  "onlyAvailable": false,
  "onlyChanges": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `names` (type: `string`):

No description

## `changes` (type: `string`):

No description

## `email` (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",
        "python.org",
        "bbc.co.uk",
        "my-new-startup-name-2026.com"
    ],
    "tlds": [
        "com",
        "net",
        "org",
        "io",
        "ai",
        "co",
        "app",
        "dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/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",
        "python.org",
        "bbc.co.uk",
        "my-new-startup-name-2026.com",
    ],
    "tlds": [
        "com",
        "net",
        "org",
        "io",
        "ai",
        "co",
        "app",
        "dev",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/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",
    "python.org",
    "bbc.co.uk",
    "my-new-startup-name-2026.com"
  ],
  "tlds": [
    "com",
    "net",
    "org",
    "io",
    "ai",
    "co",
    "app",
    "dev"
  ]
}' |
apify call pikoulas/domain-lookup --silent --output-dataset

```

## MCP server setup

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