Go to example tasks

Merge JSON & CSV Files and Remove Duplicates

Merges two overlapping exports (like two runs of the same scraper), removes duplicates by id and keeps the newest copy. The _source column shows which file each row came from. Works the same with Apify datasets from your scraper runs.

Try for free
Merge, Dedupe & Transform Datasets to CSV & JSON
Merge, Dedupe & Transform Datasets to CSV & JSONmcpkit/merge-dedup-datasets
Success
Error
Result file URL
Result file format
+7 fields
Text
Number
Boolean
List
Object

Input

File URLs:https://jsonplaceholder.typicode.com/posts?userId=1+1
Add _source field:true
Dedup fields:id
Which duplicate to keep:keepLast

Output fields

Success
Error
Result file URL
Result file format
Rows written
Rows read
Rows filtered out
Duplicates removed
Charge limit reached
Failed sources
File truncated

How it works

Sign up on Apify or log in

The Merge, Dedupe & Transform Datasets to CSV & JSON Actor is ready to run with the inputs already set for "Merge JSON & CSV Files and Remove Duplicates". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Merge JSON & CSV Files and Remove Duplicates" task

The Merge, Dedupe & Transform Datasets to CSV & JSON Actor will start running based on the input automatically. You can also change all the input fields, like file urls, add _source field, and more, to match your specific use case.

Receive the "Merge JSON & CSV Files and Remove Duplicates" 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 success, error, result file url, 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 JSON & CSV Files and Remove Duplicates" task via API.

Image

Integrate "Merge JSON & CSV Files and Remove Duplicates" into your workflow

Connect "Merge JSON & CSV Files and Remove Duplicates" 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