# Check SSL certificate expiry for a list of domains

**Use case:** 

Connects to port 443 on each domain and reads the certificate itself - issuer, validity dates and whether it has already expired. The answer comes from the live handshake rather than from a cached record, which is the only way an expiry date can be trusted.

## Input

```json
{
  "domains": [
    "github.com",
    "stripe.com",
    "cloudflare.com",
    "wikipedia.org",
    "mozilla.org",
    "python.org"
  ],
  "checkRdap": false,
  "checkTls": true,
  "timeoutSecs": 20,
  "maxRetries": 3
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "ok": {
    "label": "Answered",
    "format": "boolean"
  },
  "registered": {
    "label": "Registered",
    "format": "boolean"
  },
  "rdapDomain": {
    "label": "Registration is for",
    "format": "string"
  },
  "registrationLookupError": {
    "label": "Why registration is missing",
    "format": "string"
  },
  "registrar": {
    "label": "Registrar",
    "format": "string"
  },
  "registeredOn": {
    "label": "Registered on",
    "format": "string"
  },
  "domainAgeDays": {
    "label": "Age (days)",
    "format": "integer"
  },
  "expiresOn": {
    "label": "Expires on",
    "format": "string"
  },
  "daysUntilExpiry": {
    "label": "Expires in (days)",
    "format": "integer"
  },
  "dnsProvider": {
    "label": "DNS provider",
    "format": "string"
  },
  "mailProvider": {
    "label": "Mail provider",
    "format": "string"
  },
  "hasMx": {
    "label": "Has MX",
    "format": "boolean"
  },
  "spfStrictness": {
    "label": "SPF",
    "format": "string"
  },
  "dmarcPolicy": {
    "label": "DMARC",
    "format": "string"
  },
  "spoofProtection": {
    "label": "Spoof protection",
    "format": "string"
  },
  "tlsIssuer": {
    "label": "TLS issuer",
    "format": "string"
  },
  "tlsDaysUntilExpiry": {
    "label": "TLS expires in (days)",
    "format": "integer"
  },
  "tlsExpired": {
    "label": "TLS expired",
    "format": "boolean"
  },
  "tlsMatchesDomain": {
    "label": "TLS covers domain",
    "format": "boolean"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Bulk WHOIS & DNS Checker - SSL Expiry, Domain, MX, SPF, DMARC](https://apify.com/neverempty/domain-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/domain-lookup.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/neverempty/domain-lookup.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`).
