I run a visa agency in Bali, and the rest of my week goes into Apify Actors. One of them is about as plain as a scraper gets: you give it website URLs or bare domains, it reads the home page and a handful of contact-looking pages, and it gives back one row per website with every public e-mail, the page each one came from, phone numbers, socials and the postal address.
On 26 November 2026 I ran it on ten open-source and non-profit sites, because they publish contacts generously and nobody minds being scraped by a ten-site test: eff.org, python.org, apache.org, gnu.org, debian.org, wikimedia.org, sqlite.org, postgresql.org, fsf.org and openstreetmap.org.
The run took 79 seconds and returned 47 addresses and 6 phone numbers across 8 websites. Two sites (wikimedia.org and openstreetmap.org) gave nothing and were not charged. This post is about the other numbers: which of those 47 addresses you should actually e-mail, and how you'd know without opening every page by hand.
Every contact carries a source
Each address in the output is tagged with where it was standing on the page:
{ "email": "press@apache.org", "type": "role", "isOwnDomain": true,
"source": "mailto", "sourceUrl": "https://apache.org/foundation/contact" }
There are a few possible values: mailto (an <a href="mailto:…"> link), schema.org (structured data), cloudflare (a decoded data-cfemail address), and text, meaning a string shaped like an e-mail that just appeared in the visible prose. I added the field so buyers could tell a confident contact from a guess. I hadn't really measured how big the difference was until this run:
source addresses real contacts
mailto 41 41
text 6 3
Every one of the 41 mailto addresses is a mailbox the site wants you to use: info@eff.org, security@postgresql.org, press@debian.org, eight addresses off gnu.org's contact page. Someone put each one in an href so a visitor could click it.
The six text addresses split down the middle. Three are real: vp-legal@apache.org and legal-discuss@apache.org from Apache's legal page, and webmaster@debian.org from Debian's footer. The other three are not mailboxes anyone has offered you.
The FAQ that told me who to write to
Two of the junk addresses came from apache.org/foundation/faq:
{ "email": "webmaster@foo.com", "type": "role", "isOwnDomain": false, "source": "text" }
{ "email": "webmaster@toddsbeer.org", "type": "role", "isOwnDomain": false, "source": "text" }
Here's the sentence on the page, tags stripped:
You need to contact the Webmaster for the site. If the site is www.foo.com, for instance, try sending mail to webmaster@foo.com. If it's www.toddsbeer.org, send mail to webmaster@toddsbeer.org. And so on.
The Apache Foundation gets mail from people who saw the default "It works!" page on somebody else's server and think Apache owns that server. The FAQ explains, politely, how to find the real owner, and it uses two made-up sites as examples. My extractor read the instructions and wrote down the examples.
My filters didn't catch them, and the reason is worth spelling out. The placeholder list has example.com, yourdomain.com, test.com and about thirty more, plus local parts like yourname and john.doe. foo.com isn't on it. Worse, both addresses pass the check I apply to every prose address before keeping it, which asks whether the domain exists in DNS:
$ dig +short MX foo.com
0 .
$ dig +short MX toddsbeer.org
10 mail.computer.com.
toddsbeer.org is a registered domain with a working mail exchanger, so nothing about the address is invalid. foo.com is more interesting. 0 . is a null MX (RFC 7505), which is how a domain owner says "this domain accepts no mail at all." The domain exists, so my existence check said yes. A check that read the MX record properly would have dropped it. That one is cheap to fix, and it's on my list.
No DNS rule will fix toddsbeer.org, though. The only signal that it's an example is the sentence around it: "for instance", "if the site is". The structural signal is simpler. It came from text, it's off the site's own domain (isOwnDomain: false), and it came from a FAQ page.
The third junk address is bug-pkgname@gnu.org, found in the text of gnu.org's contact page. It sits on the right domain, so isOwnDomain is true, and it would pass a deliverability check because gnu.org accepts mail. But pkgname is a stand-in for a package name. GNU projects take bug reports at bug-<package>@gnu.org, and this is the pattern, not a real address. (I couldn't reach gnu.org from my server to quote the exact sentence, so I'm going by the address itself. That site also took 75 of the run's 79 seconds.)
The phone number that was a version list
The phones show the same split. Five of the six are genuine. The sixth:
{ "phone": "+19084838281", "formatted": "+1 908 483 8281", "country": "US",
"kind": "fixed_line_or_mobile", "source": "text",
"sourceUrl": "https://www.postgresql.org/about/featurematrix/" }
The feature matrix is a big table comparing PostgreSQL releases. Strip the tags and the column header reads:
… 19 18 17 16 15 14 13 12 11 10 9.6 9.5 9.4 9.3 9.2 9.1 9.0 8.4 8.3 8.2 8.1 …
Take the tail 9.0 8.4 8.3 8.2 8.1, keep only the digits, and you get 9084838281: ten digits, and in the North American plan, area code 908 (New Jersey) is real. libphonenumber says the number is valid because it is valid. It just belongs to a table header, and the header repeats 27 times down that page.
The real phones need a footnote of their own. EFF's contact page gave three numbers, all typed fixed_line_or_mobile:
+1 415 436 9333 "Phone:"
+1 415 436 9993 "Fax:"
+1 510 243 8020 "Signal Number … Text via Signal only."
Only one of them will pick up if you call. The page labels the other two clearly, but the label sits next to the number, and the output schema has no field for it. If you're building a calling list, source: "tel" (a clickable tel: link) is much stronger evidence than text for the same reason mailto beats text.
The one contact that would have been filtered
sqlite.org returned a single address, from the support page:
{ "email": "drh@hwaci.com", "isOwnDomain": false, "source": "mailto",
"sourceUrl": "https://sqlite.org/support.html" }
That's the real contact for SQLite. It lives on the domain of the company behind it, not on sqlite.org. The Actor has an onlyOwnDomainEmails switch, off by default, and runs like this are why. With it on, SQLite's row would come back with no e-mail at all. Small businesses do the same thing all the time with a gmail.com address. The isOwnDomain flag is worth having, but as a filter it's too blunt to switch on blindly.
What I'd actually do with the output
If you want contacts you can use without checking each one, here's a rule that would have kept every real address from this run and dropped all three fakes:
def trustworthy(e):
if e["source"] in ("mailto", "schema.org", "cloudflare"):
return True
# prose addresses: keep only the site's own domain, and eyeball the rest
return e["isOwnDomain"] and "pkg" not in e["email"]
The last condition is fitted to one GNU template, so don't ship it. The real point is the first branch: a link is a stronger claim than a string. For anything that comes from text, open sourceUrl before you send.
Calling it
The run above, through the API (the sync endpoint returns rows directly and is fine for small lists):
curl -s -X POST \
"https://api.apify.com/v2/acts/lergassy~website-email-extractor/run-sync-get-dataset-items?timeout=240" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domains": ["eff.org", "python.org", "apache.org", "sqlite.org"], "maxPagesPerSite": 6}'
Or in Python, keeping only link-sourced addresses:
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("lergassy/website-email-extractor").call(
run_input={"domains": ["eff.org", "apache.org", "sqlite.org"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
if row.get("type") != "website":
continue # error rows and the run-summary notice
linked = [e["email"] for e in row["emails"] if e["source"] != "text"]
print(row["domain"], row["status"], linked)
Billing is per website where at least one contact was found. This ten-site run charged 8 websites, $0.20, and the two empty sites were free. The Actor is on Apify Store.
When this is the wrong tool
-
You need a specific person. It reads what a site publishes and never guesses
firstname.lastname@. If the site prints no personal address, you get the role inbox or nothing. -
JavaScript-only sites. No browser runs. A site whose home page is an empty JS shell comes back as
no_contacts, which is probably what happened with openstreetmap.org here (it read three pages and found nothing). -
You need the mailbox confirmed. The optional e-mail check works at the domain level. It would have flagged
foo.comonce null MX is handled, but it can't tell you whetherwebmaster@toddsbeer.orgreaches anyone. -
Phone types matter. Fax, Signal-only and switchboard numbers all come back as phones. If you're dialling, filter on
sourceand read the page.
The ten-site run was small on purpose. The ratio it showed, 41 of 41 links real against 3 of 6 prose strings, is the most useful thing I've measured about this scraper in a while, and the first two fixes (honouring null MX, and treating instruction pages with suspicion) both come from it.
Top comments (0)