# Domain Lead Qualifier – WHOIS + DNS Email-Readiness Score (`emastra/domain-intelligence`) Actor

Upload a list of domains → get age, registrar, MX/SPF/DMARC status, TLS info, hosting org, and a green/red “email-ready lead score.” Perfect for SDRs, lead-gen agencies, list vendors, and growth teams who don’t want to waste time emailing dead domains.

- **URL**: https://apify.com/emastra/domain-intelligence.md
- **Developed by:** [Emiliano Mastragostino](https://apify.com/emastra) (community)
- **Categories:** Lead generation, Automation, Other
- **Stats:** 16 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Lead Qualifier – Email Readiness & WHOIS Intelligence API (Bulk Enrichment)

_Upload domains → get age, registrar, DNS auth & email-sendability score. Built for SDRs, lead-gen agencies & list vendors._

**Domain Lead Qualifier** helps SDR teams and growth operators qualify domains _before outreach_ using email readiness and deliverability signals, WHOIS/RDAP registration data, TLS status, and hosting intelligence. Run it from the Apify Console or automate it via API to score domains at scale and avoid low-quality or risky leads.

### ⭐ Key Features

- 🎯 **Bulk domain enrichment for lead qualification** — one result per domain
- 📬 **Email readiness & deliverability checks** — MX, SPF, DMARC + disposable detection
- 🧾 **WHOIS / RDAP intelligence** — domain age, registrar, expiry (with fallback)
- 🔒 **TLS validation** — certificate status and days to expiration
- 🌐 **Hosting context** — resolved IP, ASN, hosting organization
- 🧮 **Email-readiness score (0–100)** — 🟢 high / 🟡 medium / 🔴 low, fully configurable

### 💡 Why use this Actor?

- **Avoid bad leads** — filter domains with no MX, disposable email, or weak auth
- **Protect deliverability** — catch SPF/DMARC gaps _before_ campaigns go out
- **Audit lead vendors** — objectively score purchased lists at scale
- **Save SDR time** — prioritize outreach to high-scoring domains only

### 📥 Input

Configure the Actor from the **Input tab**. Only `domains` is required — everything else is optional.

#### `domains` (required)

Domains to enrich and qualify.

- URLs are automatically normalized to domains

#### `concurrency` (optional)

Controls how many domains are processed in parallel.

- Default: **10**
- Higher values are faster but use more memory

#### `scoring` (optional)

Customizes how the **email_score (0–100)** is calculated.

- If omitted, the Actor uses a production-ready default scoring model
- Use this only if you want to change how domains are ranked

#### Minimal example (most users)

```json
{
    "domains": ["example.com", "google.com"]
}
````

> ✅ Uses **default concurrency and default scoring**.
> This is enough for most SDR, lead-gen, and list QA workflows.

#### Full example (explicit defaults shown)

The example below shows **all default values**.
You do **not** need to include this unless you want to override something.

```json
{
    "domains": ["example.com", "google.com"],
    "concurrency": 10,
    "scoring": {
        "weights": {
            "mx": 30,
            "spf": 15,
            "dmarc": 10,
            "domainAge": 25,
            "tls": 15,
            "notDisposable": 5
        },
        "thresholds": {
            "high": 70,
            "medium": 40
        }
    }
}
```

> 💡 **Partial overrides are supported.**
> You can change only `thresholds.high` (for example) and keep all default weights.

### 📤 Output

Each input domain produces one result object in the default dataset.

```json
{
    "domain": "example.com",
    "has_mx": true,
    "has_spf": true,
    "has_dmarc": true,
    "tls_valid": true,
    "is_disposable": false,
    "email_score": 100,
    "email_score_label": "high",
    "email_score_emoji": "🟢",
    "resolved_ip": "104.18.27.120",
    "domain_registered_at": "1995-08-14",
    "expires_at": "2026-08-13",
    "registrar": "RESERVED-Internet Assigned Numbers Authority",
    "domain_age_days": 11101,
    "tls_expires_in_days": 71,
    "hosting_cms": "unknown",
    "asn": 13335,
    "hosting_org": "Cloudflare"
}
```

**Key fields to watch**

- `email_score`, `email_score_label`, `email_score_emoji` — primary qualification signals
- `has_mx`, `is_disposable` — fast exclusion filters
- `domain_age_days`, `expires_at`, `registrar` — trust and risk indicators
- `tls_valid`, `tls_expires_in_days` — maintenance and security signals

> Per-domain lookup failures don’t crash the run. Partial results may include `*_error` fields.

### 🧠 Tips & Best Practices

- **Interpret the score**
  - 🟢 *High*: safe for outreach
  - 🟡 *Medium*: review or enrich further
  - 🔴 *Low*: exclude from cold email

- **Fast exclusion rules**
  - `has_mx = false`
  - `is_disposable = true`
  - `email_score_label = "low"`

- **When to customize scoring**
  - Don’t customize for general B2B qualification or list QA
  - Customize if you target very new startups, need strict compliance, or want higher auth requirements

- **Performance tuning**
  - Start with `concurrency = 10`
  - Increase only if runs are slow and memory usage is low
  - Reduce concurrency first if you see timeouts

### 🔌 Integrations

This Actor fits naturally into automated lead-qualification workflows:

- **Actor-to-Actor**: Trigger this Actor from another Actor or Task, or pass its dataset to a downstream Actor for filtering, enrichment, or export.
- **Automation tools**: Run it from Zapier, Make, n8n, or similar platforms using the same JSON input as in Apify Console.
- **Data pipelines**: Connect the output dataset to integration-ready Actors to upload results to databases, spreadsheets, or internal systems.

See Apify’s integration docs for setup details.

### 🚀 Get Started

Upload a list of domains and get email-readiness scores fast.
Ideal for SDR teams, lead-gen agencies, and anyone qualifying leads before outreach.

### 🛟 Support

This Actor is actively maintained. Need help or want to customize it?

- 📬 [Contact the developer](https://apify.com/emastra)
- 🐞 [Report a bug](https://console.apify.com/actors/Apoqa4BqhD2UAIpxU/issues)
- ✨ [Request a feature](https://apify.com/emastra)

# Actor input Schema

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

List of domains to enrich. Add one domain per line, or use bulk edit. URLs will be automatically stripped to domain only.

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

Maximum number of domains to process in parallel. Higher values are faster but use more memory. Recommended: 10 for 1GB, 15-20 for 2GB+ memory.

## `scoring` (type: `object`):

Customize how email scores are calculated. Weights determine point values for each signal (default sum = 100). Thresholds determine score cutoffs for high/medium/low labels.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "google.com",
    "github.com"
  ],
  "concurrency": 10,
  "scoring": {
    "weights": {
      "mx": 30,
      "spf": 15,
      "dmarc": 10,
      "domainAge": 25,
      "tls": 15,
      "notDisposable": 5
    },
    "thresholds": {
      "high": 70,
      "medium": 40
    }
  }
}
```

# Actor output Schema

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

No description

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

No description

# 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",
        "google.com"
    ],
    "scoring": {
        "weights": {
            "mx": 30,
            "spf": 15,
            "dmarc": 10,
            "domainAge": 25,
            "tls": 15,
            "notDisposable": 5
        },
        "thresholds": {
            "high": 70,
            "medium": 40
        }
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("emastra/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": [
        "example.com",
        "google.com",
    ],
    "scoring": {
        "weights": {
            "mx": 30,
            "spf": 15,
            "dmarc": 10,
            "domainAge": 25,
            "tls": 15,
            "notDisposable": 5,
        },
        "thresholds": {
            "high": 70,
            "medium": 40,
        },
    },
}

# Run the Actor and wait for it to finish
run = client.actor("emastra/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": [
    "example.com",
    "google.com"
  ],
  "scoring": {
    "weights": {
      "mx": 30,
      "spf": 15,
      "dmarc": 10,
      "domainAge": 25,
      "tls": 15,
      "notDisposable": 5
    },
    "thresholds": {
      "high": 70,
      "medium": 40
    }
  }
}' |
apify call emastra/domain-intelligence --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Domain Lead Qualifier – WHOIS + DNS Email-Readiness Score",
        "description": "Upload a list of domains → get age, registrar, MX/SPF/DMARC status, TLS info, hosting org, and a green/red “email-ready lead score.” Perfect for SDRs, lead-gen agencies, list vendors, and growth teams who don’t want to waste time emailing dead domains.",
        "version": "0.0",
        "x-build-id": "zLpiuY6J4I1CnSKTI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/emastra~domain-intelligence/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-emastra-domain-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/emastra~domain-intelligence/runs": {
            "post": {
                "operationId": "runs-sync-emastra-domain-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/emastra~domain-intelligence/run-sync": {
            "post": {
                "operationId": "run-sync-emastra-domain-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "List of domains to enrich. Add one domain per line, or use bulk edit. URLs will be automatically stripped to domain only.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "concurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of domains to process in parallel. Higher values are faster but use more memory. Recommended: 10 for 1GB, 15-20 for 2GB+ memory.",
                        "default": 10
                    },
                    "scoring": {
                        "title": "Scoring Configuration",
                        "type": "object",
                        "description": "Customize how email scores are calculated. Weights determine point values for each signal (default sum = 100). Thresholds determine score cutoffs for high/medium/low labels.",
                        "default": {
                            "weights": {
                                "mx": 30,
                                "spf": 15,
                                "dmarc": 10,
                                "domainAge": 25,
                                "tls": 15,
                                "notDisposable": 5
                            },
                            "thresholds": {
                                "high": 70,
                                "medium": 40
                            }
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
