# Subdomain Finder: Certificate Logs + Live Check & Takeover Flag (`larkmoor/subdomain-finder`) Actor

Find every subdomain of a domain from public Certificate Transparency logs plus common names, then check each one: live or dead, IPs, CNAME, hosting/CDN, HTTP status, page title, server and possible subdomain takeover. Passive, no brute force. Dead names are free.

- **URL**: https://apify.com/larkmoor/subdomain-finder.md
- **Developed by:** [Larkmoor Data](https://apify.com/larkmoor) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.50 / 1,000 domain scanneds

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

## Subdomain Finder: Certificate Logs + Live Check & Takeover Flag

Find the subdomains of any domain and see at a glance which ones are live, where they are hosted and what they serve. The actor reads the public **Certificate Transparency** logs (every TLS certificate issued by a public authority is logged there, with the names it covers), adds about 120 common names (www, mail, api, dev, staging, shop, status, vpn...) checked in DNS, and then tests each name:

- does it still resolve, to which IPv4/IPv6 addresses, through which CNAME
- which hosting, CDN or SaaS it points to (Cloudflare, Vercel, Netlify, AWS, Azure, Heroku, GitHub Pages, Shopify, HubSpot, Zendesk, Webflow, Workday and 60 more)
- one visit to its homepage: HTTP status, page title, server header and final URL
- **possible subdomain takeover**: a CNAME that points at a service where the resource no longer exists (GitHub Pages, Heroku, S3, Azure, Zendesk, Shopify, Webflow, Netlify and others)
- when its first and latest certificates were issued, how many certificates name it, and by which authorities

Passive by design: no brute-force wordlists of thousands of names, no port scans, no vulnerability probes. Certificate logs come from crt.sh, with Cert Spotter as an automatic fallback when crt.sh is slow.

### What you can use it for

- **Attack-surface and security reviews**: list everything a company exposes, spot forgotten staging and test hosts, and catch dangling CNAMEs before someone else claims them.
- **Bug bounty recon**: a fast, clean first pass of a scope, with titles and status codes to decide where to look.
- **IT asset inventory**: find shadow IT and old marketing sites still running on your own domains.
- **Sales and competitive research**: which SaaS tools a company runs on its own subdomains (help desk, status page, careers, docs, shop).
- **Migrations**: make sure no subdomain is left behind when moving DNS or hosting.

### Input

- **Domains** (`domains`): root domains, one per line (`example.com`). URLs and email addresses are accepted.
- **Max subdomains per domain** (`maxSubdomainsPerDomain`): default 500; raise it for large companies.
- **Also check 120 common names** (`checkCommonNames`): on by default; only names that exist are returned.
- **Visit each live subdomain once** (`httpProbe`): on by default (status, title, server, takeover fingerprint).
- **Only live subdomains** (`onlyAlive`), **Max domains** (`maxDomains`), **Parallel checks** (`concurrency`), **HTTP timeout** and **DNS timeout**.

```json
{
  "domains": ["apify.com"],
  "maxSubdomainsPerDomain": 500
}
```

### Output

One row per subdomain. Example (real result):

```json
{
  "domain": "apify.com",
  "subdomain": "blog.apify.com",
  "source": "certificate-transparency",
  "alive": true,
  "dnsStatus": "ok",
  "ips": ["151.101.3.7", "151.101.67.7", "151.101.131.7", "151.101.195.7"],
  "cname": "ghost.map.fastly.net",
  "hostedOn": "Fastly",
  "httpStatus": 200,
  "title": "Apify Blog: Guides to the largest marketplace of tools for AI",
  "server": "openresty",
  "https": true,
  "possibleTakeover": false,
  "takeoverReason": null,
  "certFirstSeen": "2017-10-10",
  "certLastSeen": "2026-10-26",
  "certCount": 121,
  "certIssuers": ["Certainly", "Cloudflare", "Let's Encrypt", "ZeroSSL"],
  "wildcardCert": false,
  "wildcardDns": false
}
```

Names that appear in certificate logs but no longer resolve are returned with `alive: false` (useful history, and free). When a domain uses wildcard DNS (every name answers), the run says so, skips the common-name guesses and marks names that only answer through the wildcard with `wildcardDns: true` (free). The run's `OUTPUT` record has a per-domain summary: names found in the logs, live, not resolving, seconds, and which log source answered.

### Cost

- **$0.01 per domain scanned**, plus
- **$0.20 per 1,000 live subdomains** (dead names and wildcard-only names are free; less on higher Apify plans).

Examples: a small company with 30 live subdomains costs about $0.016; a mid-size company with 500 live subdomains about $0.11; 100 small domains about $1.50.

A domain with a few hundred names usually takes one to three minutes with the homepage check on; switch the check off for very large scopes.

### FAQ

**Is this legal?** Yes. Certificate Transparency logs are public by design, so anyone can audit which certificates were issued for a domain, and DNS is a public directory. The optional homepage check is one ordinary request per live subdomain, the same as opening it in a browser. The actor does not brute-force names, scan ports or test for vulnerabilities. Only scan domains you own or are authorised to assess when you act on the results.

**Why are some internal hosts missing?** A subdomain that never had a public certificate (or only sits under a wildcard certificate) is not in the logs. The common-name check finds the usual ones; anything else is invisible to passive methods.

**What does "possible takeover" mean?** The subdomain's CNAME points at a third-party service, and that service answers that the resource does not exist (or the target name itself no longer exists). Whoever registers that resource could serve content on your subdomain. Treat it as a lead to verify, not a confirmed finding.

**crt.sh was down, did I lose the run?** No. The actor retries crt.sh and then falls back to Cert Spotter; the summary records which source answered.

**Can I run it on a schedule?** Yes: save it as a task and schedule it weekly to see new subdomains as certificates are issued.

### Integrations

Use it from the Apify API, the Apify CLI, Make, Zapier, n8n or a webhook. Feed the live subdomains into our Bulk DNS Lookup, Website Tech Stack or Security Headers Checker actors for the next step.

### Changelog

- **0.1** (Nov 9, 2026): first release: Certificate Transparency (crt.sh + Cert Spotter fallback), 120 common names, DNS resolution with CNAME, hosting/CDN detection, homepage status/title/server, takeover fingerprints, certificate dates and issuers, wildcard-DNS detection, free rows for dead and wildcard-only names.

### Support

Found a problem or need a field added? Open an issue on the Issues tab; it is read and answered.

# Actor input Schema

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

Root domains to scan, one per line (example.com). URLs and email addresses also work.

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

Upper limit of subdomains from certificate logs checked per domain (big companies can have tens of thousands).

## `checkCommonNames` (type: `boolean`):

Besides certificate logs, check common names (www, mail, api, dev, staging, shop, status, vpn...) in DNS. Only the ones that exist are returned.

## `httpProbe` (type: `boolean`):

One request to the homepage of each live subdomain (HTTPS, then HTTP) for status code, page title, server and the takeover fingerprint.

## `onlyAlive` (type: `boolean`):

Leave out names from certificate logs that no longer resolve (those rows are free either way).

## `maxDomains` (type: `integer`):

Upper limit of domains scanned in this run.

## `concurrency` (type: `integer`):

Subdomains checked at the same time.

## `httpTimeoutSecs` (type: `integer`):

How long to wait for each homepage.

## `dnsTimeoutSecs` (type: `integer`):

How long to wait for each DNS answer.

## Actor input object example

```json
{
  "domains": [
    "apify.com"
  ],
  "maxSubdomainsPerDomain": 500,
  "checkCommonNames": true,
  "httpProbe": true,
  "onlyAlive": false,
  "maxDomains": 100,
  "concurrency": 20,
  "httpTimeoutSecs": 10,
  "dnsTimeoutSecs": 4
}
```

# Actor output Schema

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

One row per result in the run's default dataset (CSV/Excel/JSON).

# 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"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,larkmoor/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/30tRV4GnOgTJiex0O/builds/O3kXB5ayv88FfpOml/openapi.json
