# Domain Intelligence API: WHOIS, DNS, SSL, SPF, Tech Stack (`codepulsehq/domain-intelligence-api`) Actor

Check domains in bulk: DNS records, SPF/DKIM/DMARC with plain-English fixes, registration and expiry, the SSL certificate and website technology. No API keys. You only pay for checks that return data.

- **URL**: https://apify.com/codepulsehq/domain-intelligence-api.md
- **Developed by:** [Code Pulse](https://apify.com/codepulsehq) (community)
- **Categories:** Developer tools, SEO tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Intelligence API: WHOIS, DNS, SSL, email security and tech stack for any list of domains

Paste domains. Get back, for each one: DNS records, **SPF / DKIM / DMARC** checks with plain-English fixes, **registration and expiry** (WHOIS via RDAP), the **SSL certificate**, and the **technology** the website runs on. No API keys, no accounts with five different providers, and you only pay for the checks that return data.

**From $0.80 per 1,000 domains for a single check, about $4 per 1,000 for everything.** Domains that don't exist or can't be read are free.

**Try it free:** Apify's free plan includes $5 of monthly credit, enough for about 6,000 domains checked for DNS and email security. Press **Start** at the top of this page.

### At a glance

- **What it is:** an API and no-code tool that checks domains in bulk: DNS, email security, registration/expiry, SSL certificate and website technology.
- **Input:** domains or website links, one per line (URLs, `www.`, subdomains and uppercase are all cleaned up).
- **Output:** one JSON row per domain, with a flat `summary` you can drop straight into a spreadsheet.
- **Price:** pay per check that returns data: DNS and email security $0.0008, registration $0.001, SSL $0.0008, website technology $0.0014 per domain.
- **How to call it:** the Apify Console, the REST API (curl, Python, JavaScript), n8n, Make, Zapier, or an AI agent through MCP.

### Does this sound like you?

| What's going wrong | What this does about it |
|---|---|
| "A certificate expired on a client's site and nobody noticed." | Check SSL expiry for every domain on a schedule. `summary.ssl_days_left` tells you who is about to expire. |
| "We lost a domain because the renewal slipped." | `summary.days_until_expiry` plus the registrar for every domain you own. |
| "Emails to our customers land in spam." | The email security check reads SPF, DKIM and DMARC and lists the problems in plain English, such as "No DMARC record" or "SPF has more than 10 lookup terms". |
| "I need to know what a prospect's website runs on." | Technology detection with the evidence for each match (a header, a script URL, a cookie), so you can judge it yourself. |
| "I'm paying three vendors and gluing the results together." | One run, one row per domain. |

### Who uses it

- **Agencies and IT teams:** audit client domains for expiring certificates, missing DMARC and weak SPF in one run.
- **Sales and lead-generation teams:** qualify prospects by the technology they use (for example Shopify stores running Klaviyo).
- **Security and compliance:** watch your own estate for expiry, missing HSTS and other security headers.
- **Domain investors and brand protection:** age, registrar, status and expiry across a long list.
- **AI agents:** give an agent a "look up this domain" tool through MCP.

### How to use it in 3 steps

1. Click **Start** (or call the API below).
2. Paste domains under **Domains or website links**. Choose **What to check**, or leave it empty to run everything.
3. Open the **Output** tab and download JSON, CSV or Excel, or send it to your tools.

### What you get for each domain

Example (shortened) for `stripe.com`:

```json
{
  "success": true,
  "domain": "stripe.com",
  "summary": {
    "registrar": "SafeNames Ltd.",
    "expires": "2027-09-11T04:00:00Z",
    "days_until_expiry": 296,
    "ssl_valid": true,
    "ssl_days_left": 172,
    "spf": "softfail",
    "dmarc": "reject",
    "email_issues": 0,
    "technologies": ["Next.js", "Nginx"]
  },
  "dns": { "a": ["54.76.53.164"], "mx": [{ "priority": 10, "host": "aspmx.l.google.com" }], "ns": ["ns-1882.awsdns-43.co.uk"], "txt": ["..."] },
  "email_security": {
    "spf": { "policy": "softfail", "includes": ["spf1.stripe.com"], "direct_lookup_terms": 3 },
    "dmarc": { "policy": "reject", "pct": 100, "rua": ["mailto:dmarc-reports@stripe.com"] },
    "dkim_selectors_found": ["google", "s1", "s2"],
    "mta_sts": false,
    "issues": []
  },
  "registration": { "registered": true, "registrar": "SafeNames Ltd.", "created": "1995-09-12T04:00:00Z", "age_days": 11390, "status": ["client transfer prohibited"], "dnssec_signed": false },
  "ssl": { "valid": true, "issuer": "DigiCert G5 TLS ECC SHA384 2021 CA1", "not_after": "2027-05-09T23:59:59+00:00", "days_until_expiry": 172, "san": ["stripe.com", "www.stripe.com"], "protocol": "TLS 1.3" },
  "website": {
    "final_url": "https://stripe.com/gb",
    "status": 200,
    "technologies": [{ "name": "Next.js", "category": "JavaScript framework", "evidence": "html: __NEXT_DATA__" }],
    "security_headers": { "hsts": true, "csp": true, "x_frame_options": true },
    "page": { "title": "Stripe | Financial Infrastructure to Grow Your Revenue", "language": "en-GB" }
  }
}
```

A domain that can't be read comes back as a row with `success: false`, an `error_code` and a plain-English `error`. These rows are free.

### Input options

| Option | What it does |
|---|---|
| **Domains or website links** | One per line. `https://www.shopify.com/pricing` becomes `www.shopify.com`. IP addresses aren't supported. |
| **What to check** | `dns`, `email`, `registration`, `ssl`, `website`. Empty means all five. |

### Call it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/codepulsehq~domain-intelligence-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "domains": ["stripe.com", "github.com"], "checks": ["ssl", "registration"] }'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("codepulsehq/domain-intelligence-api").call(run_input={"domains": ["stripe.com", "github.com"]})
for row in client.dataset(run.default_dataset_id).iterate_items():
    s = row["summary"]
    print(row["domain"], "SSL days left:", s["ssl_days_left"], "DMARC:", s["dmarc"])
```

Get your token under **Settings > API & Integrations** in the Apify Console.

### Use it from an AI agent (MCP)

Add this to your MCP client (Claude, Cursor, VS Code). It opens a browser to sign in the first time:

```json
{
  "mcpServers": {
    "domain-intelligence": { "url": "https://mcp.apify.com?tools=codepulsehq/domain-intelligence-api" }
  }
}
```

Then ask: *"Check example.com: is its SSL certificate close to expiring, and is its email protected by DMARC?"*

### Run it on a schedule

Apify can run this every day or week on your domain list and email you or call a webhook. Schedule a run, then filter the results for `summary.ssl_days_left < 14` or `summary.days_until_expiry < 30` to get expiry warnings.

### Pricing

| Check | Price per domain |
|---|---|
| DNS records and email security (SPF, DKIM, DMARC) | $0.0008 |
| Registration and expiry (RDAP) | $0.0010 |
| SSL certificate | $0.0008 |
| Website technology and security headers | $0.0014 |
| **All checks** | **$0.0040** |

You are charged only for a check that returned data. Domains that don't exist, invalid input and failed lookups are free, and you can set a maximum cost per run.

### Quick answers

**How do I check SPF, DKIM and DMARC for many domains at once?** Paste the domains and choose **Email security (SPF, DKIM, DMARC)**. Each row lists the SPF policy, the DMARC policy and reporting addresses, which common DKIM selectors exist, and an `issues` list in plain English.

**How do I monitor SSL certificate or domain expiry?** Schedule this Actor on your domain list and filter `summary.ssl_days_left` and `summary.days_until_expiry`. Use Apify's webhooks or integrations to send an alert.

**Is there a WHOIS API?** Registration data comes from RDAP, the standard that replaced WHOIS. You get registrar, creation, update and expiry dates, status codes, name servers and DNSSEC. Personal registrant contact details are hidden by registries for privacy, so they aren't included.

**How do I find out what technology a website uses?** Choose **Website technology**. Each match shows the evidence (a header, script URL, cookie or HTML pattern).

**How do I bulk check MX records?** Choose **DNS records**. Each row has the MX hosts sorted by priority.

### How it compares

| | Typical single-purpose API | Command-line tools (`dig`, `openssl`, `whois`) | **This Actor** |
|---|---|---|---|
| Covers DNS, email security, registration, SSL and tech in one call | No, one vendor per signal | You script and parse each | Yes |
| Bulk lists and scheduling | Varies | You build it | Yes |
| Plain-English email problems | Rarely | No | Yes |
| Pay only for the checks you need | Varies | Free, but your time | Yes |

### Limits you should know

- **Technology detection covers about 120 common technologies** (CMS, frameworks, analytics, CDNs, hosting, payments, chat and so on). It reads what the homepage sends; it doesn't run JavaScript, so single-page apps that render everything in the browser can reveal less.
- **DKIM selectors can't be listed, only guessed.** The check tries ten very common selectors, so "none found" doesn't prove there's no DKIM.
- **Registrant contact details aren't available** (hidden by registries).
- Only domain names are supported, not IP addresses.

### More from CodePulse

- [SEC EDGAR API](https://apify.com/codepulsehq/sec-edgar-api): 10-K text, financials, insider trades and 13F holdings by ticker.
- [US Federal Contracts & Grants API](https://apify.com/codepulsehq/us-federal-opportunities-api): SAM.gov, Grants.gov and award data, no API key.
- [YouTube Transcript API](https://apify.com/codepulsehq/youtube-transcript-api): transcripts of any video, playlist or channel.

### FAQ

**Do I need any API keys?** No.

**Does it work for any domain ending?** Registration data works for every ending that publishes an RDAP server. Others return the other checks and a note.

**Something broke or I need another check?** Open an issue from the **Issues** tab and include the domain.

# Actor input Schema

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

One domain or website link per line, for example stripe.com or https://www.shopify.com/pricing. Subdomains work too. Anything you paste is cleaned up for you.

## `checks` (type: `array`):

Leave empty to run everything. Pick only what you need to pay less: you are charged per check that returns data.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "github.com",
    "wordpress.org"
  ]
}
```

# Actor output Schema

## `domains` (type: `string`):

All results for this run.

## `runSummary` (type: `string`):

Counts of domains checked and failed.

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

// Run the Actor and wait for it to finish
const run = await client.actor("codepulsehq/domain-intelligence-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": [
        "stripe.com",
        "github.com",
        "wordpress.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("codepulsehq/domain-intelligence-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": [
    "stripe.com",
    "github.com",
    "wordpress.org"
  ]
}' |
apify call codepulsehq/domain-intelligence-api --silent --output-dataset

```

## MCP server setup

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