Apify example task · whoareyouanas/website-link-scraper

Extract public contacts and links

Extract public emails, telephone links, social links, and internal/external URLs from any website. Export page records as CSV or JSON.

Actor
Website Email Extractor & Contact Scraper
Result limit
Set by the input
Estimated cost
Per result, see pricing
Run options
1 GB memory · 300 s timeout

Example updated 2026-09-10 · actor build 0.1.10 · runs in your own Apify account

01 / About the actor

Website Email Extractor & Contact Scraper

Crawl supplied website seeds to collect published emails, phone numbers, social links, and page references. Use full page records or an email-focused mode for contact research and link inventories.

Define the crawl

Control seed URLs, depth, page budget, same-domain behavior, and discovered-link patterns.

Choose extraction fields

Enable email, phone, social, link, image, or file-reference extraction as needed.

Review summaries

Use seed and run summaries to understand crawled pages, failures, and extracted contacts.

02 / Input

The exact input this example runs.

startUrls is required. Include/exclude patterns apply to discovered links, not the initial seeds. Use the final canonical hostname; maxPages bounds crawl work, not the number of extracted email rows.

input.json · website-link-scraper-task
{
  "extractEmails": true,
  "extractFiles": false,
  "extractImages": false,
  "extractLinks": true,
  "extractPhones": false,
  "extractSocial": true,
  "includeSubdomains": false,
  "sameDomainOnly": true,
  "startUrls": [
    {
      "url": "https://www.whoareyouanas.com/"
    }
  ]
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat it controls
extractEmailsChange thistrueExtract email addresses from page content and mailto links.
extractFilesChange thisfalseExtract downloadable file links such as PDFs, docs, and archives.
extractImagesChange thisfalseExtract image URLs from page markup and metadata.
extractLinksChange thistrueExtract and classify internal and external page links.
extractPhonesChange thisfalseExtract phone numbers from tel: links. Plain-text phone numbers are not currently extracted.
extractSocialChange thistrueExtract profile links for major social platforms.
includeSubdomainsChange thisfalseTreat subdomains as internal when same-domain crawling is enabled.
sameDomainOnlyChange thistrueIf enabled, crawler follows only links from the same domain as each seed URL.
startUrlsChange thishttps://www.whoareyouanas.com/Seed URLs to crawl.
Other inputs you can add (8)
Deployed actor input fields, types, defaults, and descriptions
FieldType / requiredDefaultPurpose
modestring"full"Use full for page-wise link intelligence or emails_only for one row per email.

Options: full, emails_only

crawlerTypestring"http"HTTP is cheaper and faster. Browser handles heavy JS websites.

Options: http, browser

maxPagesinteger200Maximum pages across the entire run, shared by all start URLs. Concurrent crawling may slightly exceed this limit.

Minimum: 1

maxDepthinteger2How deep to follow links from each start URL.

Minimum: 0

includeUrlGlobsarray[]If non-empty, only URLs matching at least one glob are crawled.
excludeUrlGlobsarray[]URLs matching any glob are skipped.
maxConcurrencyinteger25Maximum number of parallel requests while crawling.

Minimum: 1

requestTimeoutSecsinteger20Timeout in seconds for each page request.

Minimum: 1

03 / Make it yours

Change these fields for your own research.

  1. 01 · startUrls

    Start URLs

    Seed URLs to crawl.

    Example: https://www.whoareyouanas.com/

  2. 02 · extractLinks

    Extract links

    Extract and classify internal and external page links.

    Example: true

  3. 03 · extractEmails

    Extract emails

    Extract email addresses from page content and mailto links.

    Example: true

  4. 04 · extractPhones

    Extract phone numbers

    Extract phone numbers from tel: links. Plain-text phone numbers are not currently extracted.

    Example: false

  5. 05 · extractSocial

    Extract social links

    Extract profile links for major social platforms.

    Example: true

  6. 06 · extractImages

    Extract image URLs

    Extract image URLs from page markup and metadata.

    Example: false

  7. 07 · extractFiles

    Extract file URLs

    Extract downloadable file links such as PDFs, docs, and archives.

    Example: false

  8. 08 · maxPages

    Max pages

    Maximum pages across the entire run, shared by all start URLs. Concurrent crawling may slightly exceed this limit.

  9. 09 · sameDomainOnly

    Same domain only

    If enabled, crawler follows only links from the same domain as each seed URL.

    Example: true

  10. 10 · includeSubdomains

    Include subdomains

    Treat subdomains as internal when same-domain crawling is enabled.

    Example: false

Run it in three steps

  1. Open the example on Apify and select Try for free to copy it into your Apify account.
  2. Replace the sample values above with your own target and keep the limit small.
  3. Start the run, then export the dataset as JSON, CSV or Excel.

04 / Output

What the results table shows.

Columns in the “Overview” view

recordType

recordType

seedUrl

seedUrl

pageUrl

pageUrl

url

url

email

email

emails

emails

phoneNumbers

phoneNumbers

socialLinks

socialLinks

files

files

images

images

internalLinks

internalLinks

externalLinks

externalLinks

pagesCrawled

pagesCrawled

failedRequests

failedRequests

uniqueEmails

uniqueEmails

A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.

05 / Cost

What this example costs to run.

Charges follow the billable events in the pricing table below and the number of records the run returns. This example has no single total result cap, so start with it as is and check the run's charges before widening it.

Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.

06 / API

Run the same input from your code.

This call starts a billable run of Website Email Extractor & Contact Scraper with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.

cURL · run and return the results
curl --request POST \
  'https://api.apify.com/v2/acts/whoareyouanas~website-link-scraper/run-sync-get-dataset-items?format=json' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"extractEmails":true,"extractFiles":false,"extractImages":false,"extractLinks":true,"extractPhones":false,"extractSocial":true,"includeSubdomains":false,"sameDomainOnly":true,"startUrls":[{"url":"https://www.whoareyouanas.com/"}]}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Extract public contacts and links" example collect?

Extract public emails, telephone links, social links, and internal/external URLs from any website. Export page records as CSV or JSON. It runs Website Email Extractor & Contact Scraper, published by whoareyouanas on Apify.

Which input does this example use?

Extract emails (extractEmails) set to true; Extract file URLs (extractFiles) set to false; Extract image URLs (extractImages) set to false; Extract links (extractLinks) set to true; Extract phone numbers (extractPhones) set to false; Extract social links (extractSocial) set to true. The full JSON input is shown on this page.

How much does it cost to run this example?

Charges follow the billable events in the pricing table below and the number of records the run returns. This example has no single total result cap, so start with it as is and check the run's charges before widening it.

How do I change it for my own research?

Open the example on Apify and select Try for free to copy it into your account, then edit Start URLs, Extract links, Extract emails, Extract phone numbers, Extract social links, Extract image URLs, Extract file URLs, Max pages, Same domain only, Include subdomains. Keep the result limit small for the first run and check the output before scaling up.

Can I run it from the API or on a schedule?

Yes. Send the same JSON input to the Website Email Extractor & Contact Scraper run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.

More examples

Related tasks you can copy.

AI Ad Analyzer

Score an ad creative with your own AI API key

Analyze one sample image ad for hooks, visible text, creative attributes and improvement suggestions. Add your own OpenAI API key in the secret apiKey field before running. Provider charges apply in addition to Apify usage; AI scores are not measured ad performance.

View example

Facebook Group & Page Scraper

Collect images and video links from ESA Facebook posts

Sample public ESA Facebook posts with media extraction enabled. Review available image links, video links and source post URLs.

View example

Google Ads Transparency Scraper

Export Samsung UK YouTube ads to CSV

Get up to five Samsung YouTube ads shown in the UK from Google's Ads Transparency Center. Export the available advertiser and creative data to CSV.

View example

Google Maps Reviews Export to CSV, Excel & JSON

Export recent Google Maps reviews to CSV

Collect up to 20 recent Google Maps reviews from a business URL, including ratings, review text and owner replies. Inspect quality status, then export the dataset to CSV.

View example

LinkedIn Profile Scraper

Review public LinkedIn executive career history

Look up Satya Nadella’s public LinkedIn profile to inspect available headline, roles and education fields. Use a different public profile URL for your own research.

View example

Meta (Facebook) Ad Library Scraper

Find active Adidas video ads on Meta

Search the US Meta Ad Library for active Adidas video ads. Review available creative URLs, ad copy, calls to action and start dates.

View example

Guides

Read more about this workflow.