# Domain Intelligence Lookup (`obicodes/domain-intel`) Actor

Full domain intelligence in one call. Get WHOIS registration data, DNS records, SSL certificate status, IP geolocation, ASN, mail provider detection, and an actionable email security score (SPF, DMARC, MX). Built for developers, security teams, agencies, and growth teams.

- **URL**: https://apify.com/obicodes/domain-intel.md
- **Developed by:** [Obicodes](https://apify.com/obicodes) (community)
- **Categories:** Developer tools, SEO tools, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Intelligence — WHOIS, DNS, SSL, IP Geo & Email Security Score

One domain in. A complete intelligence report out.

Most domain tools return raw records and leave the interpretation to you. This Actor returns a fully enriched, multi-layer intelligence report in a single run — covering everything from WHOIS registration history to SSL certificate validity, IP geolocation, ASN ownership, DNS resolver flags, mail provider detection, and a scored email security audit broken down by SPF, DMARC, MX, and platform verification tokens.

No stitching together five different APIs. No parsing raw WHOIS text. One input, one clean structured JSON output.

---

### What you get

#### WHOIS & Registration Intelligence
Full registration history and status for any domain:
- Registrar name and IANA ID
- Registered date, expiry date, and last updated date (ISO 8601)
- Domain age in days and years
- Days remaining until expiry
- Expired status flag
- DNSSEC enabled status
- Full list of authoritative nameservers
- EPP status codes (e.g. client transfer prohibited, server delete prohibited)
- Registrar abuse contact email and phone

#### DNS Records
Complete DNS record set with provider detection:
- A records (IPv4)
- AAAA records (IPv6)
- MX records with priority, exchange hostname, and TTL
- NS nameserver records
- CNAME records
- Detected DNS provider (e.g. Google Cloud DNS, Cloudflare, Yahoo DNS, Custom / Self-hosted)
- Detected mail provider (e.g. Google Workspace, Microsoft 365, Yahoo Mail, Custom / Self-hosted)
- Record TTL values

#### DNS Resolver Flags
Low-level DNS response metadata from the resolver:
- `Status` — DNS response status code (0 = no error, 3 = NXDOMAIN)
- `TC` — truncated flag
- `RD` — recursion desired flag
- `RA` — recursion available flag
- `AD` — authenticated data / DNSSEC validation flag
- `CD` — checking disabled flag
- `Question` — the DNS question section sent to the resolver
- `Authority` — authority section records returned (SOA/NS) when applicable
- `Comment` — resolver comment indicating which upstream server answered

#### IP Intelligence & Geolocation
Full IP-level intelligence on where the domain resolves:
- Primary IPv4 and IPv6 addresses
- All resolved IPv4 and IPv6 addresses (full list)
- Total record counts
- City, country, continent, postal code, and state/subdivision
- Latitude and longitude coordinates
- Registered country
- ASN number and organisation name

#### SSL Certificate
Complete TLS/SSL certificate inspection:
- Issuing authority (country, organisation, common name)
- Certificate serial number and SHA1 fingerprint
- Signature algorithm
- Subject Alternative Names (SANs)
- Valid from and valid until dates
- Total validity days and days remaining
- `cert_valid` and `cert_exp` boolean flags
- HSTS header enabled status

#### Email Security Score
A numeric score from 0 to 100 with a label (Poor / Fair / Good / Excellent) broken down across four categories:

**SPF Analysis**
- Record present flag
- Raw SPF record value
- Policy type: pass, softfail, fail, redirect, or neutral
- `hasMx`, `hasRedirect`, `redirectTarget`
- All included domains
- Sender check result

**DMARC Analysis**
- Record present flag
- Raw DMARC record value
- Policy: none, quarantine, or reject
- Subdomain policy
- Enforcement percentage
- Aggregate report email (rua) and forensic report email (ruf)
- DKIM and SPF alignment modes
- Overall enforcement level: strict or relaxed

**MX Analysis**
- Count of MX records found
- Score contribution

**Platform Verification Tokens**
- All domain ownership verification tokens found in TXT records
- Platforms detected include: Google, Microsoft, Facebook, Zoom, GlobalSign, DocuSign, Apple, Cisco, OneTrust, and more
- All unclassified TXT records returned separately
- Total TXT record count

---

### Example output (abbreviated)

```json
{
  "hostname": "yahoo.com",
  "primaryIP": "74.6.231.20",
  "primaryIPv6": "2001:4998:44:3507::8000",
  "city": "Omaha",
  "country": "United States",
  "subdivisions": ["Nebraska"],
  "coordinates": "41.2612,-95.9354",
  "asn": 36646,
  "asn_org": "Yahoo Holdings Inc.",
  "whois": {
    "registrar": "MarkMonitor Inc.",
    "registeredDate": "1995-01-18T05:00:00Z",
    "expiryDate": "2027-01-19T05:00:00Z",
    "domainAgeDays": 11420,
    "domainAgeYears": 31.3,
    "daysUntilExpiry": 268,
    "expired": false,
    "dnssec": false,
    "statusCodes": ["client delete prohibited", "client transfer prohibited"]
  },
  "dns": {
    "dnsProvider": "Yahoo DNS",
    "mailProvider": "Yahoo Mail",
    "mx": [
      { "priority": 1, "exchange": "mta7.am0.yahoodns.net", "ttl": 574 }
    ]
  },
  "emailSecurity": {
    "score": 100,
    "scoreLabel": "Excellent",
    "spf": {
      "present": true,
      "policy": "redirect",
      "redirectTarget": "_spf.mail.yahoo.com",
      "passesSenderCheck": true
    },
    "dmarc": {
      "present": true,
      "policy": "reject",
      "enforcementLevel": "strict",
      "reportingEmail": "d@rua.agari.com"
    },
    "verificationTokens": {
      "google": ["w4N2bNopAWw1xYrdXKORILxx-WW3..."],
      "facebook": "gysqrcd69g0ej34f4jfn0huivkym1p",
      "zoom": "13284637"
    },
    "totalTxtRecords": 12
  },
  "result": {
    "cert_valid": true,
    "cert_exp": false,
    "days_left": 10,
    "issuer_o": "Sectigo Limited",
    "hsts_header_enabled": false
  },
  "Status": 3,
  "RD": true,
  "RA": true,
  "AD": false
}
````

***

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `domain` | string | Yes | The domain to look up (e.g. `example.com`) — no `http://` or trailing slashes |

***

### Use cases

**Developers & engineers**
Enrich domain data in your apps, pipelines, CRMs, and internal tools without stitching together multiple APIs. Get everything in one structured JSON response.

**Security & compliance teams**
Audit any domain's full security posture — SSL validity, DNSSEC status, SPF/DMARC enforcement level, and resolver flags — before trusting inbound email or onboarding a new vendor.

**Marketing & growth teams**
Before reaching out to a prospect domain, verify their email infrastructure is healthy. A domain with no DMARC and a softfail SPF is a deliverability risk. Know before you send.

**Agency owners**
Run full domain health checks for clients as part of onboarding, technical audits, or ongoing monitoring. Export results as JSON or CSV directly from the dataset.

**Domain investors**
Instantly assess registration age, expiry timeline, WHOIS status, SSL health, and IP footprint for any domain you're evaluating.

***

### Integrate via API

Trigger a run and get results back synchronously:

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/obicodes~domain-intel/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domain": "example.com"}'
```

Results are stored in Apify's dataset and downloadable as JSON or CSV from the dataset tab.

***

### Pricing

This Actor uses pay-per-event pricing:

- **$0.01** per domain result
- **$0.05** Actor start fee (charged once per run)

A single domain lookup costs **$0.06 total** — that's a complete 6-layer intelligence report for less than a cent.

# Actor input Schema

## `domain` (type: `string`):

The domain name to look up (e.g. example.com)

## Actor input object example

```json
{
  "domain": "yahoo.com"
}
```

# Actor output Schema

## `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 = {
    "domain": "yahoo.com"
};

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

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

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Domain Intelligence Lookup",
        "description": "Full domain intelligence in one call. Get WHOIS registration data, DNS records, SSL certificate status, IP geolocation, ASN, mail provider detection, and an actionable email security score (SPF, DMARC, MX). Built for developers, security teams, agencies, and growth teams.",
        "version": "0.1",
        "x-build-id": "vh94K2cz0R6bwdxgE"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/obicodes~domain-intel/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-obicodes-domain-intel",
                "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/obicodes~domain-intel/runs": {
            "post": {
                "operationId": "runs-sync-obicodes-domain-intel",
                "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/obicodes~domain-intel/run-sync": {
            "post": {
                "operationId": "run-sync-obicodes-domain-intel",
                "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": [
                    "domain"
                ],
                "properties": {
                    "domain": {
                        "title": "Domain",
                        "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$",
                        "type": "string",
                        "description": "The domain name to look up (e.g. example.com)"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
