## How to Scrap Emails from Websites
This workflow shows how to quickly build an Email scraping API using n8n.
Email marketing is at the core of most marketing strategies, be it content marketing, sales, etc. As such, being able to find contacts in bulk for your business on a large scale is key. There are available tools available in the market that can do this, but most are premium; why not build a custom one with n8n?
## Usage
The workflow gets the data from a website and performs an extraction based on the data around on the website.
1. Copy the webhook URL to your browser.
2. Add a query parameter e.g., ?Website=https://mailsafi.com. This should give you a URL like this {{$n8nhostingurl/webhook/ea568868-5770-4b2a-8893-700b344c995e?Website=https://mailsafi.com}}.
3. Click on the URL and wait for the extracted email to be displayed. This will return the email address on the website, or if there is no email, the response will be workflow successfully executed.
**Make sure to use HTTP:// for your domains**
Otherwise, you may get an error.
Platform
n8n
Category
Data & Analytics
Price
Free
Creator
Zacharia Kimotho
if
set
webhook
splitOut
stickyNote
httpRequest
removeDuplicates
respondToWebhook
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.