# Domain WHOIS & RDAP Lookup: Expiry, Registrar, DNS, Email (`klyve1/domain-rdap-lookup`) Actor

Look up any domain: registrar, creation and expiry dates, days left, status, name servers, MX provider, SPF and DMARC. Uses the official RDAP protocol (the successor of WHOIS) and live DNS. Bulk lists welcome.

- **URL**: https://apify.com/klyve1/domain-rdap-lookup.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 domain founds

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 WHOIS & RDAP Lookup: expiry, registrar, DNS, email setup

Paste a list of domains (or full URLs) and get one clean row per domain: **who the registrar is, when the domain was created, when it expires and how many days are left, its status, name servers, DNSSEC**, plus **live DNS checks**: IP addresses, MX records, **which email provider the company uses** (Google Workspace, Microsoft 365, OVHcloud, Zoho...), **SPF and DMARC**.

It uses **RDAP**, the official successor of WHOIS run by the domain registries themselves, so the data is structured and reliable instead of scraped from WHOIS text.

### What people use it for

- **Domain portfolio monitoring**: schedule it weekly and get warned before a domain expires.
- **Sales prospecting and lead qualification**: know if a prospect runs Google Workspace or Microsoft 365, how old their domain is, and whether their email setup is secure.
- **Email deliverability and security audits**: spot domains with no SPF or a DMARC policy set to `none`.
- **Due diligence and brand protection**: check who registered look-alike domains and when.
- **AI agents**: a fast, cheap tool to answer "when does this domain expire?" or "what email provider does this company use?".

### Example output

```json
{
  "input": "service-public.fr",
  "domain": "service-public.fr",
  "found": true,
  "registeredDomain": "service-public.fr",
  "registrar": "NAMESHIELD",
  "registrarIanaId": "1251",
  "createdAt": "2000-10-05T22:00:00Z",
  "updatedAt": "2026-07-02T22:59:59.586664Z",
  "expiresAt": "2027-06-29T08:11:12Z",
  "daysUntilExpiry": 225,
  "domainAgeYears": 26.1,
  "status": [
    "client transfer prohibited"
  ],
  "nameservers": [
    "ns1.dila.fr",
    "ns2.dila.fr",
    "ns3.dila.fr",
    "ns4.dila.fr"
  ],
  "dnssec": null,
  "registrantOrganization": "DIRECTION INFORMATION LEGALE ET ADMINISTRATIVE",
  "registrantCountry": "FR",
  "rdapServer": "rdap.org",
  "ipAddresses": [
    "160.92.168.33"
  ],
  "mxRecords": [
    "relay1-c.dila.fr",
    "relay2-c.dila.fr"
  ],
  "mailProvider": "Other",
  "acceptsEmail": true,
  "hasSpf": true,
  "spf": "v=spf1 a mx ip4:160.92.140.180 ip4:160.92.140.181 ip4:160.92.169.107 ip4:160.92.169.108 ip4:160.92.64.63 ip4:162.19.70.41 ~all",
  "hasDmarc": true,
  "dmarcPolicy": "none",
  "checkedAt": "2026-11-15T19:33:51.988Z"
}
```

### Input

| Field | Description |
|---|---|
| `domains` | Domain names or URLs, one per line. `https://blog.example.co.uk/page` is checked as `example.co.uk`. |
| `includeDns` | Adds IP addresses, MX records, email provider, SPF and DMARC (default: on). |
| `maxConcurrency` | Domains checked in parallel (default 5). |

### Pricing

Pay per event: you are charged **only for domains that were found**. Invalid or unregistered domains are free. Set a maximum charge per run in the Apify Console if you want a hard cap.

### Good to know

- **Privacy**: registries hide personal data for individuals (GDPR). This Actor only returns the registrant **organisation** when the registry publishes it, never a private person's name, email or phone.
- **Coverage**: all generic TLDs (.com, .net, .org, .io, .app...) and most country TLDs (.fr, .uk, .nl, .ch...). A few country registries have no RDAP service yet: those domains come back with `found: false` and a clear message.
- **Schedule it**: in Apify, add a schedule to run it daily or weekly and connect the results to Google Sheets, Slack or email.

Questions or a missing field? Open an issue on the Actor page, answers within 48 hours.

# Actor input Schema

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

Domain names or full URLs to check, one per line (e.g. example.com, https://www.example.org/page). Subdomains are resolved to their registered domain.

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

Also return IP addresses, MX records, the email provider (Google Workspace, Microsoft 365, OVHcloud...), SPF and DMARC.

## `maxConcurrency` (type: `integer`):

How many domains to check at the same time. Keep it low to stay polite with registry servers.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "wikipedia.org",
    "service-public.fr"
  ],
  "includeDns": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

All rows produced by the run.

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

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/domain-rdap-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",
        "wikipedia.org",
        "service-public.fr",
    ] }

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

```

## MCP server setup

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