# Subdomain Finder & New Subdomain Monitor (`adaptive_labs/subdomain-finder`) Actor

Find all subdomains of any domain from Certificate Transparency logs (crt.sh, Cert Spotter) and host search, with DNS, IPs, live status and page titles. Alerts on new subdomains. Free.

- **URL**: https://apify.com/adaptive_labs/subdomain-finder.md
- **Developed by:** [Adaptive Labs](https://apify.com/adaptive_labs) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 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/actors/running/actors-in-store.md#pay-per-usage

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

## Subdomain Finder & New Subdomain Monitor

Find **every subdomain of a domain** in seconds. This Actor searches **Certificate Transparency logs** (Cert Spotter and crt.sh) and HackerTarget host search, merges the results and returns each subdomain with its **first certificate date, IP addresses, CNAME and whether it is live**. Optionally it opens each one and records the **HTTP status and page title**.

Turn on **Only new** and schedule it to get an alert whenever a **new subdomain** appears, which is a great early signal of new products, staging sites or forgotten assets. No login, no API key and no proxy needed.

### What you get

- Passive subdomain enumeration from Certificate Transparency logs plus host search, merged and de-duplicated
- First certificate date (a good proxy for when a subdomain launched) and latest certificate expiry
- DNS resolution: A records and CNAME, so you can spot live hosts and dangling CNAMEs
- Optional website check: HTTP status, final URL, server header and page title
- New subdomain alerts with only-new mode and a schedule
- Many domains per run, newest subdomains first
- Never fails on a busy source: other sources still return results

### Who uses it

- **Security teams and bug bounty hunters**: map an organisation's attack surface and catch forgotten hosts
- **IT and DevOps**: audit your own subdomains, certificates and dangling DNS records
- **Competitive intelligence**: spot new products, regions or staging sites the day a certificate is issued
- **Sales and lead generation**: see which SaaS tools a company runs (for example status, help or shop subdomains)
- **SEO**: find every hostname a brand uses before a migration or audit

### Quick start (under a minute)

1. Enter one or more **domains** (the example `apify.com` works out of the box).
2. Leave **Resolve DNS** on, and tick **Check website** if you want status codes and page titles.
3. Click **Start**. Subdomains appear in the **Subdomains** table within seconds.
4. For alerts, turn on **Only new since last run**, set a **Monitor name** and add a daily schedule.

### Input example

```json
{
  "domains": [
    "example.com"
  ],
  "maxSubdomainsPerDomain": 1000,
  "resolveDns": true,
  "checkHttp": true,
  "onlyNew": true,
  "monitorName": "example-new-subdomains"
}
```

#### Input fields

- **domains**: Root domains such as example.com. URLs and www. are cleaned automatically.
- **sources**: certspotter, crtsh and hackertarget. Results from all available sources are merged.
- **checkHttp**: Opens each live subdomain once. Leave it off for very large lists.

### Output example

```json
{
  "subdomain": "console.apify.com",
  "domain": "apify.com",
  "level": 1,
  "isWildcard": false,
  "firstSeen": "2026-09-14T00:00:00Z",
  "certExpires": "2026-12-13T23:59:59Z",
  "certCount": 3,
  "sources": [
    "certspotter",
    "crtsh",
    "hackertarget"
  ],
  "ipAddresses": [
    "104.18.20.152"
  ],
  "cname": null,
  "resolves": true,
  "httpStatus": 200,
  "finalUrl": "https://console.apify.com/",
  "pageTitle": "Apify Console",
  "server": "cloudflare",
  "scrapedAt": "2026-11-12T16:30:00.000Z"
}
```

#### Output fields

- **firstSeen**: Earliest certificate start date seen for that name in the logs we read.
- **resolves**: True if the name has an A record now, false if not, null if the DNS lookup failed.
- **sources**: Which sources reported the subdomain.

### Use it from your code or tools

**Apify API (cURL)**: start a run and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/adaptive_labs~subdomain-finder/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["apify.com"], "maxSubdomainsPerDomain": 40}'
```

**JavaScript / TypeScript**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('adaptive_labs/subdomain-finder').call({
  "domains": [
    "apify.com"
  ],
  "maxSubdomainsPerDomain": 40
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("adaptive_labs/subdomain-finder").call(run_input={
  "domains": [
    "apify.com"
  ],
  "maxSubdomainsPerDomain": 40
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**No-code and AI agents**

- **Make, Zapier, n8n, Google Sheets, Slack**: use the Apify integration for your tool, pick this Actor and map the dataset fields.
- **Schedules and webhooks**: add the Actor to an Apify schedule (for example every morning) and send results anywhere with a webhook.
- **AI agents and MCP**: this Actor works with the Apify MCP server, so Claude, ChatGPT, Cursor and other MCP clients can call it as a tool. Clean, flat JSON output is easy for LLMs to read.
- **Export**: download results as JSON, CSV, Excel, XML or HTML from the Storage tab.

### FAQ

**Is this active scanning?**
No. Discovery is passive: it reads public Certificate Transparency logs and a public host search. DNS lookups use Cloudflare DNS over HTTPS. The optional website check makes one normal request per subdomain.

**Why might a subdomain be missing?**
Only names that appear in public certificates or host search data can be found passively. Internal names and wildcard-only setups may not appear.

**What if crt.sh is down?**
crt.sh is often busy. The Actor queries all sources in parallel and returns what it gets. If every source is unavailable it still finishes successfully, explains why and you can run it again later.

**How do new subdomain alerts work?**
Turn on Only new since last run and schedule the Actor. Each run saves only subdomains it has not returned before for that monitor name.

**Do I need an API key?**
No. All sources used are free and public.

### Pricing

This Actor is **free to use**. You only pay for your own Apify platform usage (compute), and small runs use very little compute, so light use fits within the free monthly credit on Apify's free plan.

### Feedback and support

We build and maintain this Actor at **Adaptive Labs** and we read every message.

- If it helped you, please **leave a quick review** on the Actor page. It really helps other people find it.
- Feature requests, bugs or a source you would like added: email **support@adaptivelabs.app** or open an issue on the Issues tab.

### Responsible use

Use this Actor only for domains you own, are authorised to test, or for legitimate research. It reads public certificate and DNS data and does not exploit or probe for vulnerabilities. Follow the terms of the data sources and any bug bounty programme rules.

***

If this Actor saved you time, a quick review on Apify Store would mean a lot. Ideas or problems? Email support@adaptivelabs.app.

# Actor input Schema

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

Root domains to search, one per line, for example example.com.

## `maxSubdomainsPerDomain` (type: `integer`):

Newest subdomains (by first certificate date) are kept first.

## `resolveDns` (type: `boolean`):

Look up IP addresses and CNAME for each subdomain, so you can see which are live.

## `checkHttp` (type: `boolean`):

Open each subdomain over HTTPS (then HTTP) and record the status code, final URL, server and page title. Slower on large lists.

## `sources` (type: `array`):

Certificate Transparency logs (certspotter and crt.sh) and HackerTarget host search. All are used by default and merged.

## `includeWildcards` (type: `boolean`):

Keep names like \*.example.com as separate rows instead of folding them into the base name.

## `onlyNew` (type: `boolean`):

Save only subdomains not returned by an earlier run with the same monitor name. Schedule it daily for alerts.

## `monitorName` (type: `string`):

Name of the saved state for only-new mode. Use a different name for each watch.

## Actor input object example

```json
{
  "domains": [
    "apify.com"
  ],
  "maxSubdomainsPerDomain": 40,
  "resolveDns": true,
  "checkHttp": false,
  "sources": [
    "certspotter",
    "crtsh",
    "hackertarget"
  ],
  "includeWildcards": false,
  "onlyNew": false,
  "monitorName": "default"
}
```

# Actor output Schema

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

Subdomains (overview view).

# 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": [
        "apify.com"
    ],
    "maxSubdomainsPerDomain": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("adaptive_labs/subdomain-finder").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": ["apify.com"],
    "maxSubdomainsPerDomain": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("adaptive_labs/subdomain-finder").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": [
    "apify.com"
  ],
  "maxSubdomainsPerDomain": 40
}' |
apify call adaptive_labs/subdomain-finder --silent --output-dataset

```

## MCP server setup

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

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/0yyZpfKu08wLFqbmX/builds/2ReujmhqbBGFJXoEa/openapi.json
