# Domain WHOIS, RDAP, DNS & Availability Scraper (`angaba92/domain-whois-rdap-dns-scraper`) Actor

Bulk domain WHOIS, RDAP, DNS (A, AAAA, MX, NS, TXT, CAA, SPF, DMARC), BGP ASN, email provider/SEG detection & Name x TLD availability checker across 1,200+ TLDs (.com, .io, .ai, .ch, .de, .eu). $0.00 start fee.

- **URL**: https://apify.com/angaba92/domain-whois-rdap-dns-scraper.md
- **Developed by:** [Andres Garcia-Baquero Leon](https://apify.com/angaba92) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 domain intelligence records

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, DNS & Availability Scraper

Bulk **domain WHOIS, RDAP, DNS and TLD availability scraper** built on authoritative IETF registry protocols (**RDAP RFC 7480**, **Port-43 WHOIS RFC 3912**, **DNS-over-HTTPS RFC 8484** and **Team Cymru BGP ASN**). Inspect registrars, creation and expiry dates, domain age, DNS records (`A`, `AAAA`, `MX`, `NS`, `TXT`, `CAA`), `SPF` and `DMARC` policies, email hosting provider, Secure Email Gateways (`Mimecast`, `Proofpoint`, `Barracuda`), IP BGP ASN, or generate **Name x TLD** availability matrices across **1,200+ TLDs** with **$0.00 start fee**.

### Why teams choose this Actor over single-source WHOIS tools

| Capability | Manual `whois` / basic RDAP scripts | Domain WHOIS, RDAP, DNS & Availability Scraper |
|---|---|---|
| **TLD coverage** | Fails on `.ch`, `.io` or `.de` when using `rdap.org` alone | **1,203 IANA RDAP TLDs** + ccTLD RDAP overrides (`.ch`, `.li`) + automatic **IANA Port-43 WHOIS** referral (`.io`, `.ai`, `.de`, `.eu`, `.co`, `.it`, `.nl`) |
| **Row-by-row Clay / n8n cost** | `$0.01–$0.035` start fee per webhook call | **$0.00 start fee** — pay strictly `$0.002` per emitted domain record |
| **Email & security stack** | Raw MX hostnames only | Auto-classifies **Google Workspace, Microsoft 365, Proton Mail, Zoho, Fastmail** + **Mimecast / Proofpoint / Barracuda** SEGs + **SPF / DMARC** policy |
| **Infrastructure & ASN** | Requires separate IP geolocation API key | Resolves **IPv4/IPv6 + BGP ASN, prefix, country & ASN org** via Team Cymru DNS + **Cloudflare / Route 53 / Azure / Google DNS** provider |
| **Name x TLD availability** | Separate tool needed | Built-in `names` x `tlds` matrix with `onlyAvailable` / `onlyRegistered` & `maxDaysToExpiry` filters |

### Pricing (Pay-Per-Event — $0.00 Start Fee)

| Event | Price (USD) | Cost per 1,000 domains | When charged |
|---|---|---|---|
| **Actor start** | **$0.00** | $0.00 | Never — ideal for single-row Clay, Make & n8n webhooks |
| **`domain-record`** | **$0.002** | **$2.00 / 1,000** | Charged atomically once per normalized, deduplicated domain emitted to the dataset |

Invalid strings, IP addresses, duplicate URLs pointing to the same root domain, and records filtered out by `onlyAvailable`, `onlyRegistered`, or `maxDaysToExpiry` are **not** emitted and **not** charged.

### Quick Start (4 Steps)

1. Enter a list of domains or URLs in **`domains`** (e.g. `["stripe.com", "supabase.io", "infomaniak.ch"]`) — or supply bare brand **`names`** + **`tlds`** for bulk availability checking.
2. Keep **`includeDns: true`** to enrich `A`, `AAAA`, `MX`, `NS`, `TXT`, `CAA`, `SPF`, `DMARC`, email provider, and BGP ASN.
3. Optional: enable **`onlyAvailable: true`** for brand/domain hunting, or set **`maxDaysToExpiry: 60`** to monitor expiring domains.
4. Run via Apify Console or synchronous HTTP API (`run-sync-get-dataset-items`) and export **JSON, CSV, or Excel**.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `domains` | `string[]` | `["stripe.com", ...]` | Domains or full URLs (normalized to registrable root domains and deduplicated). |
| `names` | `string[]` | `[]` | Bare brand/keyword names combined with every TLD in `tlds`. |
| `tlds` | `string[]` | `["com","io","ai","co","dev"]` | TLDs tested for each entry in `names`. |
| `includeDns` | `boolean` | `true` | Resolve `A`, `AAAA`, `MX`, `NS`, `TXT`, `CAA`, `SPF`, `DMARC`, email provider, and IP BGP ASN. |
| `onlyAvailable` | `boolean` | `false` | Emit and charge only available (unregistered) domains. |
| `onlyRegistered` | `boolean` | `false` | Emit and charge only registered domains. |
| `maxDaysToExpiry` | `integer` | `null` | Only emit domains expiring within `N` days. |
| `concurrency` | `integer` | `5` | Parallel lookups (`1`–`10`). |
| `maxResults` | `integer` | `50` | Cap on emitted and charged domain records (`1`–`5000`). |

### Input Examples

#### 1. B2B Domain Intelligence & Deliverability Pre-Check

```json
{
  "domains": ["stripe.com", "supabase.io", "infomaniak.ch", "sap.de"],
  "includeDns": true,
  "maxResults": 10
}
```

#### 2. Brand Name x TLD Availability Matrix

```json
{
  "names": ["hypergridai", "veloxops"],
  "tlds": ["com", "io", "ai", "co", "dev", "ch"],
  "onlyAvailable": true
}
```

### Real Output Sample

```json
{
  "domain": "stripe.com",
  "tld": "com",
  "availability": "registered",
  "isAvailable": false,
  "isRegistered": true,
  "lookupSource": "rdap",
  "registrar": "SafeNames Ltd.",
  "registrarIanaId": "447",
  "createdAt": "1995-09-12T04:00:00+00:00",
  "expiresAt": "2027-09-11T04:00:00+00:00",
  "domainAgeDays": 11395,
  "daysToExpiry": 291,
  "dnssecSigned": false,
  "nameservers": ["dns1.idp365.net", "dns2.idp365.net"],
  "dnsProvider": "Custom NS",
  "ipv4": ["104.18.38.7"],
  "asn": "AS13335",
  "asnName": "CLOUDFLARENET, US",
  "ipCountry": "US",
  "hasMx": true,
  "emailProvider": "Google Workspace",
  "emailSecurityGateway": null,
  "spfRecord": "v=spf1 include:_spf.google.com include:spf-a.stripe.com ~all",
  "dmarcPolicy": "reject"
}
```

### Output Schema Reference

| Field | Type | Description |
|---|---|---|
| `domain` / `tld` | `string` | Normalized registrable domain and TLD. |
| `availability` | `string` | `registered`, `available`, or `unknown`. |
| `isAvailable` / `isRegistered` | `boolean` | Boolean flags for direct workflow branching. |
| `lookupSource` | `string` | `rdap`, `whois:<server>`, `dns_delegation`, or `dns_nxdomain`. |
| `registrar` / `registrarIanaId` | `string\|null` | Accredited registrar name and IANA ID when published. |
| `createdAt` / `expiresAt` / `updatedAt` | `string\|null` | UTC ISO-8601 timestamps. |
| `domainAgeDays` / `daysToExpiry` | `integer\|null` | Computed age in days and days remaining until expiration. |
| `nameservers` / `dnsProvider` | `array` / `string` | Authoritative NS servers and detected DNS provider. |
| `ipv4` / `ipv6` / `asn` / `asnName` / `ipCountry` | `array` / `string` | Resolved IP addresses and BGP Autonomous System metadata. |
| `mxRecords` / `emailProvider` / `emailSecurityGateway` | `array` / `string` | Sorted MX exchangers, mail host, and SEG (`Mimecast`, `Proofpoint`, etc.). |
| `spfRecord` / `dmarcRecord` / `dmarcPolicy` | `string\|null` | Parsed SPF & DMARC records (`none`, `quarantine`, `reject`). |

### Synchronous Clay / n8n / Make Webhook Recipe ($0.00 Start Fee)

```bash
curl -X POST "https://api.apify.com/v2/acts/Angaba92~domain-whois-rdap-dns-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["stripe.com"], "includeDns": true, "maxResults": 1}'
```

### FAQ

1. **Why are creation/expiration dates `null` on certain European ccTLDs like `.de` or `.ch`?**
   Registries such as DENIC (`.de`) and SWITCH (`.ch`) redact registration dates in public unauthenticated RDAP/WHOIS responses under GDPR/FADP; the Actor still verifies `isRegistered`, `nameservers`, `dnssecSigned`, DNS, `emailProvider`, and `ASN`.
2. **Are duplicate URLs in `domains` billed twice?**
   No. `https://stripe.com/docs` and `www.stripe.com` normalize to `stripe.com` before execution and are billed once.
3. **How is availability confirmed so rate limits never produce false positives?**
   A domain is marked `available` only when authoritative registry RDAP/WHOIS not-found agrees with DNS `NXDOMAIN` (`Status == 3` with zero `NS`/`A` records).
4. **Does this Actor require third-party WHOIS or IP API keys?**
   No. All queries run directly against IANA RDAP, registry port-43 WHOIS, Google DoH, and Team Cymru DNS.
5. **Can I detect newly registered burn/phishing domains?**
   Yes — inspect `domainAgeDays` (e.g. `< 30` days) alongside `dmarcPolicy` and `registrar`.
6. **Can I use it row-by-row inside Clay or n8n?**
   Yes — there is `$0.00` start fee, so checking 1 domain in a synchronous webhook costs `$0.002`.

### Troubleshooting

| Symptom | Cause & Fix |
|---|---|
| `0` items returned | All inputs were invalid hostnames/IPs, or none matched `onlyAvailable` / `onlyRegistered` / `maxDaysToExpiry`. Relax filters or pass valid domains. |
| `registrar` is `null` on a registered domain | Certain ccTLD registries omit registrar names from public RDAP/WHOIS; check `nameservers` and `dnsProvider`. |

# Actor input Schema

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

List of domains or URLs to inspect (e.g. stripe.com, supabase.io, infomaniak.ch). URLs are automatically normalized to registrable root domains and deduplicated.

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

Optional bare names without TLD (e.g. \['acmecloud']) combined with every TLD in 'tlds' to check multi-TLD availability and ownership in bulk.

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

TLDs combined with each entry in 'names' (e.g. \['com', 'io', 'ai', 'co', 'ch', 'de']). Used only when 'names' is non-empty.

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

Resolve A, AAAA, MX, NS, TXT, CAA, SPF, \_dmarc policy, email hosting provider (Google Workspace, Microsoft 365, etc.) and IP BGP ASN.

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

When enabled, emit and charge only unregistered/available domains.

## `onlyRegistered` (type: `boolean`):

When enabled, emit and charge only registered domains.

## `maxDaysToExpiry` (type: `integer`):

Optional upper bound on daysToExpiry (e.g. 60 to monitor domains expiring within 60 days). Leave empty for no filter.

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

Parallel domain lookups (1 to 10).

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

Maximum domain records to emit and charge in this run.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "supabase.io",
    "infomaniak.ch",
    "apify.com"
  ],
  "tlds": [
    "com",
    "io",
    "ai",
    "co",
    "dev"
  ],
  "includeDns": true,
  "onlyAvailable": false,
  "onlyRegistered": false,
  "concurrency": 5,
  "maxResults": 50
}
```

# Actor output Schema

## `results` (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": [
        "stripe.com",
        "supabase.io",
        "infomaniak.ch",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("angaba92/domain-whois-rdap-dns-scraper").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": [
        "stripe.com",
        "supabase.io",
        "infomaniak.ch",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("angaba92/domain-whois-rdap-dns-scraper").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": [
    "stripe.com",
    "supabase.io",
    "infomaniak.ch",
    "apify.com"
  ]
}' |
apify call angaba92/domain-whois-rdap-dns-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,angaba92/domain-whois-rdap-dns-scraper"
        }
    }
}
```

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/VNaOimrbEvH0uWMgU/builds/iaCpaJGKKmaMuqddB/openapi.json
