# Domain Availability Checker - Bulk RDAP Lookup (`stas_k/domain-availability-api`) Actor

You should not pay for a failed lookup: most availability checkers charge every line, even when the registry never answered. This one returns available, taken or unverified per domain, with registrar and expiry date, and charges only for a verdict the registry actually gave.

- **URL**: https://apify.com/stas_k/domain-availability-api.md
- **Developed by:** [Stas K](https://apify.com/stas_k) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.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?

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 Availability Checker - Bulk RDAP Lookup

You should not pay for a failed lookup. Most availability checkers charge every line
they touch, including the lines where the registry never answered, and you find out
only after the run that half of the list was never really checked. This actor asks the
registry through RDAP, the modern WHOIS, and charges only for a domain that got a real
verdict: **available** or **registered**.

### What you get

One row per line of input:

| field | meaning |
|---|---|
| `verdict` | `available` (the registry answered 404 for the name) or `registered` (it answered 200) |
| `available` | `true` only for `available`, `false` for `registered`, `null` on a free status row |
| `domain`, `tld` | the name normalised to punycode and its top level domain |
| `registrar`, `registeredAt`, `expiresAt`, `updatedAt` | what the registry published for a taken name |
| `statuses` | the registry status flags, for example `client transfer prohibited` |
| `nameservers` | the delegated name servers |
| `httpStatus` | the raw RDAP answer, so a buyer can audit the verdict |
| `status`, `reason` | the row status and, for a free row, why it is free |

Input takes plain domains, full URLs or email addresses: `https://apify.com/pricing`
becomes `apify.com`, and international names are converted to punycode before the
lookup, so `münchen.de` and `xn--mnchen-3ya.de` are one domain and are charged once.

### Price

**$0.001 per domain that got a verdict from the registry.** The lowest spending limit
you can set per run is $0.05, and you pay only for the rows that reached the dataset
with a verdict. For comparison, the busiest actor in this shelf charges $0.00049 per
result and bills the lines the registry never answered; a thousand domains that all get
an answer cost $1.00 here.

Everything else costs nothing and says why:

| status | when |
|---|---|
| `INVALID` | the line is not a domain name |
| `DUPLICATE` | the same domain was already in this run |
| `NOT_CHECKED_UNKNOWN` | the registry did not answer, or answered 429, 5xx or with something that is not RDAP |
| `NOT_CHECKED_LIMIT` | the run reached `maxDomains` |
| `NOT_CHECKED_CAP` | the run reached its spending limit |
| `NOT_CHECKED_TIME` | the run ran out of time |
| `NOT_CHECKED_BILLING` | the price list could not be read, so nothing was sold |
| `NOT_CHECKED_ERROR` | an unexpected error |

A free row never carries `verdict` or `available`: a row that was not checked cannot be
misread as a verdict.

### What this actor does not do

- It does not guess. If the registry is silent, the row says `NOT_CHECKED_UNKNOWN`
  instead of `available`, because "we could not tell" and "nobody owns it" are
  different answers.
- It does not cover every TLD ever delegated. RDAP is published by most registries but
  not by all: a TLD whose registry publishes no RDAP comes back `NOT_CHECKED_UNKNOWN`
  with that reason, is not charged, and no request is made for it. `.de`, `.io`, `.me`
  and `.us` are covered through their own registry endpoints, measured 2026-11-13.
- It does not read a 404 from a bootstrap service as "free". A 404 is a verdict only
  when it comes from the registry of that TLD; a 404 that carries a notice about no
  RDAP service stays unknown and free, because "nobody owns it" and "we could not ask"
  are different answers.
- It does not check whether a name is a trademark problem, and it does not register
  anything. It reports what the registry says.
- It does not read WHOIS port 43 fallbacks. RDAP only, so the answer is structured and
  the same shape for every registry.

### Run summary

The run writes a JSON summary into the run's key-value store under `RUN_SUMMARY` and
`RUN_SUMMARY-<runId>`. It carries `requested`, `domainsAttempted`, `domainsChecked`,
`chargedEvents`, `rowsWritten`, `byStatus`, `chargeErrors`, `writeErrors`,
`deliveredUnverified`, `chargeUncertain`, `stopReason`, `counterMismatch`,
`billingActive` and `datasetNote`. If a charge failed after the rows were written, the
note says that delivery and the charge are both unknown and that the dataset must be
read before re-running, so a buyer is not charged twice.

# Actor input Schema

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

Domains to check, one per line. A full URL or an email is accepted and the domain is taken out of it. One row per domain comes back, with the registry verdict or with the reason it could not be checked.

## `maxDomains` (type: `integer`):

How many domains one run checks. The rest come back as free status rows with the reason maxDomains.

## `concurrency` (type: `integer`):

How many registries are asked at the same time. Higher is faster, but a public RDAP bootstrap service may rate limit a large burst.

## `requestTimeoutSecs` (type: `integer`):

How long one registry may take before the domain is reported as unverified and not charged.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "this-domain-is-free-2026.com",
    "https://apify.com/pricing",
    "not a domain"
  ],
  "maxDomains": 500,
  "concurrency": 5,
  "requestTimeoutSecs": 10
}
```

# Actor output Schema

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

A checked domain carries input, inputIndex, domain, tld, verdict (available or registered), available, registrar, registeredAt, expiresAt, updatedAt, statuses, nameservers, httpStatus and status. Rows with status INVALID, DUPLICATE, NOT_CHECKED_UNKNOWN, NOT_CHECKED_LIMIT, NOT_CHECKED_CAP, NOT_CHECKED_TIME, NOT_CHECKED_BILLING or NOT_CHECKED_ERROR carry a reason and none of the verdict fields: domain, tld, verdict and available stay null, so a free row can never be read as a verdict. available is true only when the registry answered 404 for the name; it never means we could not tell. billable is the claim of the row, the money actually taken lives in the run summary (chargedEvents).

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

Counters: requested, domainsAttempted, domainsChecked (rows that got a verdict and were charged), chargedEvents, rowsWritten, byStatus, chargeErrors, writeErrors, deliveredUnverified, chargeUncertain, stopReason (spending-cap, charge-limit, charge-error, billing-price-unknown, deadline, unexpected-error), counterMismatch, billingActive, pricingEvent and datasetNote. The run writes this object under RUN_SUMMARY and under RUN_SUMMARY-<runId> in the run's key-value store.

# 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": [
        "example.com",
        "this-domain-is-free-2026.com",
        "https://apify.com/pricing",
        "not a domain"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("stas_k/domain-availability-api").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": [
        "example.com",
        "this-domain-is-free-2026.com",
        "https://apify.com/pricing",
        "not a domain",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("stas_k/domain-availability-api").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": [
    "example.com",
    "this-domain-is-free-2026.com",
    "https://apify.com/pricing",
    "not a domain"
  ]
}' |
apify call stas_k/domain-availability-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stas_k/domain-availability-api"
        }
    }
}
```

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/3KOuJ4YgEYfT30xhg/builds/kpn9X1QFgPHcKgzlS/openapi.json
