Extract Unique Emails from Websites Instantly via API
Automate website email extraction, efficiently retrieving unique contact information in seconds, thereby drastically accelerating lead generation and market research.
Manually searching for email addresses on websites is a time-consuming and tedious process for lead generation and data collection. This workflow transforms n8n into a powerful email scraping API, instantly extracting and returning unique email addresses from any specified URL.

Documentation
Build Your Own Website Email Scraper API with n8n
This n8n workflow empowers you to create a custom email extraction API endpoint. It allows you to provide any website URL and instantly receive a list of all unique email addresses found on that page, making lead generation, market research, and contact data collection remarkably efficient.
Key Features
- Instant Email Extraction: Quickly scan any webpage to identify and collect email addresses.
- Duplicate Removal: Automatically filters out redundant email entries, providing a clean list of unique contacts.
- API-Enabled Access: Integrate this workflow into other applications or scripts via a simple webhook call.
- Customizable: Adapt the email regex or add more processing steps to suit specific needs.
How It Works
The workflow begins with a webhook that listens for incoming HTTP GET requests, expecting a `Website` query parameter containing the URL to be scraped. It then uses an HTTP Request node to fetch the content of this specified website. Next, a Set node employs a regular expression to parse the entire page content and extract all potential email addresses. These addresses are then split into individual items by the Split Out node. An If node checks if any emails were successfully extracted. If emails are found, the Remove Duplicates node ensures that only unique email addresses are returned. Finally, the Respond to Webhook node sends the collected, unique email addresses back as the API response.