API to Find Contact Emails on Any Website

Extract contact emails from any website using WebCrawler Agent API. Finds emails on contact pages, footers, about pages, and team sections.

Written byAndrii
Published on

How to Find Contact Emails on Any Website

You need an email address for a company. A sales contact, a support inbox, a general info@ address. It's somewhere on their website, but where exactly depends on the site.

Some companies put it on a /contact page. Some stick it in the footer. Some hide it behind a contact form with no visible email at all. Others spread different emails across different pages: sales on the pricing page, support in the docs, press inquiries on the about page.

If you need contact emails for one company, you browse around for 30 seconds and find it. If you need them for 200 companies, that's a different story.

WebCrawler Agent does the browsing for you. Point it at a website, tell it what emails to look for, and it comes back with whatever it finds.

Quick note: the agent only finds emails that are publicly visible on the website. It doesn't scrape private databases, guess email patterns, or pull from third-party tools. If the email isn't on the site, it won't be in the result.

How it works

curl --request POST \
  --url https://api.webcrawlerapi.com/v1/agent \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --data '{
    "prompt": "Find all contact email addresses on this website. Check the contact page, about page, footer, team page, and any support or help sections. For each email return the address and what it seems to be used for.",
    "urls": ["https://example-company.com"],
    "max_spend_usd": 0.5
  }'

The agent starts at your URL, reads the page, and follows links to places where contact info usually lives. It checks the footer, looks for a contact page, scans the about section. When it's done, you get JSON.

  1. Send a POST with your prompt, seed URL, and budget.
  2. The agent browses the site looking for email addresses.
  3. Poll for the result. When status is done, you get your emails.

Where emails end up on websites

Every site is different. I've seen emails in all of these places:

  • Contact page. The obvious one. /contact, /contact-us, /get-in-touch. Usually has a general inbox like info@ or hello@.
  • Footer. Many sites put an email in the footer that shows up on every page. Easy to miss if you're only looking at the main content.
  • About page. Sometimes has team member emails or a general company email mixed in with the company story.
  • Team or leadership page. Individual emails for founders, executives, or department heads. These are gold for outreach if they're listed.
  • Support or help section. Support@ or help@ addresses, sometimes buried in a FAQ or docs page.
  • Privacy policy or legal pages. A data protection officer email or legal contact. Not useful for sales, but sometimes the only email on the entire site.
  • Embedded in contact forms. Some sites don't show the email at all, they just have a form. The agent can't extract an email that doesn't exist on the page.

That last point matters. If a company only uses a contact form with no email address visible anywhere, you'll get an empty result. That's expected.

Writing a good prompt

Be specific about what types of emails you want. "Find emails" works, but telling the agent to categorize them saves you sorting time later.

Find all contact email addresses on this website.
Check: contact page, about page, footer, team page, support section, privacy policy.

For each email return:
- "email": the email address
- "purpose": what it's for (e.g. "general contact", "sales", "support", "press", "legal", "personal")
- "found_on": which page you found it on
- "person_name": the person's name if the email is associated with a specific person, otherwise null

Asking for purpose is the useful part. When you're doing outreach, there's a big difference between support@company.com and the CEO's direct email.

Prompt template

Find all contact email addresses on {company_name}'s website at {website_url}.

Check the contact page, about page, footer, team page, support docs, and legal pages.

For each email return:
- "email": the email address
- "purpose": what it appears to be used for (e.g. "general", "sales", "support", "press", "hiring", "legal", "personal")
- "found_on": the page where you found it
- "person_name": name of the person if associated with a specific individual, otherwise null

Only include actual email addresses. Don't include contact form URLs or phone numbers.

That last line keeps the output clean. Without it, the agent might include a /contact URL or a phone number as a "contact method," which isn't what you asked for.

What you won't get

The agent finds emails that are visible on the website. It won't:

  • Guess email patterns (like firstname@company.com)
  • Pull emails from WHOIS records or DNS
  • Access emails behind login walls
  • Extract emails from PDFs or images (unless the text is selectable)

If you need email pattern guessing or enrichment, that's a different kind of tool. This is strictly "what's on the website."

Wrapping up

Email extraction is one prompt away. Run it across a list of target companies and you'll have a structured contact sheet in minutes.

Same API works for everything else on those websites: customer lists, pricing, job postings, team bios. Change the prompt, get different data.

The output is JSON, so pipe it into your CRM, a spreadsheet, or whatever outreach tool you're using.

Grab an API key and try it on one site. Full Agent API docs are here.

The same agent also handles other use cases: finding a company website by name, extracting SaaS pricing, or finding customers of a SaaS company.


About the Author

Andrii Mazurian
Andrew Mazurian@andriixzvf

Founder, WebCrawlerAPI · 🇳🇱 Netherlands

Engineer with 15 years of experience in APIs, big data, and infrastructure. Founded WebCrawlerAPI in 2024 with a single goal: to build the best data API, and have been shipping it every day since.