# Deduplicate Apify Datasets by Email

**Use case:** 

Merge multiple Apify datasets and remove duplicate lead records by normalized email fields with case-insensitive matching.

## Input

```json
{
  "datasetIds": [
    "a8HvXCQBgz2jolQa4",
    "b7GsXCQBgz2jolQb5"
  ],
  "fields": [
    "email"
  ],
  "keepOrder": "last",
  "caseInsensitive": true,
  "trimWhitespace": true,
  "maxItems": 50000
}
```

## Output

```json
{
  "uniqueKey": {
    "label": "Unique key",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Dataset Deduplicator](https://apify.com/automation-lab/dataset-dedup) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/dataset-dedup) to learn more, explore other use cases, and run it yourself.