Find Emails, Phone Numbers and Social Links from a List of Company Websites (Lead List with Python)
A lot of B2B prospecting starts with a plain list of websites. You export companies from a directory, a trade show list or a Google Maps search, and now you need a way to reach them: a general email address, a phone number, and maybe the LinkedIn or Instagram profile.
Doing that by hand means opening every website, scrolling to the footer, finding the contact page, and on European sites the imprint ("Impressum") page as well. Writing your own scraper sounds quick until you meet the details: a simple email regex also catches image names like logo@2x.png, some sites hide addresses behind Cloudflare email protection or write name [at] company [dot] com, and phone patterns match order numbers, tax IDs and dates.
This tutorial uses an Apify Actor that handles those cases and returns one row per website.
Disclosure: I built and maintain this Actor. It is a paid tool ($5.00 per 1,000 results, where a result is a website with at least one contact found). I've tried to describe what it can't do as plainly as what it can.
What you can do with the data
- Build an outreach list. For example, a packaging supplier contacting specialty coffee roasters, which is the example used below.
- Enrich a CRM. Add a general email, phone and social links to company records that only have a domain.
- Clean up a lead list. Find websites that are down, blocked or show no contact details at all, which costs nothing.
Step 1: Set up a run in Apify Console
Open Website Contact Scraper and click Try for free. The input form has these fields:
| Field | What it does |
|---|---|
Websites (websites) | Required. Full URLs or bare domains like example.com. You can paste a whole spreadsheet column at once. |
Max pages per website (maxPagesPerWebsite) | Default 10. Contact, about, imprint and team pages are opened first. The price doesn't change with this number. |
Max link depth (maxDepth) | Default 2. 0 reads the homepage only, which is the fastest. |
Country for phone numbers (defaultCountry) | Optional code like US or GB for local numbers without a country prefix. Empty means it is detected from the domain and page language. |
Save websites without contacts (free) (includeEmptyResults) | Default on. Saves a free row with a status for websites that failed or showed no contacts. |
Websites in parallel (maxConcurrency) | Default 10. Pages of one website are always read one after another. |
Proxy (proxyConfiguration) | Optional. Only worth trying if many websites come back as blocked. |
No login or API key is needed.
Step 2: Run it and export
Click Start. When the run finishes, open the Output tab and export as CSV, Excel or JSON. There are also Overview and Social profiles tables in the Output tab.
For this article I gave it the websites of 12 well-known specialty coffee roasters in the US and Europe, with default settings:
{ "websites": [ "bluebottlecoffee.com", "intelligentsia.com", "stumptowncoffee.com", "counterculturecoffee.com", "onyxcoffeelab.com", "vervecoffee.com", "lacolombe.com", "squaremilecoffee.com", "origincoffee.co.uk", "coffeecollective.dk", "the-barn.de", "timwendelboe.no" ] } The run took about 24 seconds, and all 12 websites came back with status ok. Here is one record, with some fields removed and the page lists shortened (values unchanged):
{ "website": "https://origincoffee.co.uk/", "url": "https://www.origincoffee.co.uk/", "domain": "origincoffee.co.uk", "status": "ok", "companyName": "Origin Coffee", "primaryEmail": "info@origincoffee.co.uk", "primaryPhone": "+441326574337", "emails": ["info@origincoffee.co.uk", "wholesale@origincoffee.co.uk", "technical@origincoffee.co.uk"], "ownDomainEmails": ["info@origincoffee.co.uk", "wholesale@origincoffee.co.uk", "technical@origincoffee.co.uk"], "phones": ["+441326574337"], "linkedIn": ["https://www.linkedin.com/company/origin-coffee-roasters"], "facebook": ["https://www.facebook.com/origincoffeeroasters"], "instagram": ["https://www.instagram.com/origincoffeeroasters"], "youtube": ["https://www.youtube.com/channel/UCYrSCAvUq_cJQRAxwW0E02g"], "socialCount": 4, "language": "en", "contactPageUrl": "https://www.origincoffee.co.uk/pages/contact-us", "emailsFoundOn": [ { "email": "technical@origincoffee.co.uk", "pageUrls": ["https://www.origincoffee.co.uk/pages/wholesale-coffee"] } ], "pagesCrawledCount": 8, "error": null, "scrapedAt": "2026-11-02T13:28:51Z" } The phone number is already in international format, and emailsFoundOn tells you which page each address came from, which is handy when you want to check the context.
A few things stood out across the 12 rows:
- Some addresses on the websites contain typos. Onyx Coffee Lab's support page lists
info@onyxcoffelab.com(missing an "e") next to the correctinfo@onyxcoffeelab.com, and Counter Culture Coffee shows two addresses oncounterculturecoffe.com. The Actor keeps addresses as the website shows them and doesn't verify mailboxes. The Python step below flags these. -
ownDomainEmailscan be empty. Intelligentsia's website isintelligentsia.com, but its emails are onintelligentsiacoffee.com, soownDomainEmailswas empty.primaryEmailstill pickedcustomersupport@intelligentsiacoffee.com. - Chains list many phone numbers. Verve Coffee Roasters returned 18, mostly for individual cafes.
primaryPhoneis the most frequent one. - Social links are whatever the website links to. LinkedIn showed up on only 3 of the 12 sites, and one site linked to an X account whose handle doesn't match the company name. Check them before use.
Step 3: Build a clean lead list with Python
Install the official client and pandas:
pip install apify-client pandas Run the Actor on your list, for example a CSV export with a website column:
from difflib import SequenceMatcher from apify_client import ApifyClient import pandas as pd client = ApifyClient("YOUR_APIFY_TOKEN") websites = pd.read_csv("roasters.csv")["website"].dropna().tolist() run = client.actor("pipiagent/website-contact-scraper").call(run_input={ "websites": websites, "maxPagesPerWebsite": 10, }) items = list(client.dataset(run.default_dataset_id).iterate_items()) df = pd.DataFrame(items) print(df["status"].value_counts()) # ok, noContacts, unreachable, blocked ok = df[df["status"] == "ok"].copy() Now pick the columns you want for outreach. This example also looks for a wholesale address, since that's the right inbox for a supplier, and flags emails whose domain is almost, but not exactly, the website's domain:
def pick(emails, word): """First email whose part before the @ contains the word, e.g. 'wholesale'.""" return next((e for e in emails if word in e.split("@")[0]), None) def first(links): return links[0] if links else None def likely_typos(row): """Emails whose domain name is almost, but not exactly, the website's.""" site = row["domain"].split(".")[0] found = [] for email in row["emails"]: name = email.split("@")[1].split(".")[0] if name != site and SequenceMatcher(None, name, site).ratio() > 0.9: found.append(email) return found leads = pd.DataFrame({ "company": ok["companyName"], "website": ok["url"], "email": ok["primaryEmail"], "wholesale_email": ok["emails"].apply(lambda e: pick(e, "wholesale")), "phone": ok["primaryPhone"], "linkedin": ok["linkedIn"].apply(first), "instagram": ok["instagram"].apply(first), "check_these": ok.apply(likely_typos, axis=1), }) leads.to_csv("leads.csv", index=False) print(leads["wholesale_email"].notna().sum(), "of", len(leads), "have a wholesale address") print(leads.loc[leads["check_these"].str.len() > 0, ["company", "check_these"]].to_string(index=False)) On my 12 roasters, this prints:
5 of 12 have a wholesale address company check_these Onyx Coffee Lab [info@onyxcoffelab.com] Counter Culture Coffee [hr@counterculturecoffe.com, retail@counterculturecoffe.com] The typo check compares only the name part of the domain, so lacolombe.net on the lacolombe.com website isn't flagged, and neither is a clearly different domain like intelligentsiacoffee.com.
Before you send anything, remember that business contact details can still be personal data, for example a named employee's address. Use generic company addresses where you can, have a legitimate reason under the GDPR and similar laws, and follow anti-spam rules such as CAN-SPAM.
What it costs
You pay $5.00 per 1,000 websites with contacts ($0.005 per website). A website counts when at least one email, phone number or social profile was found. Websites that were unreachable, blocked or had no contacts are free, and reading more pages per website doesn't cost more. There is no start fee and no monthly rental.
- My 12-website test, all with contacts: $0.06.
- 500 websites: if 85% have contacts (the share in the README's tests on about 110 company websites), about 425 are charged, so about $2.13.
- 10,000 websites at the same share: about $42.50.
The share depends on your list. You can also set a maximum charge per run in the run options, and the Actor stops when it reaches that amount.
Limitations
- Some websites block automated visitors. In the README's tests about 8% of websites answered with a bot check or "access denied". They come back as
blockedand are free. - JavaScript-only websites give fewer results. The Actor reads the HTML the server sends and doesn't run a browser. Those sites come back as
noContactswith a note inerror. - It reads contact-like pages, not the whole website. Emails that appear only in blog posts or deep product pages can be missed.
- Emails of other companies can appear, for example the web agency named on an imprint page.
ownDomainEmailsfilters those out, but check rows where it's empty, as in the Intelligentsia case. - Emails are not verified, and typos on the website are kept as they are.
- Phone numbers are read carefully to skip order numbers and tax IDs. A
.comwebsite with local numbers from another country may need Country for phone numbers. - One row per website, not one row per email.
- Speed. The README plans for about 10 to 15 websites per minute. My 12 websites finished faster, but large lists with slow sites take longer.
Related tools
If you only need email addresses, Website Email Extractor does the same crawl and returns the same fields, but only charges for websites where an email was found. If your prospects are companies that are hiring, Career Site Jobs Scraper lists their open roles straight from their career sites.
If you want to try it on your own list, the Website Contact Scraper store page has the input form and more examples. If something doesn't work the way this article says, open an issue there and I'll look into it.