# Apify Dataset Deduplication by URL

**Use case:** 

Remove duplicate Apify dataset items by URL and keep the first occurrence while preserving clean unique records in the output dataset.

## Input

```json
{
  "datasetIds": [
    "a8HvXCQBgz2jolQa4"
  ],
  "fields": [
    "url"
  ],
  "keepOrder": "first",
  "caseInsensitive": false,
  "trimWhitespace": true,
  "maxItems": 10000
}
```

## 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.