Find emails from a company website in Zapier with Webhooks
Zapier handles one record per Zap run, so the natural design is: a new row appears (a sheet, a CRM record, a form), Zapier looks up that company's site, and the email is written back. Zapier's own Apify integration can start an Actor run; the Webhooks by Zapier action lets you call the sync endpoint and get the answer in the same step.
Use your own token. Create an API token in Apify under Settings, Integrations, and put it in the tool's secret or credential store. Never paste it into a shared sheet or a public workflow. The examples say YOUR_APIFY_TOKEN; replace it. Sending the token in the Authorization: Bearer header is safer than putting it in the URL, because URLs end up in logs.
Zap: three steps
- Trigger: New Spreadsheet Row, New Company in HubSpot, or similar, providing a website.
- Action: Webhooks by Zapier, Custom Request. Webhooks by Zapier is a premium app, so check that your plan includes it. Method POST, URL
https://api.apify.com/v2/acts/datagleaner~website-contact-details-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=0.05&fields=domain,bestEmail,status, data pass-through off, Data:
Headers:{"websites": ["<website from step 1>"], "maxPagesPerSite": 4}Authorization=Bearer YOUR_APIFY_TOKENandContent-Type=application/json. - Action: update the row or record with the email from step 2's response. Zapier shows the first item of a JSON array as
0 Best Email; pick that.
Equivalent call and the real response:
curl -X POST "https://api.apify.com/v2/acts/datagleaner~website-contact-details-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1&fields=domain,bestEmail,status" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"websites":["basecamp.com"],"maxPagesPerSite":4}'[{"domain": "basecamp.com", "bestEmail": "jason@basecamp.com", "status": "ok"}]
Handle the empty case
Roughly a third to a half of small-business sites publish no email, and then bestEmail is null. Add a Filter step (continue only if Best Email exists) so empty results do not overwrite a column or trigger an outreach step. Each Zap run is one task on your Zapier plan, so for a list of hundreds, batching in Make, n8n, a script or Google Sheets is cheaper than one Zap run per row.
What comes back
A JSON array with one object per site. Output order is not guaranteed to match input order (in our test, sitemaps.org came back before mozilla.org), so always match rows on domain, never on position. A real response for three sites, with fields=domain,bestEmail,status,failureReason:
[
{"domain": "basecamp.com", "bestEmail": "jason@basecamp.com", "status": "ok", "failureReason": null},
{"domain": "sitemaps.org", "bestEmail": null, "status": "noContacts", "failureReason": "no_contact_found"},
{"domain": "mozilla.org", "bestEmail": "trademark-permissions@mozilla.com", "status": "ok", "failureReason": null}
]
Without fields each object is large (around 60 keys: every email with the page it was found on and a kind, phones, 14 social networks, contact-form URLs, pages crawled). Ask only for what you need. A site that publishes no email still returns a row, with bestEmail: null. Junk input such as "not a site" returns a row with status: "invalidUrl" instead of failing the call.
What it costs
The Actor charges $0.002 for each site where an email is found and nothing for sites without one. 1,000 sites with 600 hits is about $1.20, and a 4-site test is under a cent. Apify's free plan includes monthly credit. The maxTotalChargeUsd query parameter in the examples is a hard cap on what one call can spend: the run stops when it is reached, so a typo cannot cost more than you set. Expect an email on roughly half to two-thirds of small-business sites and less on large brands; in our five-site test three sites gave one.
Try it: Website Contact Details Scraper on Apify. $0.002 per site with an email, nothing for sites without. The Apify free plan includes monthly credit, so a test run costs nothing out of pocket.
Related guides
- Find emails from a website list in Clay with an HTTP API column
- Clay: find a contact email per row with the Run Apify Actor action
- Find emails from a list of websites in n8n with Apify
- Find emails from a website list in Make (formerly Integromat)
- Find emails from a website list in Google Sheets (Apps Script)
- Find emails from company websites in Airtable (automation script)