See llms.txt for all machine-readable content.

Back to Templates

Send daily domain and SSL expiry reports with Apify and email

Quick overview

This workflow runs daily and checks a configured list of domains for registration and SSL certificate expiry using the Apify Domain Health Monitor Actor, then emails an HTML report via SMTP only when issues are found (or optionally every run).

How it works

  1. Runs every day at 08:00 in your n8n timezone.
  2. Reads your domain list and alert settings, then normalizes the input into a unique set of valid hostnames and a warning window in days.
  3. Sends the domain list to Apify’s Bulk Domain Expiry, SSL & DNS Checker Actor (domain-health-monitor) to fetch RDAP-based registration status/expiry and the live TLS certificate status on port 443.
  4. Classifies results into critical, expiring soon, could not be checked, and healthy buckets, and builds an HTML table report and email subject line.
  5. Sends the report email via SMTP when any domain needs attention, or skips emailing when everything is healthy unless daily reporting is enabled.

Setup

  1. Create an Apify account, get your Apify API token, and configure an HTTP Header Auth credential with Authorization: Bearer <YOUR_APIFY_TOKEN> for the Apify request.
  2. Add an SMTP credential for the Email node and set the sender and recipient addresses.
  3. Update the domains list, warningDays, and sendReportWhenAllOk values in the “Set domains and alert settings” step to match your environment.

Requirements

  • An Apify account and API token (the free plan includes $5 of monthly credit; the Actor costs $1.50 per 1,000 domains checked) and an SMTP account for sending email.

Customization

  • Replace the email node with Slack, Telegram or Discord using the subject and the critical / expiringSoon / couldNotCheck arrays, or change the schedule and the warning window.

Additional info

Tested on self-hosted n8n 2.46.6 with a mixed list (expired certificate, unregistered domain, invalid entry), an all-healthy list (no email sent) and an invalid Apify token (reported as could not check). Registries without public RDAP (.de, .jp, .eu) only get the SSL check.