# Domain Inspector (`visita/domain-inspector`) Actor

A powerful, all-in-one tool to perform DNS lookups, WHOIS queries, HTTP status checks, and SSL certificate validation for a list of domains. It can clean full URLs down to the bare domain (e.g., https://www.apify.com/store → apify.com) and run all checks in a single batch.

- **URL**: https://apify.com/visita/domain-inspector.md
- **Developed by:** [Visita Intelligence](https://apify.com/visita) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 635 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.50 / 1,000 per domain processeds

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 Inspector

A powerful, all-in-one tool to perform **DNS lookups**, **WHOIS queries**, **HTTP status checks**, and **SSL certificate validation** for a list of domains.
It can clean full URLs down to the bare domain
(e.g., https://www.apify.com/store → pify.com)
and run all checks in a single batch.

***

### ✨ Features

- **Batch Processing:** Process a whole list of domains in a single run.
- **Smart URL Cleaning:** Automatically extracts the correct domain (pify.com) from full URLs (https://www.apify.com/store?q=new).
- **Custom DNS Lookups:** Choose exactly which DNS records to query (A, AAAA, MX, TXT, CNAME, NS, SOA).
- **Comprehensive Checks:** Every domain automatically runs through WHOIS queries, HTTP status checks, and SSL certificate validation.

***

### 📥 Input

The Actor's input is defined by the .actor/input_schema.json file.

| Field                             | Emoji | Description                                                                                               |
| --------------------------------- | ----- | --------------------------------------------------------------------------------------------------------- |
| **Domains to Look Up**            | 🌐    | A list of domains or full URLs to inspect. The tool will automatically clean them.                        |
| **Record Types to Query**         | 🔍    | A multi-select dropdown to choose which DNS record types to query.                                        |

***

### 📤 Output

The Actor saves its results as one item per domain in the Actor's default dataset.

#### Example Output

`json [
  {
    "domain": "apify.com",
    "records": {
      "A": ["104.18.23.133", "104.18.22.133"],
      "MX": [
        { "preference": 1, "exchange": "aspmx.l.google.com." }
      ],
      "TXT": ["google-site-verification=..."],
      "NS": ["ns-1032.awsdns-01.org."],
      "SOA": [
        {
          "mname": "ns-1032.awsdns-01.org.",
          "rname": "awsdns-hostmaster.amazon.com.",
          "serial": 1,
          "refresh": 7200,
          "retry": 900,
          "expire": 1209600,
          "minimum": 86400
        }
      ]
    },
    "whois": {
      "domain_name": ["APIFY.COM", "apify.com"],
      "registrar": "Amazon Registrar, Inc.",
      "creation_date": "2015-02-12T15:35:14+00:00",
      "expiration_date": "2027-02-12T15:35:14+00:00",
      "emails": [
        "abuse@amazonaws.com",
        "proxy-contact@registrar.amazon.com"
      ]
    },
    "http_status": {
      "https": { "status_code": 200, "url": "https://apify.com" },
      "http": { "status_code": 301, "url": "http://apify.com" }
    },
    "ssl_info": {
      "issuer": "GTS CA 1P5",
      "expires": "2025-12-15T08:50:39+00:00",
      "error": null
    }
  }
]
`

***

### 💸 Monetization

This Actor uses the **Pay-Per-Event (PPE)** model.

**Start date:** March 4, 2026

#### Pricing

| Category | Event / Tier | Price |
| --- | --- | --- |
| **Actor Start** | `apify-actor-start` | **$0.00005** |
| **Per Domain Processed** | `domain_processed` | |
| | No discount | **$0.002** |
| | Bronze discount | **$0.0018** |
| | Silver discount | **$0.0017** |
| | Gold discount | **$0.0015** |

> ⚠️ **Note:**
> The default `apify-default-dataset-item` event (for saving results) is disabled to avoid double-charging you for results. All services (WHOIS, HTTP, SSL) are included in the per-domain fee.

# Actor input Schema

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

A list of domains or full URLs to inspect. The tool will clean them automatically.

## `recordTypes` (type: `array`):

Select the DNS record types you want to query.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "https://www.google.com/search?q=google.com"
  ],
  "recordTypes": [
    "A",
    "AAAA",
    "MX",
    "TXT",
    "CNAME",
    "NS",
    "SOA"
  ]
}
```

# Actor output Schema

## `resultsOverview` (type: `string`):

View of the core DNS, WHOIS, HTTP, and SSL results for all processed domains.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("visita/domain-inspector").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("visita/domain-inspector").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 '{}' |
apify call visita/domain-inspector --silent --output-dataset

```

## MCP server setup

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

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/4DC64pmg5nD5sZgdl/builds/uLndMV0dG50QV83tu/openapi.json
