# Domain WHOIS Intelligence — RDAP, Age & Risk (AI) (`noniner/domain-whois-intelligence`) Actor

Look up any domain's registration data via modern RDAP: registrar, creation/expiry dates, age, status flags, nameservers and DNS — with an AI trust/risk read (newly registered, privacy-masked, expiring). For fraud checks, lead enrichment and security.

- **URL**: https://apify.com/noniner/domain-whois-intelligence.md
- **Developed by:** [Fredrik Hansson](https://apify.com/noniner) (community)
- **Categories:** Developer tools, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$100.00 / 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 WHOIS Intelligence — RDAP, Age & Risk (AI)

**Every domain tells a story — this Actor reads it.** Hand it a list of domains (or URLs, or emails) and it pulls each domain's modern WHOIS record over **RDAP** — the registrar, when it was created, when it expires, how old it is, its status flags, nameservers and DNSSEC — resolves live **DNS** (A / MX / NS + mail provider), and finishes with an **AI trust/risk read**: is this domain *established*, or *newly registered and privacy-masked*?

You bring the domains. It hands back a registration dossier with a risk flag on top.

***

### The flow

```
       domain / URL / email
                │
        ┌───────┴────────┐
        ▼                ▼
   RDAP (WHOIS)      DNS (node:dns)
  registrar · dates   A · MX · NS ·
  status · NS ·       mail provider
  DNSSEC · registrant
        └───────┬────────┘
                ▼
         AI trust read
   trustSignal · riskFlags ·
       2-sentence summary
```

1. **RDAP lookup** via `rdap.org` — a bootstrap that redirects to the authoritative registry's RDAP server and returns structured JSON (the modern, machine-readable successor to port-43 WHOIS).
2. **DNS resolution** (optional, on by default) — A, MX and NS records, plus a best-effort mail provider guess from the MX hosts.
3. **AI trust read** — OpenAI reads only the facts above and returns a trust signal, risk flags and a short, hedged summary meant for human review.

***

### What you get per domain

1. **`registrar`** — the registrar of record (e.g. "MarkMonitor Inc.").
2. **`createdDate` · `expiryDate` · `lastChanged`** — registration lifecycle dates (ISO).
3. **`domainAgeDays` · `daysUntilExpiry`** — how old the domain is, and how long until it lapses.
4. **`isNewlyRegistered`** (`< 90 days`) **· `isExpiringSoon`** (`< 30 days`) — the two flags fraud and ops teams care about most.
5. **`statuses`** — EPP status codes (`clientTransferProhibited`, `serverHold`, …).
6. **`nameservers` · `dnssec`** — delegation and whether the zone is DNSSEC-signed.
7. **`registrantOrg` · `privacyMasked`** — the registrant org when published, or a flag that it's redacted / behind a privacy service.
8. **`dns`** — `{ a, mx, mailProvider, ns }` from live DNS (when enabled).

Then the **AI layer** (OpenAI `gpt-4o-mini`, fast and low-cost) adds:

- **`trustSignal`** — `established` · `normal` · `caution` · `high-risk`.
- **`riskFlags`** — short phrases such as *"newly registered"*, *"expiring soon"*, *"privacy-masked registrant"*, *"no DNSSEC"*, *"suspicious registrar/TLD"*.
- **`aiSummary`** — two sentences, written as a **signal for review, not a verdict**.

***

### Three ways people use it

- **Fraud & trust checks** — vet a domain before you pay an invoice, approve a vendor, or trust a link. A **WHOIS API** that surfaces **domain age** and **newly registered domains** instantly — the single strongest fraud signal there is.
- **B2B lead enrichment** — enrich a list of prospect domains with registrar, age, mail provider and DNS, and filter out parked or expiring domains before they hit your CRM.
- **Security & phishing triage** — score inbound domains with a fast **RDAP lookup** and **domain risk** read: fresh registration + privacy mask + no DNSSEC is the classic phishing fingerprint. Feed it straight into your SOC workflow.

Keywords this Actor is built for: **WHOIS API**, **RDAP lookup**, **domain age**, **domain risk**, **newly registered domains**, DNS lookup, registrar lookup, domain expiry check.

***

### Input

| Field | Type | Notes |
|---|---|---|
| `domains` | array | **Required.** Domains, website URLs or emails — the bare domain is extracted. One per line. |
| `includeDns` | boolean | Resolve A / MX / NS and guess the mail provider. Default `true`. |
| `maxResults` | integer | Cap how many domains to look up. Default `200`. |
| `maxConcurrency` | integer | Domains processed in parallel. Default `8`. |
| `model` | string | Override the OpenAI model. Default `gpt-4o-mini`. |

#### Minimal input example

```json
{
  "domains": ["stripe.com", "example.com"]
}
```

***

### Output example

```json
{
  "domain": "stripe.com",
  "registrar": "MarkMonitor Inc.",
  "createdDate": "2008-09-05T00:00:00.000Z",
  "expiryDate": "2026-09-05T00:00:00.000Z",
  "lastChanged": "2024-08-02T00:00:00.000Z",
  "domainAgeDays": 6609,
  "daysUntilExpiry": 331,
  "isNewlyRegistered": false,
  "isExpiringSoon": false,
  "statuses": ["clientTransferProhibited", "clientUpdateProhibited"],
  "nameservers": ["ns-cloud-e1.googledomains.com", "ns-cloud-e2.googledomains.com"],
  "dnssec": false,
  "registrantOrg": null,
  "privacyMasked": true,
  "dns": {
    "a": ["34.98.71.47"],
    "mx": ["aspmx.l.google.com"],
    "mailProvider": "Google Workspace",
    "ns": ["ns-cloud-e1.googledomains.com"]
  },
  "trustSignal": "established",
  "riskFlags": ["privacy-masked registrant"],
  "aiSummary": "This domain has been registered since 2008 with a major corporate registrar and transfer locks in place, consistent with a long-established, legitimate business. The registrant is privacy-masked, which is routine for large organisations and not itself a concern."
}
```

A domain that isn't found in RDAP (unregistered, or a TLD without RDAP) comes back with an `error` field and is **not charged**.

***

### Pay-per-event pricing

This Actor uses **pay-per-event** billing with a single event:

| Event | Price | Charged when |
|---|---|---|
| `domain-checked` | $0.10 | Once per domain successfully looked up via RDAP/WHOIS and DNS, with an AI trust/risk read. |

The Actor logs its OpenAI token usage and the estimated AI cost per domain at the end of every run, so the event price always stays safely above the model cost.

***

### Data source

Registration data comes from **RDAP (Registration Data Access Protocol)** — the modern, JSON-based WHOIS mandated by ICANN and served directly by the authoritative **registry and registrar** systems. It is official, structured, free registry data; there is no scraping of any port-43 WHOIS mirror. DNS is resolved live via the standard resolver.

***

### Setup

The trust read calls the OpenAI API. Set the environment variable / secret **`OPENAI_API_KEY`** on the Actor. **The lookup itself runs without it** — you still get full RDAP + DNS data; only `trustSignal`, `riskFlags` and `aiSummary` are left empty.

***

### Use it from an AI agent (Apify MCP server)

This Actor is available through the [Apify MCP server](https://mcp.apify.com), so AI agents (Claude, ChatGPT, or anything that speaks MCP) can call it as a tool — hand it a list of `domains` and read back the registration, DNS and trust data — with no custom integration code.

***

### Run it locally

```bash
npm install
## put your input in storage/key_value_stores/default/INPUT.json
export OPENAI_API_KEY=sk-...   # optional, enables the AI trust read
apify run -p
```

***

### Related actors

- [B2B Tech Stack Detector](https://apify.com/noniner/b2b-tech-stack-detector) — Detect the technologies, frameworks and mail provider behind any domain.
- [B2B Email Verifier](https://apify.com/noniner/b2b-email-verifier) — Verify deliverability of email addresses with MX and SMTP checks.
- [AI Company Enrichment](https://apify.com/noniner/ai-company-enrichment) — Turn domains into structured firmographic company profiles with AI.
- [CVE Vulnerability Lookup](https://apify.com/noniner/cve-vulnerability-lookup) — Look up CVE vulnerabilities with severity, scores and affected products.

***

**Part of the [No Niner](https://noniner.io) toolkit** — no-code web scraping, enrichment & AI data tools, all pay-per-use. Browse the full set at **[noniner.io](https://noniner.io)**.

# Actor input Schema

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

Domains, website URLs or emails (the bare domain is extracted). One per line.

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

Also resolve A / MX / NS records and guess the mail provider. Best-effort.

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

Max domains to look up. One pay-per-event charge per domain checked.

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

How many domains to process in parallel.

## `model` (type: `string`):

Override the model (default gpt-4o-mini).

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "example.com"
  ],
  "includeDns": true,
  "maxResults": 200,
  "maxConcurrency": 8
}
```

# Actor output Schema

## `domains` (type: `string`):

All domain intelligence records in the default dataset.

# 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",
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("noniner/domain-whois-intelligence").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",
        "example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("noniner/domain-whois-intelligence").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",
    "example.com"
  ]
}' |
apify call noniner/domain-whois-intelligence --silent --output-dataset

```

## MCP server setup

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

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/ZrzDRh0l7loegFOQh/builds/XsfRljSkXxcSe6oTY/openapi.json
