# Domain Intelligence (RDAP and DNS) (`agentictools/domain-intelligence`) Actor

Bulk domain lookups over official RDAP registry data plus live DNS records. Registrar, dates, status, nameservers, DNSSEC, and A, MX, NS, TXT records.

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

## Pricing

$1.00 / 1,000 domain returneds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Domain Intelligence (RDAP and DNS)

Bulk domain lookups over official RDAP registry data plus live DNS records. Registrar, dates, status, nameservers, DNSSEC, and A, MX, NS, TXT records.

### What it does

- Resolves each TLD's official RDAP server from the IANA bootstrap file, then queries the registry directly. No WHOIS scraping, no API key.
- Returns registrar, creation, expiration, and last-changed dates, EPP status codes, nameservers, and DNSSEC delegation.
- Detects unregistered domains: a registry 404 is reported as `registered: false` (likely available).
- Optionally resolves live A, AAAA, MX, NS, and TXT records via DNS over HTTPS.
- Accepts full URLs as input and normalizes them to bare domains.

### Input

| Field | Type | Description |
|---|---|---|
| `domains` | array | Domains to look up. Full URLs are accepted and normalized (scheme and path stripped). |
| `includeDns` | boolean | Also resolve live A, AAAA, MX, NS, and TXT records. Default `true`. |

Example:

```json
{
  "domains": ["openai.com", "anthropic.com", "some-candidate-name.com"],
  "includeDns": true
}
```

### Output

One dataset item per domain:

```json
{
  "domain": "openai.com",
  "tld": "com",
  "registered": true,
  "rdapServer": "https://rdap.verisign.com/com/v1",
  "registrar": "MarkMonitor Inc.",
  "createdDate": "2007-01-19T19:28:24Z",
  "expiresDate": "2029-01-19T19:28:24Z",
  "updatedDate": "2024-10-17T22:20:04Z",
  "status": ["client delete prohibited", "client transfer prohibited", "client update prohibited", "server delete prohibited", "server transfer prohibited", "server update prohibited"],
  "nameservers": ["ns1-02.azure-dns.com", "ns2-02.azure-dns.net", "ns3-02.azure-dns.org", "ns4-02.azure-dns.info"],
  "dnssec": false,
  "dns": {
    "a": ["104.18.33.45", "172.64.154.211"],
    "aaaa": [],
    "mx": ["1 aspmx.l.google.com.", "5 alt1.aspmx.l.google.com."],
    "ns": ["ns1-02.azure-dns.com.", "ns2-02.azure-dns.net."],
    "txt": ["v=spf1 include:_spf.google.com -all"]
  },
  "note": null
}
```

For an unregistered domain, `registered` is `false` and `note` explains it. If a TLD has no RDAP server, the RDAP fields stay null, `note` says so, and DNS records are still resolved.

The run's `OUTPUT` key-value record holds an aggregate: how many domains were looked up, how many are registered, not registered, or unknown.

### Pricing

Pay per result plus Apify platform usage.

### Data source

Registration data comes from the official RDAP servers of each registry, discovered through the IANA bootstrap file (data.iana.org/rdap/dns.json). DNS records come from Google Public DNS over HTTPS (dns.google). The Actor waits 300 ms between domains and retries rate limits with backoff. Some ccTLDs do not operate an RDAP server; those return DNS data only.

# Actor input Schema

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

Domains to look up, one per line. Full URLs are accepted, the scheme and path are stripped automatically (for example "https://openai.com/pricing" becomes "openai.com").

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

Also resolve live A, AAAA, MX, NS, and TXT records for each domain via DNS over HTTPS. Turn off for registration data only.

## Actor input object example

```json
{
  "domains": [
    "openai.com",
    "anthropic.com"
  ],
  "includeDns": true
}
```

# 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": [
        "openai.com",
        "anthropic.com"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("agentictools/domain-intelligence").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "openai.com",
    "anthropic.com"
  ]
}' |
apify call agentictools/domain-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=agentictools/domain-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Gj9JgFrI9tYtTl1nB/builds/HJft2aOerKMoUBH7P/openapi.json
