# Domain Lookup: RDAP Registration and DNS (`brotherly_elm/rdap-domain-lookup`) Actor

Look up RDAP registration and DNS details for supplied domains or URLs. Optionally check the supplied website home page; registry coverage varies.

- **URL**: https://apify.com/brotherly_elm/rdap-domain-lookup.md
- **Developed by:** [Iris](https://apify.com/brotherly_elm) (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 $1.00 / 1,000 domain fact rows

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 Age & RDAP Lookup: Bulk DNS and MX | RDAP Domain Lookup

`rdap-domain-lookup` checks domains or HTTP(S) URLs you provide and writes one dataset row per distinct valid hostname. For RDAP it derives the hostname's registrable domain (eTLD+1) from the bundled Public Suffix List (PSL); DNS continues to query the exact supplied hostname. It uses public RDAP services selected from IANA bootstrap data and permitted public DNS-over-HTTPS resolvers. It does not discover domains or query registrant/contact records. Optional website checking reads the supplied hostname's `robots.txt` and, if allowed, fetches only `/`; it reports HTTP status, final URL and HTML title.

### What you can look up

- **RDAP:** status, dates, registrar organization, nameservers, DNSSEC and registry status strings, when returned by the registry for the registrable domain.
- **DNS:** A, AAAA, MX, SPF and DMARC data, plus the inferred mail-provider field; DNS uses the exact supplied hostname.
- **Optional website check:** status, final URL and title of the supplied hostname's home page. Disabled by default; no link crawling.
- **Run summary:** rows written, invalid input count/list, source errors and counts for each RDAP outcome.

### Input and domain semantics

- `domains`: list of domains or `http://` / `https://` URLs. Defaults to `ietf.org`, `w3.org`, `iana.org`. Upper-case and trailing dots are normalized; duplicates are combined. Invalid entries are summarized and do not produce rows.
- `registrableDomain` is calculated using the bundled PSL, including multi-label rules such as `co.uk`, wildcard rules and exceptions. For example, `www.example.com` stays the row's `domain`, has `registrableDomain: example.com`, sends RDAP for `example.com`, and queries DNS for `www.example.com`. A bare registrable domain such as `example.co.uk` maps to itself. A hostname that is only a public suffix has no eTLD+1; the output field is null and its RDAP lookup falls back to the supplied hostname.
- `checkWebsite`: optional boolean; default `false`. Checks only each supplied hostname's home page after reading `robots.txt`.
- `deadlineSeconds`: overall run deadline, 1–900 seconds; default 900. Unfinished valid hostnames are returned with `rdap_status: not_reached`; `SUMMARY` records that count.
- `offlineFixture`: test-only deterministic path; default `false`. Makes no network requests. Optional `checkedAt` fixes fixture timestamps.

#### Example inputs

```json
{"domains":["ietf.org","w3.org","iana.org"],"checkWebsite":false}
```

```json
{"domains":["www.example.com","shop.example.co.uk"],"checkWebsite":false}
```

```json
{"domains":["https://example.org/path"],"checkWebsite":true,"deadlineSeconds":120}
```

### RDAP status meanings

- `found`: the selected registry returned a successful RDAP domain object.
- `not_found`: the selected registry returned HTTP 404 for the queried registrable domain.
- `no_rdap_service`: no RDAP service was available through IANA bootstrap data or the explicit registry-published `.de` fallback.
- `rate_limited`: the selected service returned HTTP 429.
- `error`: another request, response or parsing failure.
- `not_reached`: the run deadline elapsed before the lookup completed.

`registered` is `true` for `found`, `false` for `not_found`, and `null` for other outcomes. These are query outcomes, not independent verification of registration, ownership or identity. A `not_found` response for a registrable domain does not establish that an input was never registered, and service absence is not evidence of non-registration.

### Data handling, sources and limits

Each valid input gets one RDAP lookup for its PSL registrable domain (or the supplied name when it is itself a public suffix) and DNS queries against the exact supplied hostname. RDAP requests use a four-second network timeout and **are not retried**: an HTTP error or other failure is returned as an outcome. DNS tries Google Public DNS JSON and Cloudflare DNS JSON in sequence, each at most once per resolver; after a resolver returns HTTP 429 it waits 0.5 seconds before advancing to the other resolver. This is fallback to a different resolver, not retrying the same request. Per-run concurrency is capped at four workers. Refusals and failures are surfaced, never converted to proof that a record does not exist.

Only documented output fields are emitted. Registrar output is the registrar organization name; contact entities and personal contact data are not read into output. Website checking does not crawl links, evaluate page content or check TLS certificates; a robots rule disallowing `/` prevents the home-page fetch.

The bundled `public_suffix_list.dat` is distributed with its upstream Mozilla Public License 2.0 notice (MPL-2.0). It is a snapshot and must be refreshed periodically to keep suffix rules current. Runtime PSL calculation is local and creates no network requests.

**Measured limits:** the available ship44 local measurement (2026-11-20) exercised 369 distinct names in 202.267 seconds, completed all 369 before the 900-second deadline, wrote 369 rows, and used concurrency capped at four. This is a measurement of that input set, not a guaranteed throughput or outcome.

This Actor is not affiliated with or endorsed by any registry, IANA, or ICANN.

### Local checks

Run `TMPDIR=/workspace/tmp PYTHONDONTWRITEBYTECODE=1 python -m pytest -q` from this directory. Tests block sockets; PSL and fixture tests make no network requests. `tests/fixture-input.json` and `tests/expected-fixture.json` define deterministic offline output. The fixture gate exercises the real Apify SDK with networking blocked.

# Actor input Schema

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

Domains or http/https URLs, one per item. Duplicates are combined; invalid entries are summarized.

## `checkWebsite` (type: `boolean`):

Optional: read robots.txt before fetching only the home page. Does not crawl links or check TLS certificates.

## `offlineFixture` (type: `boolean`):

Test-only deterministic data path; performs no network requests.

## `checkedAt` (type: `string`):

Optional fixed timestamp used by the offline fixture.

## `deadlineSeconds` (type: `integer`):

Overall time budget, capped at 900 seconds. Unfinished domains are counted in SUMMARY.

## Actor input object example

```json
{
  "domains": [
    "ietf.org",
    "w3.org",
    "iana.org"
  ],
  "checkWebsite": false,
  "offlineFixture": false,
  "deadlineSeconds": 900
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("brotherly_elm/rdap-domain-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("brotherly_elm/rdap-domain-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 '{}' |
apify call brotherly_elm/rdap-domain-lookup --silent --output-dataset

```

## MCP server setup

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