Merge the results of my last three Google Maps runs and remove duplicate places by placeId.
datasetIds are the default datasets of your earlier runs (replace the placeholders). fields is the key that defines a duplicate; dot paths such as location.lat work, and an empty list compares whole items. The output dataset has each placeId once, keeping the first occurrence (set keep to last for the newest). Duplicates are not charged.
Tool input
{
"datasetIds": [
"<dataset ID 1>",
"<dataset ID 2>",
"<dataset ID 3>"
],
"fields": [
"placeId"
]
}
Ask it from an AI agent (MCP)
Add the Apify MCP server with this tool to your MCP client (Claude, Cursor, VS Code, ...); it signs you in with OAuth or Authorization: Bearer <APIFY_TOKEN>. It works once the Actor is live on the Apify Store.
https://mcp.apify.com?tools=bosco_labs/dataset-dedup
Then ask:
Use the bosco_labs/dataset-dedup tool to answer: Merge the results of my last three Google Maps runs and remove duplicate places by placeId.
Call the Apify API
Runs the Actor and returns the rows in one request, billed to your Apify account ($0.00015 per unique item written (duplicates are free)). It works once the Actor is live on the Apify Store.
curl https://api.apify.com/v2/acts/bosco_labs~dataset-dedup/run-sync-get-dataset-items \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"datasetIds": ["<dataset ID 1>", "<dataset ID 2>", "<dataset ID 3>"], "fields": ["placeId"]}'
Example output
Example output from the tool's documentation (not a run of this exact question).
[{"url": "https://a.com/1", "title": "A", "price": 10},
{"url": "https://a.com/2", "title": "B", "price": 12},
{"url": "https://a.com/3", "title": "C", "price": 7}]