# Apify Dataset Dedup Tool: Lead Lists By Email

**Use case:** 

Merge nightly lead scraper runs and keep one record per email, with source dataset IDs. Built for growth and RevOps teams feeding clean data to a CRM.

## Input

```json
{
  "datasetIds": [],
  "fields": [
    "email"
  ],
  "output": "unique-items",
  "mode": "dedup-after-load",
  "nullAsUnique": false,
  "actorOrTaskId": "apify/web-scraper",
  "onlyRunsNewerThan": "2026-01-01",
  "outputTo": "dataset",
  "outputDatasetId": "clean-leads-master",
  "appendDatasetIds": true,
  "batchSizeLoad": 50000,
  "uploadBatchSize": 500,
  "parallelLoads": 10,
  "parallelPushes": 5,
  "verboseLog": false
}
```

## Output

```json
{
  "__datasetId__": {
    "label": "Source Dataset",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Deduplicate, Merge & Transform Datasets](https://apify.com/datacach/deduplicate-datasets) with a specific input configuration. Visit the [Actor detail page](https://apify.com/datacach/deduplicate-datasets) to learn more, explore other use cases, and run it yourself.