# Domain Expiry & WHOIS Monitor | Bulk RDAP Lookup (`andok/domain-expiry-monitor`) Actor

Bulk domain expiry and WHOIS/RDAP lookup: registrar, created/expires dates, domain age, nameservers, DNSSEC, lock status and an expiring-soon flag. No API key. $0.0005 per domain.

- **URL**: https://apify.com/andok/domain-expiry-monitor.md
- **Developed by:** [Andok](https://apify.com/andok) (community)
- **Categories:** Developer tools, 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 $0.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/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 Expiry & WHOIS Monitor — Bulk RDAP Lookup, No API Key

Check when domains expire, who the registrar is and how old they are, for hundreds of domains in one run. Paste domains or URLs and get one clean row each: **registrar, created / expires dates, days until expiry, domain age, nameservers, DNSSEC, transfer lock and EPP statuses**, plus a `health` flag so you can see at a glance what needs renewing. Data comes straight from the registries' official **RDAP** servers (the modern replacement for WHOIS), discovered through the IANA bootstrap file. No API key, no login, no scraping of WHOIS web pages.

Typical uses: never miss a renewal on your own portfolio or client domains, spot **expired or soon-to-drop domains** for acquisition or backlink reclamation, verify brand-protection and **typosquat** candidates (registered or not, and how recently), check domain age during due diligence and fraud screening.

### What you get

| Field | Description |
|---|---|
| `domain`, `tld` | Registrable domain checked |
| `health` | `ok`, `expiring_soon`, `expired`, `in_grace_or_redemption`, `not_registered`, `rdap_unsupported`, `lookup_failed`, `no_expiry_data` |
| `registered` | `true`, `false` (registry says it does not exist) or `null` (unknown) |
| `registrar`, `registrar_iana_id` | Sponsoring registrar |
| `created_at`, `expires_at`, `updated_at` | ISO timestamps from the registry |
| `days_until_expiry`, `domain_age_days` | Computed at run time (negative expiry means already expired) |
| `transfer_locked`, `statuses` | EPP status codes, for example `client transfer prohibited`, `pending delete` |
| `nameservers`, `dnssec_signed` | Delegation data |

A **`SUMMARY`** record in the key-value store lists domains that are expiring soon, expired/in grace, or not registered, with counts per health state. It is free.

### Input

| Field | Description |
|---|---|
| `domains` | Domains or URLs. Subdomains collapse to the registrable domain, common suffixes like `co.uk` are handled |
| `expiryWarningDays` | Threshold for `expiring_soon` (default 60) |
| `onlyActionable` | Deliver and pay only for domains needing attention |
| `maxDomains` | Cap per run (default 500) |

#### Example

```json
{
  "domains": ["example.com", "https://www.wikipedia.org/wiki/Domain", "myclient.co.uk"],
  "expiryWarningDays": 90,
  "onlyActionable": true
}
```

### Pricing

Pay per event: **$0.005 per run** plus **$0.0005 per domain** with a successful registry answer (registration data, or a confirmed "not registered"). Unsupported TLDs and failed lookups are not charged. 1,000 domains cost about **$0.51**. Schedule the Actor daily or weekly and use the Apify integrations (Slack, email, webhooks) to alert on `expiring_soon`.

### Notes

- Coverage is every TLD in the IANA RDAP bootstrap (all gTLDs such as .com, .org, .net, .io and many ccTLDs). Registries that have not deployed RDAP (for example .ee and .de at the time of writing) return `rdap_unsupported`.
- Expiry dates are the registry's expiration date. Some registrars auto-renew or add a grace period beyond it; `in_grace_or_redemption` is set from EPP statuses.
- Registrant personal data is redacted by most registries (GDPR) and is intentionally not returned.
- Registries rate-limit RDAP; the Actor uses limited concurrency and retries. Not legal advice.

# Actor input Schema

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

Domains or URLs, one per line. Subdomains are reduced to the registrable domain (www.example.co.uk becomes example.co.uk).

## `expiryWarningDays` (type: `integer`):

Domains expiring within this many days get health = expiring_soon.

## `onlyActionable` (type: `boolean`):

Deliver (and pay for) only domains that are expiring soon, expired, in grace/redemption, or not registered.

## `maxDomains` (type: `integer`):

Safety cap per run.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "wikipedia.org",
    "github.io"
  ],
  "expiryWarningDays": 60,
  "onlyActionable": false,
  "maxDomains": 500
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

## `run` (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": [
        "example.com",
        "wikipedia.org",
        "github.io"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("andok/domain-expiry-monitor").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": [
        "example.com",
        "wikipedia.org",
        "github.io",
    ] }

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

```

## MCP server setup

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

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/cJnddvIwYPl1fgaJo/builds/pol9iEyHVqktCqbxY/openapi.json
