# Domain Portfolio & Expiry Monitor (`dataio/domain-portfolio-expiry-monitor`) Actor

Domain registration data from RDAP across 1,200 TLDs: expiry countdown, registrar, transfer locks, DNSSEC and the DNS provider read from the nameservers.

- **URL**: https://apify.com/dataio/domain-portfolio-expiry-monitor.md
- **Developed by:** [Tom Awake](https://apify.com/dataio) (community)
- **Categories:** Developer tools, Business, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.00 / 1,000 domains

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?

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 Portfolio & Expiry Monitor

For a list of domains: when each one expires, who the registrar is,
whether it is locked against transfer, whether it is DNSSEC-signed, and
who hosts its DNS.

Whois is effectively dead — closed, redacted, and free-form text. RDAP
replaced it (RFC 7483) and returns JSON. But there is no single RDAP
server: there is one per registry, and you have to know which one to ask
for which domain.

No API key. No account.

***

### The three things this does that the source does not

**1. It routes to the right registry.**

IANA publishes a TLD → RDAP server table covering **1,200 TLDs**. This
Actor loads it and talks to each registry directly.

The obvious alternative is the public `rdap.org` proxy, and it is a trap:

| Approach | Resolved | Rate limited |
|---|---|---|
| `rdap.org` proxy | 7 of 23 | 16 (HTTP 429) |
| Direct to registries | **16 of 22 in 10 seconds** | 0 |

The proxy starts refusing after about ten lookups. Routing yourself
removes the bottleneck entirely, which is what makes a 500-domain
portfolio practical.

**2. Days until expiry, not a date.**

The question is never "what is the expiry date". It is "how long have I
got" — and a brand domain that lapses is a brand someone else can take.
In a sample of well-known domains, one was **49 days** from expiry.

**3. Locks read, not quoted.**

`client transfer prohibited` means the domain is protected against an
unauthorised transfer. Its absence is an exposure. This Actor turns the
EPP status strings into booleans you can filter and sort on:
`transferLocked`, `deleteLocked`, `updateLocked`, `pendingDelete`,
`clientHold`.

And it reads the **DNS provider out of the nameservers** —
`ns-1435.awsdns-51.org` means AWS Route 53. Detected on 91.3% of resolved
domains: Route 53, Cloudflare, Azure DNS, Google, Akamai, UltraDNS,
Vercel, Alibaba Cloud and others.

***

### Field coverage

Measured on a 28-domain international sample, 23 resolved.

| Field | Coverage |
|---|---|
| `createdAt`, `expiresAt`, `lastChangedAt` | 100% |
| `daysUntilExpiry`, `domainAgeYears` | 100% |
| `status`, `nameservers` | 100% |
| `registrar` | 95.7% |
| `registrarIanaId` | 91.3% |
| `dnsProvider` | 91.3% |

Two findings from the same sample, both worth knowing: **91.3% carried a
transfer lock** — but only **4.3% had DNSSEC enabled**. Median domain age
was 21.5 years.

***

### What it is for

- **Portfolio renewal.** Sort by `daysUntilExpiry`. A lapsed brand domain
  is the cheapest disaster there is.
- **Acquisition due diligence.** Domain age, registrar, and whether the
  target actually locked its own names.
- **Security review.** `transferLocked` and `dnssecEnabled` across every
  domain you own, in one table.
- **Infrastructure mapping.** `dnsProvider` across a set of companies
  shows who runs their DNS — and who a competitor just migrated to,
  because `lastChangedAt` moves when nameservers do.
- **Brand protection.** Check lookalike domains for registration date and
  registrar.

Pairs directly with **Subdomain Finder & Certificate Inventory**: that one
maps the hosts under a domain, this one covers the domain registration
itself.

Three dataset views ship with the Actor: **Portfolio**, **Exposure** and
**Infrastructure**.

***

### Limits

Stated plainly, because they affect what you can conclude.

- **Some country TLDs have no RDAP service at all.** `.de`, `.jp`, `.cn`,
  `.ru` and `.so` among them — they still run whois only. Those domains
  come back with `resolved: false` and a note naming the reason, and are
  **not charged**. This matters: a silently missing row looks exactly like
  an available domain, and it is not one.
- **Registrant contact details are gone.** GDPR removed them from public
  RDAP almost everywhere. What survives is what this Actor returns: dates,
  registrar, status, nameservers. Do not expect an owner name.
- **Some registries publish less than others.** `registro.br` returns no
  registrar at all, because Brazilian domains are registered directly.
  The field is left empty rather than guessed.
- **Query the registrable domain.** `www.example.com` is normalised to
  `example.com`; a deeper subdomain has no registration record of its own
  and will not resolve.
- **Expiry is the registry's date, not your renewal date.** Auto-renew
  settings live with the registrar and are not published here.
- **One request per domain.** 500 domains is the per-run cap, paced to
  stay within what registries tolerate.

***

### Source

RDAP servers operated by the domain registries, discovered through the
[IANA bootstrap registry](https://data.iana.org/rdap/dns.json). Public, no
authentication. This Actor is not affiliated with IANA or with any
registry.

# Actor input Schema

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

One domain per line, for example example.com. Full URLs, email addresses and leading wildcards are accepted and cleaned up. Query the registrable domain, not a subdomain: www.example.com is normalised to example.com.

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

Keep only domains expiring within this many days. 60 is a usual renewal window. Leave empty to keep everything.

## `unlockedOnly` (type: `boolean`):

Keep only domains without a transfer lock. An unlocked domain can be transferred away without the owner acting, which is the classic hijacking route. Measured: 9% of a sample of well-known domains.

## `includeUnresolved` (type: `boolean`):

On by default, and deliberately: a silently missing row looks like an available domain. Unresolved rows carry a note saying why — usually a country TLD with no RDAP service, such as .de, .jp, .cn or .ru.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "shopify.com",
    "canva.com"
  ],
  "unlockedOnly": false,
  "includeUnresolved": true
}
```

# Actor output Schema

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

Every row produced by the run, in 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": [
        "stripe.com",
        "shopify.com",
        "canva.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataio/domain-portfolio-expiry-monitor").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",
        "shopify.com",
        "canva.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dataio/domain-portfolio-expiry-monitor").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",
    "shopify.com",
    "canva.com"
  ]
}' |
apify call dataio/domain-portfolio-expiry-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataio/domain-portfolio-expiry-monitor"
        }
    }
}
```

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/2P77TWmeCExq7Heth/builds/jEALnyefqvwFfmY4z/openapi.json
