# Check SSL certificate and domain expiry dates in bulk

**Use case:** 

Check a list of websites for SSL certificate expiry and domain registration expiry in one run. For each host you get the certificate issuer, validity and days left, the domain registrar and expiration date from RDAP, and warning codes when anything expires within 30 days or is already invalid (see expired.badssl.com in the example).

## Input

```json
{
  "domains": [
    "github.com",
    "stripe.com",
    "shopify.com",
    "expired.badssl.com",
    "wikipedia.org"
  ],
  "checkRdap": true,
  "checkSsl": true,
  "checkDns": false,
  "checkEmailSecurity": false,
  "dnsRecordTypes": [
    "A",
    "AAAA",
    "MX",
    "NS",
    "TXT",
    "CAA"
  ],
  "expiryWarningDays": 30,
  "maxConcurrency": 5,
  "timeoutSecs": 15
}
```

## Output

```json
{
  "domain": {
    "label": "domain",
    "format": "string"
  },
  "status": {
    "label": "status",
    "format": "string"
  },
  "warnings": {
    "label": "warnings",
    "format": "array"
  },
  "expirationDate": {
    "label": "expirationDate",
    "format": "string"
  },
  "daysUntilDomainExpiry": {
    "label": "daysUntilDomainExpiry",
    "format": "integer"
  },
  "sslNotAfter": {
    "label": "sslNotAfter",
    "format": "string"
  },
  "daysUntilSslExpiry": {
    "label": "daysUntilSslExpiry",
    "format": "integer"
  },
  "sslValid": {
    "label": "sslValid",
    "format": "boolean"
  },
  "registrar": {
    "label": "registrar",
    "format": "string"
  },
  "hasSpf": {
    "label": "hasSpf",
    "format": "boolean"
  },
  "hasDmarc": {
    "label": "hasDmarc",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Bulk Domain Expiry, SSL & DNS Checker Actor is ready to run with the inputs already set for "Check SSL certificate and domain expiry dates in bulk". [Sign up or log in](https://console.apify.com/create-task-from-example/Hgj4Cd2DMGxqTehon) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check SSL certificate and domain expiry dates in bulk" task

The Bulk Domain Expiry, SSL & DNS Checker Actor will start running based on the input automatically. You can also change all the input fields, like domains, check registration (rdap), and more, to match your specific use case.

### 3. Receive the "Check SSL certificate and domain expiry dates in bulk" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as domain, status, warnings, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check SSL certificate and domain expiry dates in bulk" task via API](https://apify.com/echolab/domain-health-monitor.md).

## FAQ

### What does the bulk SSL and domain expiry check return?

The bulk SSL and domain expiry check returns one row per host with certificate validity, issuer and expiry date, domain registrar and expiration date, days left, and warning codes for anything expiring soon.

### Is this a WHOIS lookup?

The bulk SSL and domain expiry check uses RDAP, the registry-run successor to WHOIS, so registration and expiry dates come in a structured format without scraping WHOIS text.

### How many domains can I check in one run?

The domain health check accepts up to 5,000 domains or URLs per run. Hosts are normalized and deduplicated, and invalid lines are skipped without being billed.

### Can I get alerts before a certificate expires?

Schedule the SSL and domain expiry task daily in Apify and filter rows with warning codes; send them to Slack, email or a webhook with Apify integrations. Change expiryWarningDays to warn earlier.

## About this Actor

This example demonstrates how to use [Bulk Domain Expiry, SSL & DNS Checker](https://apify.com/echolab/domain-health-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/echolab/domain-health-monitor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/echolab/domain-health-monitor.md

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`).
