Go to example tasks

Merge and deduplicate scraped datasets

Merge several Apify datasets or runs into one and remove duplicate rows by the key fields you choose (for example url or id), keeping the first or last copy. This example runs on built-in synthetic demo rows; select your own source datasets to clean real scrape results before export.

Try for free
Dataset Deduplication & Merge - Remove Duplicates JSON
Dataset Deduplication & Merge - Remove Duplicates JSONahmed.fouaad82/dataset-dedup-merge
item
occurrences
sourceDatasetId
sourceIndex
Text
Number
Boolean
List
Object

Input

Source run IDs (advanced)
Deduplication key fields:id
Keep representative:first
Case-insensitive keys:false

Output fields

item
occurrences
sourceDatasetId
sourceIndex

How it works

Sign up on Apify or log in

The Dataset Deduplication & Merge - Remove Duplicates JSON Actor is ready to run with the inputs already set for "Merge and deduplicate scraped datasets". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Merge and deduplicate scraped datasets" task

The Dataset Deduplication & Merge - Remove Duplicates JSON Actor will start running based on the input automatically. You can also change all the input fields, like source run ids (advanced), deduplication key fields, and more, to match your specific use case.

Receive the "Merge and deduplicate scraped datasets" 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 item, occurrences, sourcedatasetid, and more.

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 "Merge and deduplicate scraped datasets" task via API.

Image

Integrate "Merge and deduplicate scraped datasets" into your workflow

Connect "Merge and deduplicate scraped datasets" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The merge and deduplicate task reads the selected datasets or runs, keeps one row per unique key (for example url or id) and writes the merged result to a new dataset.

No. The merge and deduplicate task example uses four built-in synthetic product rows with one duplicate. Select your own datasets to process real data.

The first 50 source rows of every run of the merge and deduplicate task are free. After that the Actor charges per saved source row; the Pricing tab shows the current price.