# Dedupe a Contact List by Email: Gmail Dots and +Tags

**Use case:** 

Remove duplicate contacts from a list by email address. Case, spaces, Gmail dots and +tags are ignored, so Jane.Doe+news@gmail.com and janedoe@gmail.com count as one person. The most complete row is kept and its duplicates are counted. Replace the pasted contacts with your own list or dataset.

## Input

```json
{
  "items": [
    {
      "name": "Jane Doe",
      "email": "Jane.Doe+news@gmail.com",
      "phone": "",
      "company": "Acme"
    },
    {
      "name": "Jane Doe",
      "email": "janedoe@gmail.com",
      "phone": "+1 555 010 4444",
      "company": "Acme Inc"
    },
    {
      "name": "Tom Park",
      "email": "tom@park.io",
      "phone": "",
      "company": ""
    },
    {
      "name": "TOM PARK",
      "email": " TOM@park.io ",
      "phone": "555 010 9999",
      "company": "Park Ltd"
    },
    {
      "name": "Li Wei",
      "email": "li.wei@example.org",
      "phone": "",
      "company": "Wei Co"
    },
    {
      "name": "Sam Roe",
      "email": "sam@roe.dev",
      "phone": "",
      "company": "Roe"
    }
  ],
  "keyFields": [
    "email"
  ],
  "matchMode": "fuzzy",
  "fuzzyAlgorithm": "tokenSet",
  "fuzzyThreshold": 90,
  "blocking": "prefix",
  "blockingChars": 2,
  "normalise": [
    "trim",
    "caseFold",
    "collapseSpaces"
  ],
  "fieldTypes": {
    "email": "email"
  },
  "emailGmailDots": true,
  "emailPlusTags": true,
  "phoneLastDigits": 0,
  "keepStrategy": "mostComplete",
  "mergeDuplicates": true,
  "outputMode": "unique",
  "addDuplicateCount": true,
  "addClusterId": true,
  "duplicatesReport": true,
  "maxReportRows": 10000,
  "exports": [],
  "exportName": "clean-data",
  "escapeFormulas": true,
  "maxItems": 500000,
  "maxFileSizeMb": 50,
  "csvInferTypes": true
}
```

## Output

```json
{
  "id": {
    "label": "Id"
  },
  "name": {
    "label": "Name"
  },
  "email": {
    "label": "Email"
  },
  "company": {
    "label": "Company"
  },
  "phone": {
    "label": "Phone"
  },
  "city": {
    "label": "City"
  },
  "text": {
    "label": "Text"
  },
  "duplicateCount": {
    "label": "Duplicates removed",
    "format": "integer"
  },
  "clusterId": {
    "label": "Cluster ID",
    "format": "integer"
  }
}
```

## How it works

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

The Remove Duplicates: Deduplicate Datasets, CSV & Excel Actor is ready to run with the inputs already set for "Dedupe a Contact List by Email: Gmail Dots and +Tags". [Sign up or log in](https://console.apify.com/create-task-from-example/TN7clFoLHnesX6XUy) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Dedupe a Contact List by Email: Gmail Dots and +Tags" task

The Remove Duplicates: Deduplicate Datasets, CSV & Excel Actor will start running based on the input automatically. You can also change all the input fields, like items to deduplicate (pasted json), key fields (what makes a duplicate), and more, to match your specific use case.

### 3. Receive the "Dedupe a Contact List by Email: Gmail Dots and +Tags" 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 id, name, email, 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 "Dedupe a Contact List by Email: Gmail Dots and +Tags" task via API](https://apify.com/data-done-right/remove-duplicates.md).

## About this Actor

This example demonstrates how to use [Remove Duplicates: Deduplicate Datasets, CSV & Excel](https://apify.com/data-done-right/remove-duplicates.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data-done-right/remove-duplicates.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/data-done-right/remove-duplicates.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`).
