# Clean an email list before a campaign

**Use case:** 

Paste the addresses of your next campaign and get each one back as valid, invalid or risky, checked live with its mail server and without sending any message. Remove the invalid ones before you send to keep bounces low and protect your sender reputation. Add your MailTester Ninja key to check your own list.

## Input

```json
{
  "emails": [
    "info@apple.com",
    "hello@stripe.com",
    "no.such.user.2026@gmail.com"
  ],
  "maxConcurrency": 20
}
```

## Output

```json
{
  "position": {
    "label": "#",
    "format": "integer"
  },
  "email": {
    "label": "Email",
    "format": "string"
  },
  "result": {
    "label": "Result",
    "format": "string"
  },
  "message": {
    "label": "Verdict",
    "format": "string"
  },
  "code": {
    "label": "Code",
    "format": "string"
  },
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "mx": {
    "label": "Mail server",
    "format": "string"
  },
  "checkedAt": {
    "label": "Checked at",
    "format": "string"
  }
}
```

## How it works

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

The MailTester Ninja Email Verifier Actor is ready to run with the inputs already set for "Clean an email list before a campaign". [Sign up or log in](https://console.apify.com/create-task-from-example/CeEEr5kNEl3wbH4nt) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Clean an email list before a campaign" task

The MailTester Ninja Email Verifier Actor will start running based on the input automatically. You can also change all the input fields, like email addresses and maximum parallel checks, to match your specific use case.

### 3. Receive the "Clean an email list before a campaign" 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, result, 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 an email list before a campaign" task via API](https://apify.com/mailtester-ninja/email-verifier.md).

## FAQ

### How does this task clean an email list?

This task asks the mail server of each address whether the mailbox exists, stops before any message is sent, and marks the address valid, invalid or risky. Remove the invalid ones and decide on the risky ones before your campaign.

### What does this task cost?

This task adds no charge of its own: you only pay the Apify usage of the run, which stays tiny. It needs a MailTester Ninja key, either a free API token (50 checks a day) or a plan from $6.99 a week for 100,000 checks a day.

### Does this task keep my email addresses?

MailTester Ninja keeps no copy of the addresses you verify. The results of this task stay in your own Apify storage, under your control.

### What happens if I run this task without a key?

Without a MailTester Ninja key, this task only checks its three sample addresses so you can see the output. Add your key in the input to verify your own list.

## About this Actor

This example demonstrates how to use [MailTester Ninja Email Verifier](https://apify.com/mailtester-ninja/email-verifier.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mailtester-ninja/email-verifier.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/mailtester-ninja/email-verifier.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`).
