DEV Community

Alex Spinov
Alex Spinov

Posted on

Find Hidden Emails on Any Website — The Automated Lead Gen Approach

Most websites hide their email addresses. But they're always somewhere in the HTML — in mailto links, contact pages, footer text, or team pages.

Here's how to find them automatically.

Where Emails Hide

  1. mailto: links — highest confidence, verified by the site owner
  2. Contact/About/Team pages — usually contains multiple emails
  3. Footer — often has a general contact email
  4. JavaScript — sometimes emails are loaded dynamically
  5. Obfuscated textuser [at] domain [dot] com patterns

The Automated Approach

A crawler that:

  1. Fetches the homepage
  2. Finds internal links (prioritizes /contact, /about, /team)
  3. Crawls 2-3 levels deep
  4. Extracts emails via regex + mailto: detection
  5. Deduplicates and filters junk (noreply, test domains)

What You Get

{
  "email": "sales@company.com",
  "source": "https://company.com/contact",
  "domain": "company.com",
  "fromMailto": true,
  "phones": ["+1 555-123-4567"],
  "socialLinks": [
    {"platform": "linkedin", "url": "https://linkedin.com/company/..."}
  ]
}
Enter fullscreen mode Exit fullscreen mode

The Lead Gen Pipeline

  1. Google Maps Scraper → find businesses
  2. Email Extractor → get contacts
  3. Email Validator → verify deliverability
  4. Tech Stack Detector → qualify leads

All free on Apify Store.

Custom lead list — $20 for 500 contacts: Order via Payoneer

Top comments (0)