# Domain Lookup: WHOIS (RDAP), Expiry Dates & DNS in Bulk (`fabricable_steel/domain-lookup`) Actor

Registrar, creation and expiry dates, status, name servers and live DNS (A, MX, TXT, SPF, DMARC) for any list of domains, from official RDAP and public DNS. Find expiring or unregistered names. $1.50 per 1,000 domains.

- **URL**: https://apify.com/fabricable_steel/domain-lookup.md
- **Developed by:** [StoreWatch Tools](https://apify.com/fabricable_steel) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 domain looked ups

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Lookup: WHOIS (RDAP), Expiry & DNS in Bulk

Paste a list of domains and get, for each one, who it is registered with,
when it was created, when it **expires**, its status, name servers and DNSSEC,
plus its live DNS records (A, AAAA, MX, NS, TXT, SPF and DMARC). Domains with
no registration are marked `not_registered`: they may be available.

Use it to watch your own portfolio's renewal dates, check a list of leads'
email setup (MX, SPF, DMARC), research competitors' domains, or find names
that are free to register.

**Expiry watch:** set **Expiring within (days)** to get only the domains that
expire soon, then schedule the task weekly with an email or Slack integration.

### Where the data comes from

- **Registration** from RDAP, the official, machine-readable successor to
  WHOIS that registries publish for automated lookups (RFC 9082/9083), found
  through IANA's public RDAP directory.
- **DNS** from Google's public DNS-over-HTTPS resolver.

No scraping of WHOIS websites, no proxies, no logins. **Registrant contact
details are never collected,** even where a registry publishes them.

### What you get

| field | meaning |
|---|---|
| `domain`, `status` | `registered`, `not_registered`, or why it could not be looked up |
| `registrar`, `registrar_iana_id` | the registrar of record |
| `created_at`, `updated_at`, `expires_at` | registration dates (ISO 8601) |
| `days_until_expiry`, `age_days` | computed from the dates above |
| `domain_status` | EPP status codes, e.g. `client transfer prohibited` |
| `nameservers`, `dnssec` | from the registry |
| `resolves` | whether the name answers in DNS |
| `a_records`, `aaaa_records`, `mx_records`, `ns_records`, `txt_records` | live DNS |
| `spf`, `dmarc` | the domain's SPF record and its `_dmarc` policy |
| `rdap_server`, `checked_at` | which registry answered, and when |

Input accepts plain domains, URLs or email addresses (`https://www.example.com/x`
and `sales@example.com` both become `example.com`). Internationalised domains
are converted to their `xn--` form.

### Pricing

Pay per domain looked up: one `domain` event per row whose registry answered
(`registered` or `not_registered`). **Never charged:** domains whose TLD has no
RDAP service (`no_rdap_for_tld`; a few country codes), lookups the registry
refused, rate-limited or failed (`blocked`, `rate_limited`, `error`), inputs
that are not domain names, duplicates, domains outside your expiry window, and
domains a run did not reach.

### For AI agents

Input: `domains` (list), `includeDns` (boolean, default true),
`expiringWithinDays` (integer, optional). One row per domain as above; the
run's SUMMARY record lists every domain with its status and reason.

# Actor input Schema

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

Domains, URLs or email addresses, one per line; each is reduced to its domain name.

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

Add live A, AAAA, MX, NS and TXT records, SPF and DMARC for each registered domain.

## `expiringWithinDays` (type: `integer`):

Optional. Deliver (and charge) only registered domains that expire within this many days.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "example.com",
    "python.org"
  ],
  "includeDns": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per domain: registration, expiry and DNS.

## `summary` (type: `string`):

Every domain's status and reason, and how many were charged.

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

// Run the Actor and wait for it to finish
const run = await client.actor("fabricable_steel/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 = { "domains": [
        "apify.com",
        "example.com",
        "python.org",
    ] }

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

```

## MCP server setup

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