# Domain Age, Expiry & WHOIS Lookup (Bulk RDAP + DNS) (`capalens/domain-age-expiry-rdap-checker`) Actor

Bulk WHOIS-style lookup via official IANA RDAP (no WHOIS scraping): domain age, expiry date, registrar, availability and DNS. Monitor mode sends Slack/Discord webhook alerts on expiry, drops, renewals and nameserver changes. ~$0.0015 per domain.

- **URL**: https://apify.com/capalens/domain-age-expiry-rdap-checker.md
- **Developed by:** [king](https://apify.com/capalens) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.

Learn more: https://docs.apify.com/actors/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 Age, Expiry & WHOIS Lookup (Bulk RDAP + DNS)

**Bulk WHOIS-style lookup: how old a domain is, when it expires, who the registrar is, whether it is free to register — and a webhook when any of that changes.** Data comes straight from the **official RDAP servers in the IANA bootstrap registry** (the modern, standardised replacement for WHOIS). No WHOIS scraping, no third-party aggregators, no API keys. About **$0.0015 per domain**, DNS snapshot included.

### What you get per domain

| Field | Example |
|---|---|
| `status` | `registered`, `available`, `unknown`, `unsupported-registry`, `error`, `invalid` |
| `createdAt`, `ageDays`, `ageYears`, `ageHuman` | `1997-09-15…`, `10,665`, `29.2`, `29y 2m` |
| `expiresAt`, `daysToExpiry`, `expiryStatus` | `2028-09-14…`, `655`, `ok` (`expired`, `expiring-7d`, `expiring-30d`, `expiring-90d`) |
| `lifecycle` + raw `statuses` | `active`, `redemption-period`, `pending-delete`, `on-hold`, `auto-renew-grace` |
| `registrar` | name + IANA registrar ID |
| `nameservers`, `dnssec` | sorted nameserver list, DNSSEC signed? |
| `dns` *(optional)* | NS/A/AAAA/MX, DNS provider (Cloudflare, Route 53…), email provider (Google Workspace, Microsoft 365…), SPF and DMARC policy, `NXDOMAIN` detection |
| `changes` *(monitor mode)* | `became-available`, `renewed`, `nameservers-changed`, `expiring-within-30d`… |

Personal registrant data is never collected or returned — only registry and registrar facts.

### Use cases

- **Expiry watchdog** for your own domain portfolio or your clients' domains — never lose a domain to a forgotten renewal.
- **Drop-catching / brand protection:** get a webhook the moment a watched domain becomes `available`, enters `redemption-period` or `pending-delete`.
- **Domain age for SEO & fraud/risk scoring:** newly registered domains are a classic phishing and spam signal; old domains are a trust signal.
- **Lead & prospect enrichment:** add domain age, registrar and DNS/email provider to a company list.
- **Competitor / acquisition research:** which domains change registrar, nameservers or owner-side DNS?
- **Bulk availability checks** for brainstormed names (RDAP "not found" ⇒ not registered).

### How to use

The default input already looks up `google.com`, `example.org`, `capalens.com` and a name that is almost certainly available, so you can click **Start** and see registered vs. available rows in a few seconds (~$0.007).

1. Click **Start**, or paste your own domains (or URLs — the registrable domain is extracted) into **Domains**.
2. Results appear in the **Output** table; export as JSON / CSV / Excel.

#### Use as an Apify integration

Attach this Actor to any scraper that outputs websites or company domains. On that Actor's **Integrations** tab, add *Domain Age, Expiry & WHOIS Lookup (Bulk RDAP + DNS)* as a target and leave **Domains** empty. This Actor reads `domain`, `url`, `website` or `startUrl` from the triggering run's dataset (up to 5,000 unique domains). You can also pass a dataset ID in **Source dataset ID**. Combine with monitor mode and a schedule if you want expiry alerts on that list.

```json
{
  "domains": ["google.com", "example.org", "capalens.com", "this-name-is-surely-free-8842193.com"],
  "includeDns": true
}
```

#### Example output (shortened, real lookup of vercel.app on 2026-11-28)

```json
{
  "domain": "vercel.app",
  "status": "registered",
  "rdapServer": "https://pubapi.registry.google/rdap/",
  "createdAt": "2020-01-28T03:03:04.240Z",
  "expiresAt": "2036-01-28T03:03:04.240Z",
  "ageDays": 2496,
  "ageHuman": "6y 10m",
  "daysToExpiry": 3347,
  "expiryStatus": "ok",
  "lifecycle": "active",
  "statuses": ["client transfer prohibited", "client update prohibited"],
  "registrar": { "name": "Tucows Domains Inc", "ianaId": "69" },
  "nameservers": ["ns1.vercel-dns-3.com", "ns2.vercel-dns-3.com", "ns3.vercel-dns-3.com", "ns4.vercel-dns-3.com"],
  "dnssec": false,
  "dns": { "status": "resolves", "nameserverProvider": "Vercel DNS", "emailProvider": null, "spf": "hard-fail", "dmarc": "reject" }
}
```

#### Monitor mode (schedule it)

Turn on **Monitor mode**, give the list a **Monitor ID**, and put the Actor on an [Apify Schedule](https://docs.apify.com/platform/schedules) (daily is typical). Each run is compared with the previous run for that ID (state is stored in a named key-value store in *your* account). Add an **Alert webhook URL** to receive a JSON `POST` — payload includes `text` (Slack) and `content` (Discord) so incoming webhooks work as-is, plus a machine-readable `changes` array for Zapier / Make / n8n.

```json
{
  "domains": ["mybrand.com", "mybrand.net", "competitor-i-want.io"],
  "monitorChanges": true,
  "monitorId": "brand-portfolio",
  "alertDays": 45,
  "alertWebhookUrl": "https://hooks.slack.com/services/XXX/YYY/ZZZ"
}
```

Detected changes: `first-seen`, `became-available`, `newly-registered`, `renewed`, `expiry-changed`, `expiring-within-Nd` / `expired` (once, when the threshold is crossed), `registrar-changed`, `nameservers-changed`, `status-changed`, `lifecycle-redemption-period` / `lifecycle-pending-delete` / `lifecycle-on-hold`, `dnssec-enabled/disabled`, `dns-a-changed`, `dns-mx-changed`. The run also writes `CHANGES` and `OUTPUT` records to the key-value store.

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Run started | **$0.001** |
| Domain checked (RDAP + DNS, incl. monitor comparison) | **$0.0015** |

That is **$1.50 per 1,000 domains**. Not charged: invalid input, failed/timed-out lookups, TLDs with no RDAP server and registries we do not query (see below). Watching 50 domains daily costs roughly $2.30 / month. Set a max spend on the run and the Actor stops cleanly at the limit.

### Responsible use & limits (please read)

- **Official sources only.** Servers come from IANA's RDAP bootstrap file (`data.iana.org/rdap/dns.json`). Queries are **throttled per server (≈3 requests/s)**, back off on HTTP 429 / `Retry-After`, and are identified with a descriptive User-Agent.
- **Registry terms are respected.** Some registries forbid automated/commercial bulk RDAP use in their terms (for example Nominet for `.uk`). The Actor does not query such registries and returns `unsupported-registry` with DNS hints only (not charged).
- **Coverage = what IANA publishes.** Many ccTLDs (e.g. `.cn`, `.de`, `.io`, `.co`, `.me`, `.eu`, `.jp`, `.ru`) have **no** RDAP server in the bootstrap file, so you get `unknown` plus DNS-based hints only (charged only if DNS data was obtained). `.com`, `.net`, `.org`, `.info`, `.dev`, `.app`, `.ai`, `.xyz`, `.fr`, `.nl`, `.au`, `.br`, `.ca`, `.in`, `.kr`, `.sg`, `.tw` and ~1,100 more are covered.
- **"available" means RDAP returned 404** — the name is not registered in the registry. Premium, reserved or blocked names may still not be registrable; confirm at a registrar before you rely on it.
- Some registries do not publish creation or expiry dates; those fields are then `null` and a note explains why. Dates are the *registry's* record — a registrar may show a slightly different renewal date.
- Subdomains and URLs are reduced to the registrable domain with a built-in list of common two-level suffixes (`co.uk`, `com.au`, …). For unusual suffixes pass the registrable domain directly.
- This is information, not legal or financial advice, and not a guarantee of ownership or availability.

### Works with AI agents

Flat, typed JSON — call it from Claude or Cursor through the Apify MCP server: *"Which of these 40 domains expire within 60 days?"*

### Related Actors by CapaLens

- 🌐 **[Website Tech Stack, Security & AI-Readiness Scanner](https://apify.com/capalens/website-tech-stack-security-scanner)** – after you know a domain's age and DNS, scan the site itself: tech stack, security headers, TLS expiry, SPF/DMARC and AI-agent readiness (`llms.txt`, AI-bot rules).
- 🔎 **[MCP Server Tester & Health Checker](https://apify.com/capalens/mcp-live-verifier)** – live-test any MCP server URL (handshake, auth, latency, tools, package health) and search the Official MCP Registry + CapaLens directory.
- 🌏 **[CapaLens](https://capalens.com)** – bilingual (English / 中文) directory of MCP servers and AI-agent tools.

### Feedback

Missing a TLD behaviour, a change type or an output field? Open an issue from the Actor's **Issues** tab.

# Actor input Schema

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

Domains (or URLs / hostnames — the registrable domain is extracted), one per line. Up to 5,000 per run. Examples: `example.com`, `https://www.example.org/page`.

## `datasetId` (type: `string`):

Read extra domains/URLs from an Apify dataset (fields such as domain, url, website, startUrl). When this Actor is used as an integration, the triggering run's default dataset is used automatically if you leave Domains empty.

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

Also resolve NS/A/AAAA/MX, SPF and DMARC and detect DNS and email providers. Included in the price.

## `monitorChanges` (type: `boolean`):

Compare with the previous run that used the same Monitor ID and report changes: became-available, newly-registered, renewed, expiring-within-N-days, expired, registrar/nameserver/status/DNSSEC/DNS changes, pending-delete / redemption lifecycle. Run it on an Apify Schedule (e.g. daily). State is kept in a named key-value store in your account.

## `monitorId` (type: `string`):

Name of this watch-list. Runs with the same ID are compared with each other. Use different IDs for different lists. Letters, digits, `-` and `_` only.

## `alertDays` (type: `integer`):

In monitor mode, flag a domain once when it comes within this many days of expiry (or has expired).

## `alertWebhookUrl` (type: `string`):

Public https URL that receives a JSON POST with the changes. Works with Slack and Discord incoming webhooks (payload contains both `text` and `content`), Zapier, Make, n8n. Only used in monitor mode.

## `alertOnlyOnChange` (type: `boolean`):

If off, a 'no changes' message is sent after every run.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each RDAP request.

## `concurrency` (type: `integer`):

Domains processed in parallel. Requests to each RDAP server are additionally throttled (about 3 per second) regardless of this value.

## Actor input object example

```json
{
  "domains": [
    "google.com",
    "example.org",
    "capalens.com",
    "this-name-is-surely-free-8842193.com"
  ],
  "includeDns": true,
  "monitorChanges": false,
  "monitorId": "default",
  "alertDays": 30,
  "alertOnlyOnChange": true,
  "requestTimeoutSecs": 15,
  "concurrency": 8
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

## `changes` (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": [
        "google.com",
        "example.org",
        "capalens.com",
        "this-name-is-surely-free-8842193.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("capalens/domain-age-expiry-rdap-checker").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": [
        "google.com",
        "example.org",
        "capalens.com",
        "this-name-is-surely-free-8842193.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("capalens/domain-age-expiry-rdap-checker").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": [
    "google.com",
    "example.org",
    "capalens.com",
    "this-name-is-surely-free-8842193.com"
  ]
}' |
apify call capalens/domain-age-expiry-rdap-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,capalens/domain-age-expiry-rdap-checker"
        }
    }
}
```

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/G4pXXADCVI7mvQbCT/builds/vKZBDY0hhsmT1qdjV/openapi.json
