# Email Finder: Public Emails from Company Websites, No Login (`one_dollar_store/email-finder-scraper`) Actor

Email finder for company websites and company names: public emails with the page each was found on, role or personal type, own domain flag, phones and contact page. Nothing guessed, no mailbox checks. $1 per 1,000 results, platform usage included.

- **URL**: https://apify.com/one_dollar_store/email-finder-scraper.md
- **Developed by:** [One Dollar Store](https://apify.com/one_dollar_store) (community)
- **Categories:** Lead generation, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Email Finder: public emails from company websites, with the page each was found on

**$1 per 1,000 companies. Platform usage included. No rental, no minimum.**

Email Finder reads a company's own website and returns the public email addresses it publishes. Each address comes with the page it was found on, a type (role such as `info@`, personal such as `jane.doe@`, or other) and a flag that says whether it sits on the company's own domain. Give it websites, or give it company names and it looks up the official website first. It also returns phone numbers, the contact page and social profile links.

Nothing is guessed. It does not build `firstname@company.com` patterns and it never contacts a mailbox to see if it exists. If a company does not publish an address, you get a row that says so.

The four most used Store actors that match "email finder" list $3.00 to $29.00 per 1,000 results (Store prices checked 10 November 2026), and one of them lists lower prices on higher Apify plans. They also work differently: they search contact databases or LinkedIn, or build address patterns from a person's name and test them against a mail server. This actor only reads what a company publishes on its own website. It cannot find an address the company keeps private, but it costs less and shows where every address came from.

[Open it in Apify Console](https://console.apify.com/actors/Qb9ZwOQvLlavvz5Zn/input)

### How do you find a company email address?

Most companies print at least one address on their own website. The usual places are the Contact page, the Imprint or Legal notice page (required by law in Germany, Austria and Switzerland), the Team or About page and the footer of the home page. The address is often a `mailto:` link, sometimes plain text, sometimes written as `name [at] company [dot] com` or scrambled by Cloudflare.

Doing this by hand takes a few minutes per company. Email Finder does the same thing for a list:

1. It opens the page you give (a domain, a web address, or the website it finds for a company name).
2. It follows the links to the contact, imprint, team and about pages of that site.
3. It collects every address on those pages, decodes the hidden ones, and returns one row per company with each address, the page it came from and its type.

If a company publishes no address, no tool can read one from its website. Guessing patterns and testing mailboxes is a different method with different legal risks, and this actor does not do it.

### How much does Email Finder cost?

| Companies | This actor | Four most used "email finder" actors |
|---|---|---|
| 1,000 | $1.00 | $3.00 to $29.00 |
| 10,000 | $10.00 | $30.00 to $290.00 |
| 100,000 | $100.00 | $300.00 to $2,900.00 |

One flat price, platform usage included, so there is no separate compute or proxy bill. A weekly run of 500 companies costs about $0.50, or about $2 a month.

You are charged per result row. A row is returned for every company that was read, including one where the site shows no email, and for every company name that could not be matched to one website (so your list stays in step). Switch on **Only companies with an email** to be charged only for companies where at least one address was found.

### Why use it

- **Every address has its source.** Each email carries the page it was first seen on and how it appeared (mailto link, page data, protected email or page text), so you can check it in one click.
- **Role or personal, on the company domain or not.** Filter for `info@` style addresses only, for named people only, or for addresses on the company's own domain only.
- **Company names work too.** Type a company name and the actor finds its official website on Wikidata, then reads that site. Common names that fit several companies are not guessed: you get the candidates instead.
- **Polite and open about it.** It reads a few pages per site, one request at a time per site, honours robots.txt and stops at any bot check page.

### How to use Email Finder

1. Open the actor, add company websites under **Company websites** and, if you like, company names under **Company names**.
2. Press **Start**. A small list finishes in seconds.
3. Download the results as JSON, CSV or Excel, or read them through the API.

Or paste this input:

```json
{
  "domains": ["python.org", "https://www.eff.org"],
  "companies": ["Creative Commons"],
  "pagesPerSite": 3,
  "maxItems": 10
}
```

### Use it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/one_dollar_store~email-finder-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["python.org"], "companies": ["Creative Commons"], "pagesPerSite": 3, "maxItems": 10}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("one_dollar_store/email-finder-scraper").call(
    run_input={"domains": ["python.org"], "companies": ["Creative Commons"], "pagesPerSite": 3, "maxItems": 10}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["input"], item["status"], item.get("bestEmail"))
```

### Use it from an AI assistant

Claude, ChatGPT, Cursor and other assistants can call this actor through Apify's MCP server. Add it with this server address:

```
https://mcp.apify.com?tools=one_dollar_store/email-finder-scraper
```

Then ask, for example: "Find the public contact emails for these 30 companies and tell me which page each one came from."

### Switching from another email finder

Many email finders take a person's first name, last name and company domain, or a list of job titles, and answer with one address per person. This one takes companies: `domains` (websites) or `companies` (names) in, one row per company out. The core fields are `bestEmail`, `emailAddresses` and `emails`, where each address has `type`, `onCompanyDomain`, `foundOn` and `foundBy`. Filters are `emailTypes`, `ownDomainOnly` and `onlyWithEmails`.

It does not return job titles, people's LinkedIn profiles, mobile numbers, deliverability scores or catch all flags. It does not use a contact database and it never connects to a mail server, so those fields do not exist here.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `domains` | list of text | none | Company websites, one per line: a domain (`example.com`), a full address (`https://example.com/contact`) or an email address (the part after the `@` is used). |
| `companies` | list of text | none | Company names, one per line. Each is matched exactly against Wikidata to find its official website. |
| `country` | text | empty | Optional two letter code such as `US`, `GB`, `DE`. Keeps only companies Wikidata places in that country when matching names, and helps read phone numbers written without a country code. |
| `emailTypes` | choice | `all` | `all`, `role` (info@, sales@) or `personal` (jane.doe@). |
| `ownDomainOnly` | yes or no | no | Leave out addresses on other domains, such as a web agency in the footer or a free mailbox. |
| `onlyWithEmails` | yes or no | no | Return a row only when at least one email was found. |
| `pagesPerSite` | number | 4 | The most pages to read per website, including the first one (1 to 8). |
| `maxItems` | number | 100 | The run stops after this many rows. Minimum 10. |

Add at least one entry under `domains` or `companies`. Two entries for the same website give one row. Skipped entries and the reason are listed in the `SKIPPED_INPUTS` record and in the run summary.

### What data does Email Finder return?

One row per company.

| Field | Meaning |
|---|---|
| `input`, `inputType` | The entry as you gave it and what it was: `domain`, `url` or `company name`. |
| `resolved`, `resolvedBy` | `resolved` is false when a company name could not be matched to one website. `resolvedBy` is `input` when you gave the website and `wikidata` when it came from a name. |
| `status`, `statusDetail` | `found`, `no_email_found`, `not_found` or `ambiguous`, with one plain sentence on what was read and what was not. |
| `companyName` | The company's name: from Wikidata when you gave a name, else the name the site gives for itself. |
| `website`, `domain`, `rootDomain`, `finalUrl` | The site that was read, its host name without `www.`, its registered domain and the first page after redirects. |
| `bestEmail` | The first address in the list. Own domain first, then general inboxes (`info@`, `contact@`, `hello@`), other role addresses, named people, free mailboxes last. |
| `emailAddresses` | The addresses as plain text, best first, up to 50. Handy for CSV. |
| `emails` | Each address with `type` (`role`, `personal` or `other`), `onCompanyDomain`, `isFreeMail`, `foundOn` (the page it was first seen on) and `foundBy` (`mailto link`, `structured data`, `protected email` or `page text`). |
| `emailCount`, `companyDomainEmailCount`, `roleEmailCount`, `personalEmailCount` | Counts after your filters. |
| `phones`, `phonesE164`, `phoneCount` | Valid phone numbers in international and E.164 format. |
| `contactPageUrl` | The contact page, when the site links to one. |
| `linkedinUrl`, `facebookUrl`, `twitterUrl`, `instagramUrl`, `youtubeUrl`, `tiktokUrl`, `githubUrl` | Company profile links on the site. |
| `wikidataId`, `matchedName`, `matchedDescription`, `country` | For names: the Wikidata item that was matched, its short description so you can check it, and its country. |
| `candidates` | Only on `ambiguous` rows: up to five companies that share the name, each with name, description, website, `wikidataId` and country. Nothing in a candidate was read. |
| `pagesChecked`, `pageUrls`, `robotsBlockedPaths`, `checkedAt` | Which pages were read, which paths robots.txt did not allow, and when. |

#### How the `type` of an address is decided

The type comes from the address text and nothing else. Nobody is looked up.

- **role**: a function or group address such as `info@`, `sales@`, `support@`, `press@`, `kontakt@`, `project-announce@`, or anything on a `lists.` host.
- **personal**: the text shows a person: a common first name alone or with a surname or initial (`john@`, `jane.doe@`, `anna.k@`), or one initial and a surname (`j.smith@`).
- **other**: the text shows neither (`psf@`, `jsmith@`, `x9k2@`). These are not labelled personal on a guess.

The name list is short, so some real people's addresses are typed `other`. An address typed `personal` is one where a name is visible.

#### How a company name becomes a website

Each name is matched exactly, ignoring capital letters and a trailing legal form such as Inc. or Ltd, against English names and aliases in Wikidata (data released under CC0). Only organisations with an official website count. If you give a country, only organisations Wikidata places in that country count. A name that equals one organisation's label wins over organisations that only list it as an alias.

- One organisation, or several that share one website: `resolved`, and the site is read.
- Several organisations with different websites: `ambiguous`, no site is read, and `candidates` lists them.
- Nothing found: `not_found`. Small local businesses are mostly not in Wikidata, so expect this for them. Give their website under `domains` instead.

### Sample results

Real rows from test runs on 10 November 2026. The first comes from a website you give, the second from a company name, the third is a name that fits several companies, the fourth is a name Wikidata does not know.

```json
[
  {"input": "python.org", "inputType": "domain", "resolved": true, "resolvedBy": "input", "status": "found", "statusDetail": "3 email addresses found on 3 pages.", "companyName": "Python.org", "website": "https://www.python.org", "domain": "python.org", "rootDomain": "python.org", "finalUrl": "https://www.python.org/", "bestEmail": "python-announce@python.org", "emailAddresses": ["python-announce@python.org", "webmaster@python.org", "psf@python.org"], "emails": [{"email": "python-announce@python.org", "type": "role", "onCompanyDomain": true, "isFreeMail": false, "foundOn": "https://www.python.org/about/help/", "foundBy": "mailto link"}, {"email": "webmaster@python.org", "type": "role", "onCompanyDomain": true, "isFreeMail": false, "foundOn": "https://www.python.org/about/help/", "foundBy": "mailto link"}, {"email": "psf@python.org", "type": "other", "onCompanyDomain": true, "isFreeMail": false, "foundOn": "https://www.python.org/about/help/", "foundBy": "mailto link"}], "emailCount": 3, "companyDomainEmailCount": 3, "roleEmailCount": 2, "personalEmailCount": 0, "phones": [], "phonesE164": [], "phoneCount": 0, "linkedinUrl": "https://www.linkedin.com/company/python-software-foundation", "twitterUrl": "https://twitter.com/ThePSF", "pagesChecked": 3, "pageUrls": ["https://www.python.org/", "https://www.python.org/about/help/", "https://www.python.org/about/"], "checkedAt": "2026-11-10T17:05:44.945Z"},
  {"input": "Apify", "inputType": "company name", "resolved": true, "resolvedBy": "wikidata", "status": "found", "statusDetail": "2 email addresses found on 3 pages.", "companyName": "Apify", "website": "https://apify.com", "domain": "apify.com", "rootDomain": "apify.com", "finalUrl": "https://apify.com/", "wikidataId": "Q112502991", "matchedName": "Apify", "matchedDescription": "Czech tech startup", "country": "CZ", "bestEmail": "hello@apify.com", "emailAddresses": ["hello@apify.com", "support@apify.com"], "emails": [{"email": "hello@apify.com", "type": "role", "onCompanyDomain": true, "isFreeMail": false, "foundOn": "https://apify.com/contact", "foundBy": "mailto link"}, {"email": "support@apify.com", "type": "role", "onCompanyDomain": true, "isFreeMail": false, "foundOn": "https://apify.com/", "foundBy": "structured data"}], "emailCount": 2, "companyDomainEmailCount": 2, "roleEmailCount": 2, "personalEmailCount": 0, "phones": [], "phonesE164": [], "phoneCount": 0, "contactPageUrl": "https://apify.com/contact", "linkedinUrl": "http://linkedin.com/company/apify", "twitterUrl": "https://x.com/apify", "tiktokUrl": "https://www.tiktok.com/@apifytech", "githubUrl": "https://github.com/apify", "pagesChecked": 3, "pageUrls": ["https://apify.com/", "https://apify.com/contact", "https://apify.com/contact-sales"], "checkedAt": "2026-11-10T17:02:41.143Z"},
  {"input": "Tesla", "inputType": "company name", "resolved": false, "status": "ambiguous", "statusDetail": "3 organisations share this name and have different websites. Nothing was guessed. Add a country to narrow it down.", "candidates": [{"name": "Tesla", "description": "American automotive and clean energy company", "website": "https://www.tesla.com/", "wikidataId": "Q478214", "country": "US"}, {"name": "Tesla", "description": "American musical group; hard rock band", "website": "http://www.teslatheband.com/", "wikidataId": "Q1428953", "country": "US"}, {"name": "Tesla", "description": "Czech manufacturer of electronical and electrical equipment (est.1991)", "website": "http://www.tesla.cz/", "wikidataId": "Q1548225", "country": "CZ"}], "checkedAt": "2026-11-10T17:02:40.958Z"},
  {"input": "Joe's Plumbing and Heating", "inputType": "company name", "resolved": false, "status": "not_found", "statusDetail": "No organisation with this name and a website was found in Wikidata.", "checkedAt": "2026-11-10T17:02:40.954Z"}
]
```

In a test run on 1,300 small business websites from around the world, 1,000 rows came back in about 12.6 minutes. About two thirds of those rows (654 of 1,000) had at least one email address; the rest were read fine and publish none in plain HTML. Of the websites tried, 190 gave no row: 49 showed a bot check page, 33 refused the request, 74 could not be reached, 19 were closed by robots.txt and 15 did not exist.

### Limits

- **Public pages only, no JavaScript run.** The actor reads the HTML a site sends. Addresses that a page adds with scripts after loading, or shows only inside images or PDFs, are not found. Sites built entirely with scripts often give a row with no email.
- **It reads a few pages, not the whole site.** It reads the first page plus up to `pagesPerSite` minus one contact, imprint, team or about pages that the first page links to. If the first page links to none, it tries the usual paths (`/contact`, `/contact-us`, `/about`, or `/impressum` and `/kontakt` on .de, .at and .ch sites). Addresses on other pages, such as a staff directory or a blog, are missed.
- **robots.txt is honoured** for every page, the one you give included. A page it does not allow is not read, and a site that closes everything gives no row. If robots.txt cannot be read because of a server error, the site is skipped.
- **Bot check pages are not bypassed.** A site that shows a CAPTCHA or a "verify you are human" page, or refuses the request three times, is skipped. There is no proxy and no browser. Some large sites refuse cloud servers and give no row.
- **Names need Wikidata.** Company names are matched against Wikidata. Well known companies and organisations are there, most small businesses are not. A matched name is only as good as the Wikidata entry: if it lists an old website, that is the one read.
- **Not every address is a person, and nothing is checked.** Results include shared addresses and mailing lists. The actor does not test whether a mailbox exists or accepts mail. Run the list through an email verification service before you send campaigns.
- **A site shows what it shows.** The actor cannot return an address the company has not published, and it does not turn a person's name and a domain into an address.
- **Only HTML pages with a 2xx status** are read, up to 2 MB each, with up to 5 redirects.
- **Speed.** About 4 requests per site, one at a time per site and at least half a second apart, and up to 16 sites at once. A list of 1,000 sites takes about 12 to 13 minutes.
- Every run writes a `RUN_SUMMARY` record with counts, and a `SKIPPED_INPUTS` record that lists each entry that gave no row and why.

### FAQ

**How do I find a company's email address?**
Give the company's website under `domains`, or its name under `companies`. The actor reads the home page and the contact, imprint, team and about pages and returns every public address with the page it was found on.

**How much does it cost to find emails for 10,000 companies?**
$10. With **Only companies with an email** switched on you are charged only for the companies where an address was found.

**Do I pay for compute or proxy on top?**
No. Platform usage is included in the $1 per 1,000 price. The actor uses no proxy.

**Does it guess addresses or check that they work?**
No. It returns addresses that the company has published on its own website. It does not generate `firstname@company.com` patterns and it never connects to a mail server. That also means it cannot find a named person's address if the company does not print it.

**Can I search by person name?**
No. The input is companies, not people. If a company prints named addresses on its team or contact page, they are returned and typed `personal`.

**Why does a company name give no website?**
Names are matched against Wikidata. A small business that is not in Wikidata returns `not_found`, and a name shared by different companies returns `ambiguous` with up to five `candidates`. Nothing is guessed. Pass the website under `domains` instead, or add a `country`.

**Why is a website missing from my results?**
Entries that gave no row are listed in `SKIPPED_INPUTS` with the reason: robots.txt does not allow the page, a bot check page, an address that does not exist or could not be reached, or a duplicate of an earlier entry.

**Is it legal?**
The actor reads public pages that a website sends to any visitor, with no login, and it honours each site's robots.txt. Company names are matched against Wikidata, which is released under CC0. Email addresses and phone numbers can be personal data, especially addresses that contain a person's name. How you use them is up to you: you are responsible for lawful use, including GDPR, the ePrivacy rules and email marketing laws such as CAN-SPAM where you and your contacts live. If you want to stay on the safe side, set **Email types** to `role` and switch on **Only addresses on the company's own domain**. Some websites forbid automated reading in their terms of use; check the terms of the sites you read.

**Is this an official product of the sites it reads?**
No. It is an independent tool and is not affiliated with or endorsed by any site or by Wikidata.

### Feedback and support

Found a problem or want a field added? Open an issue on the Issues tab of this actor and it gets read. If the actor saved you time, an honest rating on the Reviews tab helps other people find it.

### Also searched as

Company email finder, find email by company website, website email extractor, domain email finder, business email lookup, contact email scraper, email address finder for companies.

**Do I need an Apify account?**
Yes. Actors run from an Apify account, and a free account is enough to start: it includes $5 of platform usage every month. You can [sign up here](https://www.apify.com?fpr=ymnoit). This is a referral link and it costs you nothing.

### More from The One Dollar Store

Every actor here costs $1 per 1,000 results, platform usage included. See the whole store: https://apify.com/one_dollar_store

**Website tools**

- [Website Technology Detector](https://apify.com/one_dollar_store/website-technology-detector): Frameworks, CMS, analytics and ad tags on any site.
- [Website to Markdown Converter](https://apify.com/one_dollar_store/website-to-markdown-converter): Clean Markdown text from any web page.
- [Email Scraper](https://apify.com/one_dollar_store/website-emails-phones-scraper): Emails, phones and social links from company sites.
- [SEO Page Audit](https://apify.com/one_dollar_store/seo-page-audit-scraper): On-page SEO checks for any URL.
- [PDF Text Extractor](https://apify.com/one_dollar_store/pdf-text-extractor-scraper): Text and page data from PDF links.
- [Company Enrichment](https://apify.com/one_dollar_store/company-domain-enrichment-scraper): Company profile from a website domain: contacts, socials, tech, DNS and registry data.
- [Email Extractor](https://apify.com/one_dollar_store/email-extractor): Every email address found in the pages or text you give it, no crawling.
- [Phone Number Scraper](https://apify.com/one_dollar_store/phone-number-scraper): Phone numbers from websites in international E.164 form, with the source page.

### Changelog

- 10 November 2026: clearer description and headings, field details for AI tools. Price and output unchanged.
- November 2026: first release.

# Actor input Schema

## `domains` (type: `array`):

Websites to find emails on, one per line: a domain (example.com), a full address (https://example.com/contact) or an email address (the part after the @ is used). The actor reads that page and the contact, imprint, team and about pages it links to. Pages that robots.txt does not allow are skipped. Local and private addresses are refused.

## `companies` (type: `array`):

Optional. Company names, one per line. Each name is matched exactly against Wikidata to find the company's official website, then that site is read. Well known companies and organisations match; a small business that Wikidata does not list does not. A name that matches nothing, or two different companies, gives a row with resolved false and no emails. Nothing is guessed.

## `country` (type: `string`):

Optional two letter country code such as US, GB, DE or IN. For company names it keeps only organisations Wikidata places in that country (useful when many companies share a name). It also helps read phone numbers that are written without a country code.

## `emailTypes` (type: `string`):

All returns every address found. Role keeps function and group addresses such as info@, sales@, support@ or project-announce@. Personal keeps addresses where the text shows a person, such as jane.doe@ or j.smith@. Addresses that show neither (for example psf@) appear under All only. The type comes from the address text alone, nobody is looked up.

## `ownDomainOnly` (type: `boolean`):

Switch on to leave out addresses on other domains, such as a web agency in the footer or a free mailbox like gmail.com. Every address carries an onCompanyDomain flag either way.

## `onlyWithEmails` (type: `boolean`):

Switch on to return a row only when at least one email was found, so you pay only for companies with an address. Switched off, you also get rows that say no email was found, and rows for company names that could not be matched. Skipped inputs are always listed in the SKIPPED_INPUTS record.

## `pagesPerSite` (type: `integer`):

The most pages to read on each website: the page you give plus contact, imprint, team or about pages found in its links. 1 reads only the first page.

## `maxItems` (type: `integer`):

The run stops after this many result rows (one per company). Minimum 10.

## Actor input object example

```json
{
  "domains": [
    "https://www.eff.org",
    "python.org",
    "apache.org",
    "debian.org",
    "php.net",
    "w3.org",
    "openstreetmap.org",
    "kernel.org",
    "ubuntu.com",
    "libreoffice.org",
    "videolan.org",
    "getgrav.org"
  ],
  "companies": [
    "Wikimedia Foundation",
    "Mozilla Foundation",
    "Creative Commons",
    "Free Software Foundation"
  ],
  "emailTypes": "all",
  "ownDomainOnly": false,
  "onlyWithEmails": false,
  "pagesPerSite": 3,
  "maxItems": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "https://www.eff.org",
        "python.org",
        "apache.org",
        "debian.org",
        "php.net",
        "w3.org",
        "openstreetmap.org",
        "kernel.org",
        "ubuntu.com",
        "libreoffice.org",
        "videolan.org",
        "getgrav.org"
    ],
    "companies": [
        "Wikimedia Foundation",
        "Mozilla Foundation",
        "Creative Commons",
        "Free Software Foundation"
    ],
    "pagesPerSite": 3,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("one_dollar_store/email-finder-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "domains": [
        "https://www.eff.org",
        "python.org",
        "apache.org",
        "debian.org",
        "php.net",
        "w3.org",
        "openstreetmap.org",
        "kernel.org",
        "ubuntu.com",
        "libreoffice.org",
        "videolan.org",
        "getgrav.org",
    ],
    "companies": [
        "Wikimedia Foundation",
        "Mozilla Foundation",
        "Creative Commons",
        "Free Software Foundation",
    ],
    "pagesPerSite": 3,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("one_dollar_store/email-finder-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "https://www.eff.org",
    "python.org",
    "apache.org",
    "debian.org",
    "php.net",
    "w3.org",
    "openstreetmap.org",
    "kernel.org",
    "ubuntu.com",
    "libreoffice.org",
    "videolan.org",
    "getgrav.org"
  ],
  "companies": [
    "Wikimedia Foundation",
    "Mozilla Foundation",
    "Creative Commons",
    "Free Software Foundation"
  ],
  "pagesPerSite": 3,
  "maxItems": 20
}' |
apify call one_dollar_store/email-finder-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,one_dollar_store/email-finder-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Qb9ZwOQvLlavvz5Zn/builds/k13881usv25kJo3n0/openapi.json
