# Bulk Domain Lookup — RDAP (WHOIS), DNS, SPF & DMARC (`openregistry/domain-rdap-dns-lookup`) Actor

Check domains in bulk: likely availability, registrar, creation and expiry dates, statuses, name servers, MX, SPF and DMARC. Uses RDAP, the official successor of WHOIS, and DNS-over-HTTPS. No proxy, no scraping.

- **URL**: https://apify.com/openregistry/domain-rdap-dns-lookup.md
- **Developed by:** [Mahé Perrin](https://apify.com/openregistry) (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

$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/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 — RDAP (WHOIS), DNS, SPF & DMARC

Paste a list of domains and get, for each one: whether it is registered or probably free, who the registrar is, when it was created and when it expires, its registry statuses and name servers, and its mail set-up (MX, SPF, DMARC).

The Actor uses two official, open protocols and nothing else:

- **RDAP**, the IETF/ICANN protocol that replaced WHOIS. The right registry server is found through the **IANA bootstrap file** (`data.iana.org/rdap/dns.json`), then the registry is asked directly.
- **DNS-over-HTTPS** through Google Public DNS (`dns.google/resolve`) or Cloudflare (`cloudflare-dns.com/dns-query`).

No WHOIS page scraping, no proxy, no API key. Multi-level suffixes such as `.co.uk` are recognised with the ICANN section of the Public Suffix List (publicsuffix.org, MPL 2.0), bundled with the Actor. Answers are structured by design, so dates and registrar names are not guessed from free text.

### Typical uses

- **Domain hunting**: enter `mybrand` with extensions `com, io, ai, app` and see which are free.
- **Expiry watch**: schedule a weekly run on your portfolio or on competitor domains and alert on `daysUntilExpiry`.
- **Lead qualification**: `domainAgeDays`, `hasMx` and the mail provider visible in `mxRecords` tell you if a company domain is live and how old it is.
- **E-mail deliverability and security audits**: find domains without SPF or with a DMARC policy of `none`.
- **Brand protection and fraud checks**: recently registered look-alike domains, registrar and abuse contact in one row.

### Input example

```json
{
  "domains": ["example.com", "https://www.apify.com/pricing", "contact@afnic.fr", "mybrand"],
  "tlds": ["com", "io", "ai"],
  "includeRdap": true,
  "includeDns": true
}
```

URLs and e-mail addresses are reduced to their domain, `www.` is dropped, internationalised names are converted to punycode, duplicates are removed. A subdomain (`blog.example.co.uk`) is reduced to its registrable domain (`example.co.uk`) with the Public Suffix List, so you can paste hostnames straight from a crawl or a CRM.

### Output

| Field | Meaning |
|---|---|
| `domain`, `input`, `tld` | the domain checked, and what your entry was reduced to |
| `availability` | `registered`, `likely_available`, `possibly_available` or `unknown` |
| `availabilityBasis` | the evidence, in one sentence |
| `registrar`, `registrarIanaId`, `registrarAbuseEmail` | from the registry |
| `createdAt`, `expiresAt`, `updatedAt` | registry dates (ISO 8601) |
| `domainAgeDays`, `daysUntilExpiry` | computed at the time of the check |
| `statuses` | registry (EPP) statuses, e.g. `client transfer prohibited`, `redemption period` |
| `nameservers`, `dnssecSigned` | delegation recorded at the registry |
| `dnsStatus`, `dnsNameservers`, `aRecords`, `aaaaRecords` | live DNS |
| `mxRecords`, `hasMx` | mail servers by priority |
| `hasSpf`, `spfRecord`, `hasDmarc`, `dmarcRecord`, `dmarcPolicy` | mail authentication |
| `rdapAvailable`, `rdapUrl`, `errors`, `checkedAt` | traceability |

### How availability is decided

- `registered` — the registry returned the domain over RDAP (or, for extensions without RDAP, the name exists in DNS).
- `likely_available` — the registry answered "not found" over RDAP. This is the strongest signal that exists outside a registrar's own check, but a registry can still reserve or block a name, and premium pricing is not visible. Confirm with a registrar before you rely on it.
- `possibly_available` — the extension has no RDAP server and the name does not exist in DNS. A registered domain without name servers looks the same, so treat it as a hint.
- `unknown` — contradictory or missing answers; see `availabilityBasis` and `errors`.

### Limits to know

- **Not every extension has RDAP.** All generic extensions do (`.com`, `.net`, `.org`, `.info`, `.app`, `.dev`, `.xyz` and the other new gTLDs), and many country codes (`.fr`, `.uk`, `.nl`, `.ca`, `.ai`, `.tv`…). Some country registries do not publish an RDAP server yet (at the time of writing `.de`, `.io`, `.co`, `.eu`, `.es`, `.it`, `.ch`, `.us`, `.jp`, `.me`): for those you get DNS data and a DNS-based availability hint, and `rdapAvailable` is `false`.
- A few registries refuse RDAP requests from cloud servers (HTTP 403). The Actor does not try to get around a refusal: the row then carries the error in `errors`, and availability falls back on DNS.
- Some registries do not publish every field (for example no expiry date for some country codes). Missing fields are `null`, never invented.
- Registries limit request rates without always publishing figures. The Actor sends at most four requests per second to a given registry, retries on HTTP 429 and 5xx and honours `Retry-After`. Very large lists on a single extension are therefore processed at that pace.
- Privately operated suffixes (for example `name.github.io` or `name.uk.com`) are reported as their parent domain, because that is the name the registry knows.

### Personal data

The Actor does not return registrant, administrative or technical contacts, even when a registry publishes them. It returns registrar details and technical records only. You remain responsible for your own use of the results and for complying with the terms of the registries and with applicable law.

### Pricing

Pay per domain checked. Entries that are not domain names are ignored and never charged.

### Step-by-step guide

- [Bulk check domain expiry dates, registrar and DNS (RDAP, no WHOIS scraping)](https://app.mahedesk.com/outils/guides/bulk-check-domain-expiry-dns/)

# Actor input Schema

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

Domain names, one per line. URLs and e-mail addresses are accepted and reduced to their domain. A single word without a dot (for example mybrand) is combined with every extension listed below.

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

Only used for entries without a dot: mybrand + com, io, ai checks mybrand.com, mybrand.io and mybrand.ai. Defaults to com.

## `includeRdap` (type: `boolean`):

Ask the registry: registrar, creation and expiry dates, statuses, name servers, DNSSEC.

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

Name servers, A, AAAA, MX, SPF and DMARC records.

## `dnsResolver` (type: `string`):

Public DNS-over-HTTPS service used for DNS questions.

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

Requests to one registry are always spaced out, whatever this value.

## `maxResults` (type: `integer`):

Optional. The run stops once this many domains are delivered.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "apify.com"
  ],
  "tlds": [
    "com",
    "io",
    "ai"
  ],
  "includeRdap": true,
  "includeDns": true,
  "dnsResolver": "google",
  "concurrency": 5
}
```

# Actor output Schema

## `domains` (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",
        "apify.com"
    ],
    "tlds": [
        "com",
        "io",
        "ai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("openregistry/domain-rdap-dns-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": [
        "example.com",
        "apify.com",
    ],
    "tlds": [
        "com",
        "io",
        "ai",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("openregistry/domain-rdap-dns-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": [
    "example.com",
    "apify.com"
  ],
  "tlds": [
    "com",
    "io",
    "ai"
  ]
}' |
apify call openregistry/domain-rdap-dns-lookup --silent --output-dataset

```

## MCP server setup

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