Pulling contact details out of business websites sounds simple, but naive extraction returns junk: order numbers as "phones", share buttons as "social profiles", image@2x.png as an "email", and crawling whole sites is slow and expensive.
So I built a small extractor that does one thing carefully, and ran it on 350 real small-business websites to see how often it actually finds something.
What it does
For each website you give it, it reads the homepage plus up to N contact/about/support pages on the same site, and returns one row:
{ "website": "https://www.djangoproject.com/", "emails": ["conduct@djangoproject.com"], "phones": [], "socials": { "github": ["https://github.com/django"], "linkedin": ["https://www.linkedin.com/company/django-software-foundation"], "x_twitter": ["https://x.com/djangoproject"] }, "status": "ok", "pages_checked": ["https://www.djangoproject.com/", "https://www.djangoproject.com/contact/foundation/"] } The rules that keep the output clean
- Phones only from
tel:links and schema.org data. Scanning page text for digit runs gives you order numbers, dates and prices. Structured sources are boring but correct. - Emails:
mailto:links, schema.orgemail, and visible text, minus asset names (logo@2x.png), placeholders (name@example.com) and tracker addresses. - Social links: profile URLs only.
facebook.com/sharer,x.com/intent/tweet,instagram.com/p/<post>and GitHub system pages like/sponsorsare dropped. - Contact pages first: when choosing which extra pages to read, "contact" beats "about" beats "team".
- robots.txt is respected, and obfuscated emails (
name [at] domain) are deliberately not decoded. If a site hides its address, it stays hidden.
Safety, because the input is user-supplied URLs
Fetching arbitrary URLs on a cloud worker is an SSRF risk, so every request, including each redirect hop, must resolve to a public IP. Loopback, private ranges, link-local (hello, 169.254.169.254 metadata), CGNAT and IPv4-mapped IPv6 are blocked, as are non-web ports. Pages are size-capped, redirects limited, and each site has a hard deadline so one slow server can't stall a run.
Real numbers: 350 small-business websites
I pulled 350 business websites listed in OpenStreetMap for places named Manchester (UK and US; shops, offices and craft businesses), with no cherry-picking:
- 62% returned at least one contact.
- 40% had an email, 44% a phone number, 50% at least one social profile.
- 25% were unreachable or not HTML (dead domains are common in real lists).
- On Apify, 100 of those sites took 46 seconds and about $0.003 of compute.
Try it
It's published as an Apify Actor (free during launch; you only pay Apify's small platform usage):
https://apify.com/itaycohen_automation/website-contact-social-links-extractor
Paste domains one per line and export to CSV, JSON or Google Sheets, or call it from n8n, Make or Zapier.
Please use it responsibly: respect anti-spam and data-protection rules (GDPR, CAN-SPAM) for whatever you do with the results.


