# Email & Domain OSINT (WHOIS + DNS + SSL + Breach) (`gochujang/email-domain-osint`) Actor

Per email: disposable / role detection, provider, optional password breach check (HIBP k-anonymity). Per domain: WHOIS, DNS (A/AAAA/MX/TXT/SPF/DMARC/DKIM probe), SSL cert + days-to-expiry, public HIBP breach metadata. All free APIs. $0.005 per target checked.

- **URL**: https://apify.com/gochujang/email-domain-osint.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## 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

## Email & Domain OSINT Toolkit

> **All-in-one OSINT lookup for emails + domains.** Per email: disposable / role detection, mailbox provider, optional password breach check (HIBP k-anonymity). Per domain: WHOIS, full DNS (A/AAAA/MX/TXT/SPF/DMARC/DKIM probe), SSL cert + days-to-expiry, public HIBP breach metadata. **All free APIs. $0.005 per target.**

---

### Why this exists

Security teams + sales prospecting + IT ops all run the same three lookups (WHOIS, DNS, SSL) plus a breach check. Commercial tools (Hunter.io, Whoxy, SecurityTrails) bundle these but cost $50-500/month.

This actor wraps it for $0.005 per target with no monthly fee.

---

### What you get

#### Per email row
```json
{
  "_type": "email",
  "email": "jane@example.com",
  "local_part": "jane",
  "domain": "example.com",
  "is_disposable": false,
  "is_role_account": false,
  "provider": null,
  "sample_password_breach_count": 0,
  "sample_password_safe": true,
  "fetched_at": "2026-06-10T03:30:00+00:00"
}
````

#### Per domain row

```json
{
  "_type": "domain",
  "domain": "example.com",
  "dns": {
    "a": ["93.184.216.34"],
    "aaaa": ["2606:2800:220:1:248:1893:25c8:1946"],
    "mx": ["0 ."],
    "spf": ["\"v=spf1 -all\""],
    "dmarc": ["\"v=DMARC1; p=reject;\""],
    "dkim_probe": {"selector1": "v=DKIM1;k=rsa;p=MIIBI..."}
  },
  "whois": {
    "registrar": "ICANN",
    "creation_date": "1995-08-14T...",
    "expiration_date": "2026-08-13T...",
    "name_servers": ["a.iana-servers.net", "b.iana-servers.net"]
  },
  "ssl": {
    "common_name": "*.example.com",
    "organization": "Internet Corporation for Assigned Names and Numbers",
    "issuer_cn": "DigiCert Global G3 TLS ECC SHA384 2020 CA1",
    "not_after": "Mar  1 23:59:59 2026 GMT",
    "days_until_expiry": 263,
    "san": ["example.com", "www.example.com", "*.example.com"]
  },
  "hibp_breaches": []
}
```

***

### Use cases

1. **Pre-sales prospect verification** — Is this lead's domain real? Active? Reputable?
2. **Security triage** — Did our org show up in a public breach?
3. **SSL expiry watch** — Catch certs about to expire across your portfolio
4. **Phishing investigation** — Quick WHOIS + DNS on a suspicious domain
5. **Email validation** — Filter disposable / role accounts before sending newsletters
6. **Password safety education** — Use the k-anon HIBP check to demo why a password is bad

***

### Quick start

#### Single email + auto-domain

```json
{
  "email": "jane@example.com"
}
```

#### Batch with explicit domains

```json
{
  "emails": ["jane@apify.com", "bob@anthropic.com"],
  "domains": ["openai.com", "perplexity.ai"]
}
```

#### Speed mode (skip WHOIS + SSL)

```json
{
  "domains": ["..."],
  "skipWhois": true,
  "skipSsl": true
}
```

#### Password safety check

```json
{
  "email": "you@yourdomain.com",
  "samplePassword": "password123"
}
```

**Privacy**: Only the **first 5 chars of the SHA-1 hash** of your password are sent to HIBP (k-anonymity). The plaintext password and full hash never leave the actor.

***

### Pricing

**Pay-Per-Event**: `$0.005 per target` (email or domain).

| Run | Targets | Cost |
|---|---|---|
| Single prospect | 1 + 1 | $0.01 |
| Outreach list of 100 | 100 + 30 | $0.65 |
| Domain portfolio audit (300 domains) | 300 | $1.50 |

Vs SecurityTrails ($199/mo), Whoxy ($150/mo), Hunter.io ($49+/mo).

***

### Data sources (all free, no paid keys)

- **HIBP Pwned Passwords**: api.pwnedpasswords.com (k-anonymity)
- **HIBP Breach Metadata**: haveibeenpwned.com/api/v3/breaches (public list)
- **WHOIS**: python-whois library
- **DNS**: dnspython
- **SSL/TLS**: Python stdlib

***

### Limitations

- **WHOIS coverage** varies by TLD. Some ccTLDs hide registrant info.
- **DKIM probe** tries 5 common selectors — if your domain uses a custom selector, the probe miss is normal.
- **HIBP per-email check** (which uses paid API) is NOT included. We only check passwords (free) and domain-level breach metadata (free).

For per-account breach lookup, add your HIBP API key in a future version.

***

### Related actors (same author)

- [Crypto Address Sanctions Checker](https://apify.com/gochujang/crypto-address-sanctions-checker) — On-chain equivalent
- [Wallet Label Lookup](https://apify.com/gochujang/wallet-label-lookup)
- [HTML Metadata Extractor](https://apify.com/gochujang/html-metadata-extractor)
- [Sitemap URL Discovery](https://apify.com/gochujang/sitemap-url-discovery)

***

### Feedback

A short review helps security / sales teams find it: [Leave a review on Apify Store](https://apify.com/gochujang/email-domain-osint#reviews)

# Actor input Schema

## `emails` (type: `array`):

Email addresses to check. Domains auto-derived from these.

## `email` (type: `string`):

Used when 'emails' is empty.

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

Domains to check (in addition to those from emails).

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

Used when 'domains' is empty.

## `samplePassword` (type: `string`):

If provided, the password is checked against HIBP Pwned Passwords using the k-anonymity model — only the first 5 chars of the SHA-1 hash are sent. Plaintext is NEVER transmitted. Use for testing if a specific password is in any known breach.

## `skipWhois` (type: `boolean`):

WHOIS adds 1-3s per domain. Disable for batch mode.

## `skipSsl` (type: `boolean`):

SSL adds 0.5-2s per domain.

## Actor input object example

```json
{
  "emails": [
    "jane@example.com"
  ],
  "email": "",
  "domains": [],
  "domain": "",
  "skipWhois": false,
  "skipSsl": false
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "emails": [
        "jane@example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/email-domain-osint").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 = { "emails": ["jane@example.com"] }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/email-domain-osint").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 '{
  "emails": [
    "jane@example.com"
  ]
}' |
apify call gochujang/email-domain-osint --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Email & Domain OSINT (WHOIS + DNS + SSL + Breach)",
        "description": "Per email: disposable / role detection, provider, optional password breach check (HIBP k-anonymity). Per domain: WHOIS, DNS (A/AAAA/MX/TXT/SPF/DMARC/DKIM probe), SSL cert + days-to-expiry, public HIBP breach metadata. All free APIs. $0.005 per target checked.",
        "version": "0.1",
        "x-build-id": "2Id052gKb3S5Rw1F4"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gochujang~email-domain-osint/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gochujang-email-domain-osint",
                "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/gochujang~email-domain-osint/runs": {
            "post": {
                "operationId": "runs-sync-gochujang-email-domain-osint",
                "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/gochujang~email-domain-osint/run-sync": {
            "post": {
                "operationId": "run-sync-gochujang-email-domain-osint",
                "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",
                "properties": {
                    "emails": {
                        "title": "Emails",
                        "type": "array",
                        "description": "Email addresses to check. Domains auto-derived from these.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "email": {
                        "title": "Single email (shortcut)",
                        "type": "string",
                        "description": "Used when 'emails' is empty.",
                        "default": ""
                    },
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "Domains to check (in addition to those from emails).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "domain": {
                        "title": "Single domain (shortcut)",
                        "type": "string",
                        "description": "Used when 'domains' is empty.",
                        "default": ""
                    },
                    "samplePassword": {
                        "title": "Sample password (k-anonymity, optional)",
                        "type": "string",
                        "description": "If provided, the password is checked against HIBP Pwned Passwords using the k-anonymity model — only the first 5 chars of the SHA-1 hash are sent. Plaintext is NEVER transmitted. Use for testing if a specific password is in any known breach."
                    },
                    "skipWhois": {
                        "title": "Skip WHOIS",
                        "type": "boolean",
                        "description": "WHOIS adds 1-3s per domain. Disable for batch mode.",
                        "default": false
                    },
                    "skipSsl": {
                        "title": "Skip SSL cert",
                        "type": "boolean",
                        "description": "SSL adds 0.5-2s per domain.",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
