# Clean a Newsletter Subscriber Sample

**Use case:** 

For newsletter owners and marketers. Each subscriber email is graded A to F with reasons, including likely domain typos with the suggested fix, disposable domains and addresses on domains with no mail servers. Keep grade C or better. Cost: $0.0004 per email kept, so at most $0.0032 for these 8.

## Input

```json
{
  "companies": [
    "apify.com",
    "https://www.python.org"
  ],
  "emails": [
    "reader1@gmail.com",
    "reader2@gmial.com",
    "reader3@yahoo.com",
    "reader4@mailinator.com",
    "reader5@python.org",
    "reader6@hotmial.com",
    "reader7@outlook.com",
    "reader8@no-such-domain-xyz-123.org"
  ],
  "country": "us",
  "maxPagesPerSite": 4,
  "includeNamedEmails": false,
  "minGrade": "C",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "email": {
    "label": "Email"
  },
  "grade": {
    "label": "Grade"
  },
  "gradeReasons": {
    "label": "Grade reasons"
  },
  "domain": {
    "label": "Domain"
  },
  "provider": {
    "label": "Provider"
  },
  "disposable": {
    "label": "Disposable"
  },
  "role": {
    "label": "Role"
  },
  "freemail": {
    "label": "Freemail"
  },
  "typoOf": {
    "label": "Typo of"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Email Finder: Business Emails from Websites, Graded Actor is ready to run with the inputs already set for "Clean a Newsletter Subscriber Sample". [Sign up or log in](https://console.apify.com/create-task-from-example/MvNWDHfcHkd2Vo7tB) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Clean a Newsletter Subscriber Sample" task

The Email Finder: Business Emails from Websites, Graded Actor will start running based on the input automatically. You can also change all the input fields, like domains and urls, emails to grade, and more, to match your specific use case.

### 3. Receive the "Clean a Newsletter Subscriber Sample" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as email, grade, grade reasons, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Clean a Newsletter Subscriber Sample" task via API](https://apify.com/brainfoods_studio/website-email-finder.md).

## About this Actor

This example demonstrates how to use [Email Finder: Business Emails from Websites, Graded](https://apify.com/brainfoods_studio/website-email-finder.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/brainfoods_studio/website-email-finder.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/brainfoods_studio/website-email-finder.md

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`).
