# crt.sh Certificate Transparency Scraper — SSL Discovery (`compute-edge/crt-sh-certificate-transparency-scraper`) Actor

Discover all SSL/TLS certificates issued for any domain via crt.sh Certificate Transparency logs. Find subdomains, wildcard certs, certificate history, and issuer details.

- **URL**: https://apify.com/compute-edge/crt-sh-certificate-transparency-scraper.md
- **Developed by:** [Compute Edge](https://apify.com/compute-edge) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

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

## crt.sh Certificate Transparency Scraper

**Extract SSL/TLS certificate records from [crt.sh](https://crt.sh) for any domain.** Discover subdomains, wildcard certificates, certificate history, issuers, and validity dates from public Certificate Transparency (CT) logs — no API key required.

### What is Certificate Transparency?

Every publicly trusted SSL/TLS certificate must be logged in a public Certificate Transparency log before browsers will trust it. [crt.sh](https://crt.sh) is a free public search interface over those logs maintained by Sectigo. This Actor queries it programmatically to return structured JSON output ready for security research, subdomain enumeration, and asset discovery workflows.

**Key data fields extracted:**

| Field | Description |
|---|---|
| `commonName` | Certificate Common Name (CN), typically the primary domain |
| `nameValue` | Subject Alternative Names (SANs) — all domains covered by the cert |
| `sanList` | SAN entries parsed into a clean array |
| `issuerName` | Full issuer string (e.g. "Let's Encrypt Authority X3") |
| `notBefore` | Certificate valid-from date (YYYY-MM-DD) |
| `notAfter` | Certificate expiry date (YYYY-MM-DD) |
| `isExpired` | Boolean — true if the certificate has expired |
| `serialNumber` | Certificate serial number |
| `crtshId` | crt.sh internal record ID |
| `crtshUrl` | Direct link to the certificate detail page on crt.sh |
| `queryDomain` | The domain that was queried (useful when running multiple domains) |

### How to Scrape SSL Certificates with This Actor

1. Go to the **Input** tab in Apify Console.
2. Enter one or more domains in the **Domains** field (e.g. `example.com`, `%.example.com`).
3. Optionally filter by issuer, validity date range, or toggle expired certs on/off.
4. Click **Start** and wait for the run to complete (most domains finish in under 30 seconds).
5. Download results as **JSON**, **CSV**, or **XLSX** from the **Dataset** tab.

### Input Configuration

```json
{
  "domains": ["example.com", "%.github.com"],
  "includeExpired": false,
  "deduplicateSubdomains": true,
  "issuedAfter": "2024-01-01",
  "issuerFilter": "Let's Encrypt",
  "maxResultsPerDomain": 500
}
````

**Wildcard prefix queries:** Use `%.example.com` to find all subdomains. crt.sh treats `%` as a SQL LIKE wildcard.

### Pricing

This Actor uses **pay-per-result** pricing. Typical costs:

| Usage | Estimated Cost |
|---|---|
| 100 certificate records | ~$0.30 |
| 500 certificate records | ~$1.50 |
| 2,000 certificate records | ~$6.00 |

Large domains (e.g. `%.google.com`) can return thousands of records — use `maxResultsPerDomain` to control costs.

### Example Output

```json
{
  "crtshId": 12345678,
  "issuerCaId": 183267,
  "issuerName": "C=US, O=Let's Encrypt, CN=R3",
  "commonName": "api.example.com",
  "nameValue": "api.example.com",
  "sanList": ["api.example.com"],
  "entryTimestamp": "2024-06-01T12:34:56",
  "notBefore": "2024-06-01",
  "notAfter": "2024-08-30",
  "isExpired": false,
  "serialNumber": "04abc123def456",
  "queryDomain": "%.example.com",
  "crtshUrl": "https://crt.sh/?id=12345678"
}
```

### Use Cases

- **Security Research**: Discover all subdomains of a target to map attack surface.
- **Asset Inventory**: Audit all SSL certificates issued for your organisation's domains.
- **Competitive Intelligence**: Track when competitors register new subdomains (new product launches, regional expansions).
- **Phishing Detection**: Monitor for look-alike certificates (e.g. `%.paypal-secure.com`).
- **Certificate Expiry Monitoring**: Find certificates nearing expiration across a portfolio of domains.

### Related Actors

- [CISA KEV Scraper](https://apify.com/seatsignal/cisa-kev-scraper) — Known Exploited Vulnerabilities catalog

### FAQ

**Does this require login or an API key?**
No. crt.sh is a free public service. No authentication required.

**How fresh is the data?**
crt.sh ingests CT logs in near real-time (typically within minutes of certificate issuance).

**What does `%.example.com` mean?**
The `%` is a wildcard matching any prefix. `%.example.com` returns certs for all subdomains of `example.com`. You can also query `example.com` (exact) or `%.%.example.com` for deeper nesting.

**Why might some results be missing?**
Pre-certificate SCTs (pre-issuance log entries) are included in crt.sh results. Some very old certificates predate CT logs and will not appear.

### Legal Disclaimer

This Actor queries the publicly available crt.sh interface, which aggregates data from Certificate Transparency logs. Certificate Transparency logs are public by design (RFC 6962). Usage is subject to crt.sh's [terms of service](https://crt.sh/). Please use responsibly and avoid hammering the service with excessive concurrent requests. The Actor includes a 1-second polite delay between domain queries. The data extracted contains no personal information — only technical certificate metadata.

For support or feature requests, contact [seatsignal on Apify](https://apify.com/seatsignal).

# Actor input Schema

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

List of domains to look up in Certificate Transparency logs. Each domain returns all certificates ever issued for it and its subdomains. Examples: 'example.com', '%.example.com' (wildcard prefix), 'sub.example.com'.

## `includeExpired` (type: `boolean`):

If enabled, includes certificates that have already expired. By default only currently-valid certificates are returned.

## `deduplicateSubdomains` (type: `boolean`):

If enabled, collapses multiple certificate records that share the same common\_name + name\_value (SAN) into a single output row, keeping only the most recently issued certificate. Useful for subdomain enumeration.

## `issuedAfter` (type: `string`):

Only include certificates with a not\_before date on or after this date (YYYY-MM-DD). Useful to focus on recently issued certificates.

## `issuedBefore` (type: `string`):

Only include certificates with a not\_before date on or before this date (YYYY-MM-DD).

## `issuerFilter` (type: `string`):

Case-insensitive partial match against the issuer name. Examples: 'Let's Encrypt', 'DigiCert', 'Sectigo'. Leave empty for all issuers.

## `maxResultsPerDomain` (type: `integer`):

Maximum number of certificate records to return per domain. Set to 0 for unlimited. Large domains (e.g. google.com) may have thousands of records.

## Actor input object example

```json
{
  "domains": [
    "example.com"
  ],
  "includeExpired": false,
  "deduplicateSubdomains": false,
  "issuedAfter": "",
  "issuedBefore": "",
  "issuerFilter": "",
  "maxResultsPerDomain": 500
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("compute-edge/crt-sh-certificate-transparency-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("compute-edge/crt-sh-certificate-transparency-scraper").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 '{}' |
apify call compute-edge/crt-sh-certificate-transparency-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=compute-edge/crt-sh-certificate-transparency-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "crt.sh Certificate Transparency Scraper — SSL Discovery",
        "description": "Discover all SSL/TLS certificates issued for any domain via crt.sh Certificate Transparency logs. Find subdomains, wildcard certs, certificate history, and issuer details.",
        "version": "0.1",
        "x-build-id": "uKXDjht8SBXebmhCX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/compute-edge~crt-sh-certificate-transparency-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-compute-edge-crt-sh-certificate-transparency-scraper",
                "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/compute-edge~crt-sh-certificate-transparency-scraper/runs": {
            "post": {
                "operationId": "runs-sync-compute-edge-crt-sh-certificate-transparency-scraper",
                "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/compute-edge~crt-sh-certificate-transparency-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-compute-edge-crt-sh-certificate-transparency-scraper",
                "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",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "List of domains to look up in Certificate Transparency logs. Each domain returns all certificates ever issued for it and its subdomains. Examples: 'example.com', '%.example.com' (wildcard prefix), 'sub.example.com'.",
                        "default": [
                            "example.com"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeExpired": {
                        "title": "Include Expired Certificates",
                        "type": "boolean",
                        "description": "If enabled, includes certificates that have already expired. By default only currently-valid certificates are returned.",
                        "default": false
                    },
                    "deduplicateSubdomains": {
                        "title": "Deduplicate Subdomains",
                        "type": "boolean",
                        "description": "If enabled, collapses multiple certificate records that share the same common_name + name_value (SAN) into a single output row, keeping only the most recently issued certificate. Useful for subdomain enumeration.",
                        "default": false
                    },
                    "issuedAfter": {
                        "title": "Issued After (not_before)",
                        "type": "string",
                        "description": "Only include certificates with a not_before date on or after this date (YYYY-MM-DD). Useful to focus on recently issued certificates.",
                        "default": ""
                    },
                    "issuedBefore": {
                        "title": "Issued Before (not_before)",
                        "type": "string",
                        "description": "Only include certificates with a not_before date on or before this date (YYYY-MM-DD).",
                        "default": ""
                    },
                    "issuerFilter": {
                        "title": "Issuer Filter",
                        "type": "string",
                        "description": "Case-insensitive partial match against the issuer name. Examples: 'Let\\'s Encrypt', 'DigiCert', 'Sectigo'. Leave empty for all issuers.",
                        "default": ""
                    },
                    "maxResultsPerDomain": {
                        "title": "Max Results Per Domain",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Maximum number of certificate records to return per domain. Set to 0 for unlimited. Large domains (e.g. google.com) may have thousands of records.",
                        "default": 500
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
