# Domain & Subdomain Finder — Search & Availability (`apivault_labs/domain-subdomain-finder`) Actor

Find observed domains and subdomains by domain suffix or keyword. Deduplicate hostnames, inspect source dates, export CSV/JSON and optionally check HTTP redirects. Coverage and source failures are explicit.

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

## Pricing

from $0.50 / 1,000 unique hostnames

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

## Domain & Subdomain Finder

![Domain and subdomain discovery: observed web names organized into structured results](https://api.apify.com/v2/key-value-stores/bCwSTBGJTFadtAY2S/records/domain-finder-readme-hero-v1.png?signature=CKYFsF2IujVn5wKBeQj8)

Find observed hostnames for a domain such as `example.com`, or search our domain index for a word such as `shop`. Automatic mode detects a word versus a full domain, so you can submit only `query`. Domain searches also query a selected Common Crawl archive, independently of certificate search. Export deduplicated names with their sources and observation dates, and optionally check HTTP availability and redirects.

Useful for domain research, finding hosted storefront addresses, building website candidate lists, and mapping publicly observed subdomains. This is an observed-name finder: it does not enumerate every existing website or prove when a business opened.

### What can you use it for?

| Goal | Input to start with | Useful result |
|---|---|---|
| Research a domain and its observed subdomains | `{"query":"shopify.com","maxItems":20}` | Hostnames with the sources and dates supporting each match |
| Discover archived hosted storefront addresses | `{"query":"myshopify.com","useIndex":false,"searchCertificates":false,"maxItems":20}` | Concrete archived names, with continuation to more archive blocks |
| Find candidate domains containing a word | `{"query":"shop","maxItems":20}` | Literal matches in the fixed owned index |
| Check reachability and redirects | `{"query":"shopify.com","maxItems":5,"verifyHttp":true}` | HTTP status, final URL and explicit unknowns for unfinished checks |
| Build a combined CSV list | Follow the generated continuation inputs | Structured hostname rows; remembered names suppress repeats across archive batches |

The images on this page illustrate discovery and structured output. They are not screenshots, measured coverage maps or examples of live customer data.

### Quick start

The prefilled `shopify.com` query has an owned-index match, so the first run can deliver a real name even when certificate search is unavailable. Start with this small domain search:

```json
{"query":"shopify.com","mode":"domain","maxItems":20}
```

Just type a word; no extension or mode selection is required:

```json
{"query":"shop","maxItems":20}
```

Find domain names containing a word in our index with an explicit mode:

```json
{"query":"shop","mode":"contains","maxItems":20,"searchCertificates":false}
```

Search a hosted suffix:

```json
{"query":"myshopify.com","mode":"domain","maxItems":20}
```

Only previously observed names can appear. A wildcard certificate for `*.myshopify.com` does not reveal the individual stores it covers. Large certificate queries can time out or exceed the response cap; read SUMMARY before interpreting an empty result.

Check returned websites and their redirects:

```json
{"query":"example.com","mode":"domain","maxItems":5,"verifyHttp":true}
```

### Example result

This hostname and provenance were returned by the checked archive-only candidate run. The example is shortened to one source observation; `verification=null` means that HTTP checking was not requested.

```json
{
  "hostname": "000000band.myshopify.com",
  "url": "https://000000band.myshopify.com",
  "sources": ["common-crawl"],
  "sourceObservations": [
    {
      "source": "common-crawl",
      "collection": "CC-MAIN-2026-43",
      "crawlTimestamp": "20261012064036",
      "archivedHttpStatus": "200"
    }
  ],
  "verification": null
}
```

An archived match is a research candidate. It does not prove that the storefront is still operating or was newly created.

### Automatic mode and explicit search modes

| Mode | Meaning | Sources |
|---|---|---|
| auto (default) | A word selects contains; a dotted name or URL selects domain | Sources for the resolved mode |
| domain | Exact hostname plus names ending in a dot followed by that hostname | Owned domain index, optional crt.sh and Common Crawl |
| contains | Literal case-insensitive substring in a domain name; at least three ASCII domain characters | Owned domain index |

`example.com` matches itself and `shop.example.com`; it does not match `badexample.com` or `example.com.other.net`. URL input in domain mode is normalized to its hostname. Internationalized domain names are returned as ASCII/punycode. Contains mode accepts letters, digits, dots and hyphens, without wildcard or query-language syntax.

### What is in the index?

The owned index uses a fixed snapshot of 601,632 CT-observed candidate domains collected on 25 October 2026. It primarily contains registrable domains, rather than all certificate SAN hostnames. Individual `myshopify.com` names were preserved if actually observed, but this snapshot contains none of those direct suffix matches. The separate ongoing collector is not automatically incorporated into this fixed snapshot. Index size and snapshot identity are returned in SUMMARY.

Common Crawl adds concrete hostnames observed in archived URLs. It searches the selected monthly collection (`CC-MAIN-2026-43` by default), not every historical archive. One index block is read by default; increase `commonCrawlMaxPages` up to5 to read a bounded batch. Archived HTTP status and crawl timestamps describe a past observation. Full source URL paths, query strings and fragments are discarded. This source can find individual hosted-store addresses even if the owned index has none or only wildcard certificates exist. A found address can be inactive today.

Certificate search complements this with concrete names recorded by crt.sh. Its response is historical and can include retired names. A wildcard pattern is reported separately in SUMMARY and is never expanded into invented hostname rows. Certificate validity dates are not website launch dates.

### Output fields

| Field | Meaning |
|---|---|
| hostname | Unique normalized observed hostname |
| url | HTTPS URL constructed from that hostname; not a claim that it responds |
| sources | Sources supporting this exact name |
| sourceObservations | Index observation timestamps, certificate validity dates, or Common Crawl collection/crawl timestamp/archived status, with source provenance |
| verification | Optional checkedAt, HTTP status, finalUrl, accessible and error fields |

One hostname is delivered once per run. Different hostnames that redirect to the same site remain separate results; finalUrl lets you identify those relationships. `accessible=true` means an observed HTTP response below400, not a working shop, checkout or trustworthy business. A network/TLS failure is unknown, not proof that the domain does not exist.

### Limits and completion

`maxItems` ranges from1 to1000. `offset` ranges from0 to10000. Results are sorted by hostname. The default dataset contains only matching hostnames, never error rows. SUMMARY describes sources, failures, source truncation and whether more names are available.

- `useIndex=false` disables our index; `searchCertificates=false` disables crt.sh; `searchCommonCrawl=false` disables the archive source. At least one applicable source is required. Certificate/archive sources apply only to domain mode.
- Common Crawl reads at most5 index blocks per run. `commonCrawlAccess=auto` first allows up to20seconds for the query API, then recovers a network/HTTP500/502/503/504 failure by reading bounded byte ranges from the same official collection. Direct recovery has up to50seconds; the combined source budget is at most70seconds. Successful earlier API blocks are retained rather than mixing transports mid-batch. HTTP429 is reported without recovery or retry. Explicit `api` uses the API only (up to40seconds); explicit `direct` reads the official index files only (up to50seconds).
- Direct access downloads selected fragments of the secondary index and selected compressed CDXJ blocks, never whole index shards or archived page content. Limits:48 range requests,8MiB total downloaded,1MiB compressed per block and8MiB expanded per block. Responses must honor the exact byte range; changed/truncated indexes, unexpected shard paths and oversized responses fail explicitly. Completed blocks survive a later failure. Collection, source dates, suffix matching and archive block numbering stay the same. SUMMARY identifies `transport`, bytes and range requests, and any API recovery reason. [Common Crawl documents direct CDXJ access](https://www.commoncrawl.org/cdxj-index).
- `includeRootDomain=false` returns only subdomains in domain mode.
- Certificate timeout defaults to25seconds, configurable from5 to60. Response bytes are capped at16MiB.
- HTTP verification checks only the current page, with at most4 concurrent requests, a10second deadline per hostname and a60second budget for the whole page. Completed checks are retained. Names whose checks cannot finish within that budget are still exported with unknown availability and `HTTP_VERIFICATION_BUDGET_EXHAUSTED`; SUMMARY reports the number not completed. Public HTTP/HTTPS destinations only; credentials, private/reserved addresses and unsafe redirects are blocked.
- A source failure with another successful source produces PARTIAL, including an empty PARTIAL result. All requested sources failing causes FAILED.
- Empty successful searches are valid NO_RESULTS. No placeholder rows are added.

### Pagination and changing data

Open `EXPORT_CONTINUATION` in the run key-value store and copy `resumeInput`. The fixed owned snapshot is stable. Certificate results can change between runs. Where the entire collected source window fits, the continuation carries a fingerprint and rejects a changed hostname list. An incomplete source window cannot provide a complete-result fingerprint; SUMMARY and the continuation disclose that limitation. Pagination is not an immutable snapshot of the live certificate service.

The result offset applies to the collected hostname list. Open `COMMON_CRAWL_CONTINUATION` to request the next archive batch **after finishing the current EXPORT_CONTINUATION**. Its `resumeInput` stays empty while the current batch still has undelivered rows, including a stop caused by the charge limit. Once the batch is finished, the next input carries `archiveSeenHostnames`; matching names from earlier batches are excluded before delivery and charging. Keep this generated field unchanged when following the chain. `previouslyDeliveredSkipped` in SUMMARY reports how many unique names were excluded from the current batch. The list remembers up to10,000 names. If adding a completed batch would exceed that bound, the archive continuation stops with `deduplicationLimitReached=true` and no resume input; no remembered names are silently dropped. Narrow the domain search to continue within a smaller scope. After a successful direct read, both result and archive continuations retain `commonCrawlAccess=direct`, avoiding another failed API request. If an automatic run succeeds through the API, automatic recovery remains enabled for its next batch. This is separate from pagination of the current sorted result list. A partial later-page failure resumes at that failed archive page. `hasMoreArchivePages` is not a claim that the remaining archive contains new unique hostnames. The input caps result offset at10000; if that boundary is reached, the Actor reports `paginationLimitReached` rather than producing an invalid resume input.

Example: query the archive alone, without certificate dependency:

```json
{"query":"myshopify.com","useIndex":false,"searchCertificates":false,"searchCommonCrawl":true,"commonCrawlMaxPages":1,"maxItems":20}
```

### Continue a collection safely

1. Open the run's key-value store and read `SUMMARY` and `ERRORS` before using the dataset.
2. If `EXPORT_CONTINUATION.resumeInput` is present, copy that complete input into the next run. This finishes the current sorted result window.
3. After that window is finished, use `COMMON_CRAWL_CONTINUATION.resumeInput` to advance to the next archive block. Keep `archiveSeenHostnames` intact so earlier matches are excluded before delivery and charging.
4. Stop when there is no continuation. A source failure, the offset boundary or the remembered-name limit needs attention; it does not mean the entire Internet has been searched.

You can download each dataset as CSV or JSON. When combining independent searches or replaying an earlier input, deduplicate by `hostname`: only a generated continuation chain carries its own remembered-name history.

### Exports, API and AI agents

Download the default dataset as JSON, CSV, Excel, XML or JSONL through Apify's dataset export. API users pass the same JSON input to the Actor run endpoint; read SUMMARY and ERRORS as well as dataset rows. The output schema links the dataset, diagnostics and continuation for agent workflows. No separate npm client, Python package or verified n8n node is claimed for this new product. Existing generic Apify API integrations can call it by its final Actor identifier after publication.

### Pricing and resource usage

Proposed pricing for this private candidate: **$0.50 per 1,000 unique hostnames delivered**, with no Actor start fee. Apify platform resource usage is charged separately to the user. This rate awaits owner review before public release. A maximum run charge can stop delivery before `maxItems`; inspect `CHARGE_LIMIT_REACHED` and resume with `EXPORT_CONTINUATION`. The intended unit is a unique hostname delivered to the dataset. Source errors, wildcards without concrete hostnames, duplicate names and no-match diagnostics are not results. HTTP verification adds processing time but does not create extra hostname rows.

### FAQ

**Will this find all websites under a suffix?** Only names observed in the enabled sources. Unobserved hosts, wildcard-covered hosts and private names can be absent.

**Does a match prove the website is live or new?** No. Enable HTTP verification for current reachability signals. Neither CT observation nor certificate dates establish a creation date.

**Why did `myshopify.com` return few or no results?** Shopify uses shared infrastructure and wildcard certificates. The owned snapshot has no direct myshopify suffix names. Common Crawl can supply concrete archived storefront names, but only from the selected collection/pages, and any source can be unavailable. An empty result is not the total number of Shopify stores.

**Why not search arbitrary words in crt.sh too?** Contains mode has an explicit owned-index scope. Common Crawl is also domain-scoped; contains mode remains a literal search in our fixed index. Neither source turns this into a complete global domain search engine.

**Is HTTP verification a port scan?** No. It follows a bounded number of ordinary HTTP/HTTPS redirects for returned public hostnames. No port enumeration, login, brute force or private network probing is performed.

**Can later archive batches repeat a hostname?** Source blocks can overlap. Following the generated `COMMON_CRAWL_CONTINUATION.resumeInput` carries up to10,000 remembered hostnames and suppresses these repeats before charging. Starting independent runs, manually dropping the remembered list, or combining separate searches does not share that history. Replaying the same input is a new run and may deliver the same page; this is a continuation guarantee, not global billing idempotency. Current-result page1/page2 are separate from archive batches.

**Why not use Cert Spotter anonymously as a fallback?** Its public documentation limits anonymous access to personal/evaluation use and requests an account for production. It also refused the tested myshopify.com query. This candidate uses Common Crawl and crt.sh instead; no Cert Spotter key or subscription is required.

**What happens if the archive query API is down?** Automatic mode attempts bounded direct access to the same official collection. This does not change to an older month, a cached demonstration list or another provider. If the official data files are also unavailable, the source still reports an explicit failure or retains only completed blocks. No Internet-wide completeness is promised.

# Changelog

This Actor's version history is a separate document: https://apify.com/apivault_labs/domain-subdomain-finder/changelog.md

# Actor input Schema

## `query` (type: `string`):

Domain mode: example.com or a URL. Contains mode: at least 3 ASCII domain characters.

## `mode` (type: `string`):

Automatic mode chooses contains for a word and domain for dotted names or URLs.

## `maxItems` (type: `integer`):

Maximum unique matching hostnames delivered to the dataset.

## `offset` (type: `integer`):

Skip this many sorted matching hostnames; prefer EXPORT_CONTINUATION for the next page.

## `useIndex` (type: `boolean`):

Query the fixed owned CT-domain snapshot. Its primarily registrable-domain coverage is stated in SUMMARY.

## `searchCertificates` (type: `boolean`):

crt.sh can be slow or unavailable. Wildcard patterns are reported in SUMMARY, not invented as individual hosts.

## `includeRootDomain` (type: `boolean`):

In domain mode, include the query hostname itself if observed.

## `verifyHttp` (type: `boolean`):

Checks only returned rows, up to 4 concurrent public HTTP requests. Adds time; a historical name may no longer work.

## `certificateTimeoutSecs` (type: `integer`):

Maximum wall-clock seconds for a crt.sh search. Source timeouts are explicit partial/failure diagnostics.

## `expectedResultFingerprint` (type: `string`):

Optional value supplied by EXPORT_CONTINUATION; rejects changed collected result windows.

## `searchCommonCrawl` (type: `boolean`):

Find archived hostnames independently of certificates; one archive index page by default. Historical observation, not current availability.

## `commonCrawlCollection` (type: `string`):

Fixed monthly archive collection. Only this collection is searched; use COMMON_CRAWL_CONTINUATION for more archive pages.

## `commonCrawlPage` (type: `integer`):

Archive index page, separate from result offset. Different archive batches may repeat hostnames.

## `commonCrawlMaxPages` (type: `integer`):

Read 1 to 5 index blocks. Automatic access: up to20 seconds for the API, then up to50 seconds for direct recovery. Completed blocks are preserved.

## `archiveSeenHostnames` (type: `array`):

Managed by COMMON_CRAWL_CONTINUATION for archive-only domain searches. Keep this list when continuing; remembered names are excluded before delivery or billing. At 10000 remembered names continuation stops explicitly rather than forgetting names.

## `commonCrawlAccess` (type: `string`):

Automatic mode recovers API network/5xx failures by reading bounded ranges from the same official archive index. No fallback on HTTP429. After a direct read, continuations keep direct access; collection and source coverage stay the same.

## Actor input object example

```json
{
  "query": "shopify.com",
  "mode": "auto",
  "maxItems": 20,
  "offset": 0,
  "useIndex": true,
  "searchCertificates": true,
  "includeRootDomain": true,
  "verifyHttp": false,
  "certificateTimeoutSecs": 25,
  "expectedResultFingerprint": "",
  "searchCommonCrawl": true,
  "commonCrawlCollection": "CC-MAIN-2026-43",
  "commonCrawlPage": 0,
  "commonCrawlMaxPages": 1,
  "archiveSeenHostnames": [],
  "commonCrawlAccess": "auto"
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

## `errors` (type: `string`):

No description

## `continuation` (type: `string`):

No description

## `archiveContinuation` (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 = {
    "query": "shopify.com"
};

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

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

```

## MCP server setup

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