Go to example tasks

Keep the latest version of each item when merging scraper runs

Merges several runs of the same scraper and keeps one item per key, taken from the dataset you list last, so that the newest prices, stock or texts win. The kept item stays at its own position and an optional field shows how many duplicates each item had. Put the newest dataset last; only the order decides which version is kept.

Try for free
Merge, Deduplicate & Join Datasets
Merge, Deduplicate & Join Datasetsquietworkslab/merge-dedup-datasets
Sku
Name
Maker
Price
+7 fields
Text
Number
Boolean
List
Object

Input

Which duplicate to keep:last
Key matching:trim+3

Output fields

Sku
Name
Maker
Price
Currency
Url
Maker country
Maker support email
Maker lead time days
Source dataset
Duplicate count

How it works

Sign up on Apify or log in

The Merge, Deduplicate & Join Datasets Actor is ready to run with the inputs already set for "Keep the latest version of each item when merging scraper runs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Keep the latest version of each item when merging scraper runs" task

The Merge, Deduplicate & Join Datasets Actor will start running based on the input automatically. You can also change all the input fields, like which duplicate to keep and key matching, to match your specific use case.

Receive the "Keep the latest version of each item when merging scraper runs" 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 sku, name, maker, 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 "Keep the latest version of each item when merging scraper runs" task via API.

Image

Integrate "Keep the latest version of each item when merging scraper runs" into your workflow

Connect "Keep the latest version of each item when merging scraper runs" 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 latest-version task does not read dates: it keeps the item from the dataset read last. List your datasets from oldest to newest, so the newest dataset is read last.

Yes. With keep last, the latest-version task first counts every key and then writes the items, but each item is charged only once. The maximum cost per run must cover all items, or the run stops before reading them.

The Merge, Deduplicate & Join Datasets Actor charges $0.0001 per item read ($0.10 per 1,000 items) and one item per started 20 items of a lookup dataset, plus Apify's Actor start event. The built-in sample is not charged per item.