# Subdomain Finder via Certificate Transparency (crt.sh) (`gochujang/subdomain-finder`) Actor

Find subdomains using Certificate Transparency logs (crt.sh). Passive reconnaissance — no brute force. Optionally verify DNS resolution and HTTP liveness. No API key. PPE $0.01/domain.

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

## Pricing

from $1.00 / 1,000 result returneds

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

## Subdomain Finder

Discover all subdomains of a domain using **Certificate Transparency logs** (crt.sh). Completely passive reconnaissance — no brute-forcing, no dictionary lists. Finds subdomains by querying SSL certificates ever issued for the domain. **No API key required.**

### How It Works

Every SSL/TLS certificate issued for a website is logged in Certificate Transparency logs. These are public, append-only logs required by browser policy. The `crt.sh` service from Comodo aggregates these logs into a searchable API.

By querying `crt.sh`, we find every subdomain that has ever had an SSL cert issued — including staging, API, admin, and other internal-looking subdomains that owners often forget about.

### Features

- **CT log discovery**: All subdomains with SSL certs (wildcard `*` certs included)
- **DNS verification**: Check which subdomains still resolve (filters expired certs)
- **HTTP liveness check**: Optional — which subdomains return live HTTP responses
- **Server detection**: Identify server software (nginx, Apache, etc.)
- **Page title extraction**: Quick content overview for live subdomains
- **Bulk input**: Process multiple domains in one run

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `domains` | string\[] | Root domains to search | — |
| `csvUrl` | string | URL to CSV file | — |
| `csvColumn` | string | Column name in CSV | `domain` |
| `checkDNS` | boolean | Verify DNS resolution | `true` |
| `checkHTTP` | boolean | Check HTTP liveness | `false` |
| `maxDomains` | integer | Max domains (1–50) | 10 |
| `concurrency` | integer | Parallel checks | 20 |

### Output

| Field | Description |
|-------|-------------|
| `domain` | Root domain |
| `subdomain` | Discovered subdomain |
| `source` | `certificate_transparency` |
| `resolves` | DNS resolution status |
| `ips` | Resolved IP addresses |
| `http_alive` | Whether HTTP request succeeded |
| `status_code` | HTTP status code |
| `final_url` | URL after redirects |
| `server` | Server header |
| `page_title` | Page title (if HTTP check enabled) |

### Pricing

Pay-per-event: **$0.001 per subdomain found**. Actor start: $0.01.

Example: A domain with 200 subdomains = **$0.01 + $0.20 = $0.21**.

### Use Cases

- **Bug bounty**: Map attack surface before testing
- **Security audits**: Find forgotten dev/staging subdomains
- **Infrastructure review**: Inventory all public-facing services
- **Monitoring**: Detect new subdomains being created over time
- **Competitive intel**: Map a competitor's technical infrastructure
- **Compliance**: Ensure no unauthorized subdomains exist

### Limitations

- Only finds subdomains that have had SSL certificates issued
- Free email domains (gmail.com, etc.) have millions of results — use specific corporate domains
- Very new subdomains (< 24h) may not appear in CT logs yet

# Actor input Schema

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

Root domains to find subdomains for (e.g. example.com, not www.example.com).

## `csvUrl` (type: `string`):

URL to CSV file with domains.

## `csvColumn` (type: `string`):

Column name containing domains in the CSV.

## `checkDNS` (type: `boolean`):

Check if each subdomain actually resolves via DNS. Adds time but filters out expired certs.

## `checkHTTP` (type: `boolean`):

Check if subdomains return a live HTTP/HTTPS response. Slower but shows what's accessible.

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

Maximum number of root domains to process.

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

Number of parallel DNS/HTTP checks per domain.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "tesla.com"
  ],
  "csvColumn": "domain",
  "checkDNS": true,
  "checkHTTP": false,
  "maxDomains": 10,
  "concurrency": 20
}
```

# Actor output Schema

## `dataset` (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 = {
    "domains": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/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("gochujang/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 gochujang/subdomain-finder --silent --output-dataset

```

## MCP server setup

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