π Send domain expiry and WHOIS change alerts by email with Apify
β‘ 2 views Β· π SecOps & Security Automation
Description
Quick Overview
This workflow runs every Monday, checks a list of domains with the Apify Domain Expiry & WHOIS Monitor actor for expiry risk and WHOIS/RDAP changes, and sends a plaintext email via SMTP only when a domain needs attention or has changed.
How it works
- Runs every Monday at 9:00 on a schedule.
- Loads a comma-separated domain list, an alert email address, and an expiry warning threshold (in days).
- Calls the Apify API to run the Domain Expiry & WHOIS Monitor actor with change tracking enabled and returns only changed or alert-worthy domains.
- Builds a single email subject and plaintext body summarizing expired, expiring soon, unregistered, lookup-failed, or changed domains, and stops the workflow if there are no results.
- Sends the summary email to the configured recipient using SMTP.
Setup
- Create an Apify API token and add an HTTP Header Auth credential that sends
Authorization: Bearer <YOUR_APIFY_TOKEN>. - Configure an SMTP credential for the email account used to send alerts.
- Update the domain list, recipient email address, and
expiryWarningDaysvalues in the workflowβs input configuration, and adjust the schedule time if needed.
π Nodes Used
Send Email, HTTP Request, Schedule Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File