# Domain RDAP Lookup (`xtracto/domain-rdap-lookup`) Actor

Look up domain registration data over RDAP: registrar, registration and expiry dates, domain age, status codes, nameservers and DNSSEC. Covers 1200 TLDs via IANA discovery. Keyless, no login.

- **URL**: https://apify.com/xtracto/domain-rdap-lookup.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Developer tools
- **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 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 RDAP Lookup — Registration Data for 1,200 TLDs

Look up domain registration records over **RDAP**, the IETF protocol that replaced WHOIS: registrar,
registration and expiry dates, domain age, EPP status codes, nameservers and DNSSEC signing.

Server discovery comes from IANA, so every TLD that publishes an RDAP endpoint is covered — 1,200 of
them at last check. Keyless, anonymous, no proxy needed.

### What this is not

**There is no contact data here, and there is none to be had.** Since GDPR the registries publish
only the *registrar* entity, whose vCard carries a version marker and a name and nothing else. No
registrant, no admin, no technical contact — on every registry tested. Each row lists the entity
roles the registry actually returned in `entityRoles`, so you can see the absence rather than infer
it from a null. If you need registrant details, RDAP is not the source; that requires accredited
access from the registrar.

### Input

| Field | Type | Description |
|---|---|---|
| `domains` | array | One per entry. `https://www.example.com/page` is reduced to `example.com` |

### Output

```jsonc
{
  "_input": "apify.com",
  "_source": "S1-rdap",
  "_scrapedAt": "2026-09-12T09:41:20Z",
  "_rdapServer": "https://rdap.verisign.com/com/v1/",

  "domain": "apify.com", "tld": "com",
  "ldhName": "APIFY.COM", "unicodeName": null,
  "handle": "1557856354_DOMAIN_COM-VRSN",

  "registrarName": "Amazon Registrar, Inc.",
  "registrarHandle": "468",
  "entityRoles": ["registrar"],

  "registeredAt": "2009-06-02T17:14:10Z",
  "expiresAt": "2035-06-02T17:14:10Z",
  "lastChangedAt": "2026-05-16T16:53:04Z",
  "rdapUpdatedAt": "2026-09-12T09:41:18Z",
  "ageDays": 6310,

  "status": ["client transfer prohibited"],
  "nameservers": ["NS-1225.AWSDNS-25.ORG", "NS-1928.AWSDNS-49.CO.UK", …],
  "nameserverCount": 4,
  "dnssecSigned": true, "dsRecordCount": 1,
  "port43": null
}
```

### Three things worth knowing

**An unregistered `.com` looks different depending on your HTTP client.** Verisign answers one with
a `404` and then closes the connection without sending a body. Same URL, same second:

```
curl_cffi 0.7.4   →  HTTP 404, 0 bytes
curl_cffi 0.16.3  →  raises  curl: (56) Connection closed abruptly
```

The newer libcurl treats the abrupt close as a transport failure; the older one reports the status
it had already received. This actor pins 0.7.x and so sees the 404 — but it still handles the close
explicitly, because a client that treats it as a network error would retry every available domain
forever and then report a network problem. When a close does happen, a control lookup of a domain
certain to exist on that registry decides between *not registered* and *registry is down*.
`.org`, `.xyz` and `.dev` return an ordinary 404 with a JSON body.

**Not every TLD is in IANA's bootstrap.** 1,200 are. `.io`, `.de` and `.co.uk` are not — those
registries do not publish RDAP through IANA discovery. Those come back as `unsupported_tld` rather
than being guessed at against a made-up endpoint.

**Dates live in a list, not in fields.** RDAP returns `events: [{eventAction, eventDate}]`, so
`registration`, `expiration` and `last changed` have to be pulled out by action name. They are
flattened here into `registeredAt` / `expiresAt` / `lastChangedAt`, with `ageDays` computed from the
first.

### Errors

| `_error` | Meaning |
|---|---|
| `invalid_input` | Not a domain name, or a URL containing one |
| `not_registered` | The registry has no record — the domain is available |
| `unsupported_tld` | That TLD publishes no RDAP server through IANA |
| `registry_error` | The registry answered, but not usably |
| `network_error` | Never reached the registry, or it stopped answering entirely |
| `unexpected_shape` | A 200 that is not an RDAP domain object |

`not_registered` is a **result**, not a failure — it is the answer to "is this domain taken?". Every
input produces exactly one row either way, so a join against your input list stays aligned.

If no domain at all resolves, the run fails rather than reporting success over an empty dataset.

# Actor input Schema

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

One per entry. A full URL works too — https://www.example.com/page is reduced to example.com.

## `proxyConfiguration` (type: `object`):

Optional and not needed. These are registry operators running a standards endpoint, not sites defending against scrapers.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "python.org",
    "openai.com"
  ]
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset items shown in the 'Domains' view.

## `items` (type: `string`):

Every record this run produced, with all fields, as JSON.

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

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/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",
        "python.org",
        "openai.com",
    ] }

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

```

## MCP server setup

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