Dataset Merge, Fuzzy Dedupe & Cross-Join Pro avatar

Dataset Merge, Fuzzy Dedupe & Cross-Join Pro

Pricing

from $0.18 / 1,000 output rows emitted

Go to Apify Store
Dataset Merge, Fuzzy Dedupe & Cross-Join Pro

Dataset Merge, Fuzzy Dedupe & Cross-Join Pro

Merge Apify Datasets, CSV/TSV/JSON/NDJSON/XLSX files & inline rows with exact/normalized/fuzzy deduplication, coalesce survivorship, SQL-style cross-joins, stateful incremental mode, and Standby MCP.

Pricing

from $0.18 / 1,000 output rows emitted

Rating

0.0

(0)

Developer

James Edmans

James Edmans

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Apify Store Actor: forgekit/dataset-merge-dedupe-pro | Runtime: Node.js 22 (lightweight deterministic ETL, 256–1024 MB RAM) | Billing: Pay-Per-Event (PPE) + Standby MCP Server

Overview

Dataset Merge, Fuzzy Dedupe & Cross-Join Pro consolidates multiple Apify Datasets, Key-Value Store records, public CSV/TSV/JSON/NDJSON/XML/XLSX file URLs, and inline JSON batches into one clean golden dataset — with zero browser overhead, zero proxy spend, and zero fragile scraping.

Designed for RevOps teams, data engineers, and AI agent pipelines, it combines exact, normalized, and blocking-accelerated fuzzy deduplication (Jaro-Winkler, Levenshtein, Token-Jaccard, Dice), smart survivorship coalescing (merge-coalesce & richest), SQL-style cross-joins (inner, left, right, full, anti), stateful incremental onlyNew deduplication, and formula-safe CSV/XLSX exports in a single deterministic run.

Built directly around real user feedback from competing Apify Store dataset tools, it isolates unreadable/404 sources into SUMMARY.sourceErrors[] instead of crashing mid-run, verifies every exported file is non-empty before writing/charging, explains any zero-row output via SUMMARY.emptyOutputReason, and exposes a native Standby MCP Server for Claude Desktop, Cursor, and automated AI workflows.

Features vs Competitors

  • True Blocking-Accelerated Fuzzy Deduplication: Pure TypeScript Jaro-Winkler, Levenshtein, Token-Jaccard, and Dice similarity metrics with explicit (fuzzyBlockingField) or automatic prefix+length blocking so 50k+ rows deduplicate cleanly without quadratic blowups.
  • Smart Survivorship (merge-coalesce & richest): Instead of silently discarding partial rows, merge-coalesce builds a complete golden record (e.g. combining Row A's email with Row B's phone) while recording _duplicateCount and _fuzzyScore.
  • Full SQL-Style Cross-Join Engine: Supports inner, left, right, full, and anti joins on single or composite keys with case/whitespace/URL normalization and collision-safe column prefixing.
  • Voice-of-Customer Reliability Upgrades:
    • Graceful Partial-Source Isolation (failOnSourceError: false): A single 403/404 file URL or missing dataset is captured in SUMMARY.sourceErrors[] while remaining valid sources merge cleanly.
    • Non-Empty Export Verification & Diagnostic emptyOutputReason: Never writes corrupt 0-byte CSV/XLSX files and explicitly explains why 0 rows were emitted (e.g. "All 50 rows removed by filter rule #1").
    • No-Code Custom exportFilePrefix & Source Provenance (addSourceField): Preserves upstream dataset IDs/filenames per row and names KV exports cleanly (<prefix>_CSV, <prefix>_XLSX).
    • Zero-Charge Empty Runs & Hard maxRows BudgetGuard: Charges row-processed strictly for emitted rows and file-exported strictly for verified non-empty artifacts.
  • CSV/XLSX Spreadsheet Formula Safety (csvFormulaSafe: true): Prefixes cells starting with =, +, -, @, \t, or \r with ' to block spreadsheet formula injection.
CapabilityDataset Merge, Fuzzy Dedupe & Cross-Join Prolukaskrivka/dedup-datasets-limited-permissionshumble-echidna/dataset-transformtidydata/merge-dedupe-datasetssaliga/dataset-merge-dedupe
ReliabilityDeterministic + partial-source isolation35.6% success (64% fail rate)99.1%99.7%99.0%
Price per 1,000 Rows (FREE)$0.25 ($0.00025/row)Platform compute$1.00 (4x pricier)$0.25 + $0.005/file$0.50 (2x pricier)
Fuzzy Deduplication4 algorithms + blocking accelerationExact onlyExact onlyExact onlyExact only
Coalesce / Richest Survivorshipfirst, last, richest, merge-coalesceFirst onlyFirst onlyFirst onlyFirst only
SQL-Style Cross-Joinsinner, left, right, full, antiNoneNoneNoneNone
Stateful onlyNew ModeNamed KV store incremental memoryNoneNoneNoneNone
Standby MCP ServerNative JSON-RPC 2.0 + SSE (3 tools)NoneNoneNoneNone

Input Configuration

FieldTypeRequiredDefaultDescription
datasetIdsstring[]No[]Apify Dataset IDs to merge in order (up to 50).
fileUrlsstring[]No[]Public CSV, TSV, JSON, NDJSON, XML, or XLSX URLs (SSRF-protected, up to 50).
kvsRecordsobject[]No[]Optional KV store references [{ storeId?, key, format? }] (up to 50).
rowsobject[]No[]Inline JSON row array or source batches [{ source, rows }] (up to 50,000).
addSourceFieldstringNo""Injects source dataset ID, filename, or batch label under this field name (e.g. "_source").
dedupeModestringNo"normalized"Deduplication mode: "none", "exact", "normalized", or "fuzzy".
dedupeFieldsstring[]No[]Dot-notation key fields (empty hashes the full canonicalized row).
keepRowsWithoutKeybooleanNotrueKeep rows missing all dedupeFields intact instead of colliding them.
fuzzyAlgorithmstringNo"jaro-winkler"Fuzzy metric: "jaro-winkler", "levenshtein", "token-jaccard", or "dice".
similarityThresholdnumberNo0.88Minimum similarity score (0.50–1.00) for fuzzy duplicate clustering.
fuzzyBlockingFieldstringNo""Optional blocking column (e.g. "country") to accelerate large fuzzy deduplications.
keepStrategystringNo"first"Survivorship rule: "first", "last", "richest", or "merge-coalesce".
mergeArraysbooleanNofalseUnion array values across merged duplicates when keepStrategy="merge-coalesce".
normalizeUrlFieldsstring[]No[]Strip protocol, www., UTM/tracking params, and trailing slashes before dedupe/join.
outputDuplicatesToKvsbooleanNofalsePersist rejected duplicates + cluster IDs to KV Store key DUPLICATES_REPORT.
joinobject | nullNonullCross-join config { rightDatasetId?, rightFileUrl?, rightRows?, leftKeys[], rightKeys[], type, prefix?, ignoreCase?, cardinality? }.
filtersobject[]No[]Filter rules [{ field, op, value }] (eq, neq, gt, gte, lt, lte, contains, regex, in, exists, isEmpty).
filterLogicstringNo"AND"Boolean operator combining filters ("AND" or "OR").
onlyNewbooleanNofalseStateful incremental mode emitting only unseen keys across scheduled runs.
stateStoreNamestringNo"dataset-merge-state"Named KV store persisting SEEN_KEYS for onlyNew mode.
selectFieldsstring[]No[]Explicit column whitelist (empty keeps all fields).
dropFieldsstring[]No[]Column blacklist removed before export.
renameFieldsobjectNo{}Column rename map { "oldKey": "newKey" }.
sortByobject[]No[]Multi-key sort [{ field, direction: "asc" | "desc" }].
exportFormatsstring[]No["json"]KV Store export formats ("json", "ndjson", "csv", "xlsx").
exportFilePrefixstringNo"merged"Sanitized KV artifact filename prefix (^[a-zA-Z0-9._-]{1,48}$).
failOnSourceErrorbooleanNofalseIf false, isolate 404/403/parse source errors into SUMMARY.sourceErrors[].
csvFormulaSafebooleanNotruePrefix leading =, +, -, @, \t, \r cells with ' in CSV/XLSX exports.
maxRowsintegerNo100000Hard upper cap on emitted output rows (1–500,000).

Output Example

Captured directly from a local end-to-end test run merging two lead batches with fuzzy merge-coalesce deduplication (similarityThreshold: 0.90), URL canonicalization, and a left enrichment join:

{
"company": "Acme Corp",
"domain": "https://www.acme.com/?utm_source=google",
"email": "sales@acme.com",
"country": "US",
"_source": "crm-export-a",
"phone": "+1-415-555-0199",
"_duplicateCount": 2,
"_fuzzyScore": 0.98,
"enrichment_domain": "acme.com",
"enrichment_arrUsd": 240000,
"enrichment_tier": "Enterprise"
}

Diagnostic SUMMARY record persisted to the Key-Value Store:

{
"inputRowCount": 3,
"sourcesLoaded": 2,
"filteredOutCount": 0,
"exactDuplicatesRemoved": 0,
"fuzzyDuplicatesMerged": 1,
"onlyNewSkippedCount": 0,
"joinMatchedRows": 2,
"joinUnmatchedLeft": 0,
"outputRowCount": 2,
"emptyOutputReason": null,
"sourceErrors": [],
"exportedFiles": [
{ "format": "csv", "kvsKey": "merged_CSV", "filename": "merged.csv", "bytes": 338 },
{ "format": "xlsx", "kvsKey": "merged_XLSX", "filename": "merged.xlsx", "bytes": 17080 }
],
"durationMs": 18
}

Pay-Per-Event (PPE) Pricing

Event KeyEvent TitlePrice (USD)Billing Trigger
actor-startActor run start$0.005Charged once per non-empty merge run (waived on 0-row runs).
row-processedOutput row emitted$0.00025Charged per merged/deduplicated row pushed to the dataset.
file-exportedExport file generated$0.004Charged per verified non-empty KV export file (csv, xlsx, json, ndjson).
mcp-tool-callStandby MCP tool execution$0.003Charged per successful Standby MCP JSON-RPC tool invocation.

Cost Example: Merging and deduplicating into 1,000 clean output rows with 1 CSV export costs $0.005 + (1,000 × $0.00025) + $0.004 = $0.259 USD — 4× cheaper than humble-echidna/dataset-transform ($1.00/1k) and 2× cheaper than saliga/dataset-merge-dedupe ($0.50/1k).

Standby MCP Server & AI Agent Integration

Enable Apify Standby Mode (APIFY_META_ORIGIN=STANDBY) to connect forgekit/dataset-merge-dedupe-pro directly to Claude Desktop, Cursor, or any Model Context Protocol (MCP) client:

  • Health Endpoint: GET /health
  • MCP Endpoint: POST /mcp and GET /mcp (Streamable HTTP + SSE)
  • Exposed MCP Tools:
    • merge_and_dedupe_records — Merge 2+ inline record arrays with exact/normalized/fuzzy dedupe and survivorship rules.
    • fuzzy_dedupe_records — Cluster near-duplicate records via jaro-winkler, levenshtein, token-jaccard, or dice.
    • join_datasets — Run inner, left, right, full, or anti SQL-style joins on composite keys.
{
"mcpServers": {
"dataset-merge-dedupe-pro": {
"url": "https://forgekit--dataset-merge-dedupe-pro.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

Error Handling, Rate Limits & Limitations

  • SSRF & Security Hardening: All fileUrls and join.rightFileUrl inputs enforce http:/https: schemes only and block loopback, RFC 1918 private networks, link-local/cloud metadata (169.254.169.254), and internal redirects. Filter regex rules enforce a 500-char limit and static ReDoS rejection.
  • Partial Source Resilience: With failOnSourceError: false (default), 404/403 or corrupt file sources are logged in SUMMARY.sourceErrors[] without aborting valid sources.
  • File & Memory Bounds: Remote file fetches are capped at 50 MB per URL and inline rows at 50,000 records (maxRows up to 500,000). Fuzzy comparisons per auto-generated bucket are capped at 500 candidates to maintain linear-time throughput.

Quick Start & Example Input

1. Run in Apify Console (No Code)

  1. Open forgekit/dataset-merge-dedupe-pro in Apify Console and click Try for free.
  2. Paste or adjust the ready-to-run input JSON below (safe defaults are pre-filled).
  3. Click Start and export results as JSON, CSV, Excel, or NDJSON from the Output tab.
{
"rows": [
{
"company": "Acme Corp",
"email": "sales@acme.com",
"country": "US"
},
{
"company": "Acme Corp.",
"phone": "+1-415-555-0199",
"country": "US"
}
],
"exportFormats": [
"json"
],
"maxRows": 100000
}

2. Run via API (apify-client — Node.js & Python)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('forgekit/dataset-merge-dedupe-pro').call({"rows":[{"company":"Acme Corp","email":"sales@acme.com","country":"US"},{"company":"Acme Corp.","phone":"+1-415-555-0199","country":"US"}],"exportFormats":["json"],"maxRows":100000});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
from apify_client import ApifyClient
import os
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("forgekit/dataset-merge-dedupe-pro").call(run_input={"rows":[{"company":"Acme Corp","email":"sales@acme.com","country":"US"},{"company":"Acme Corp.","phone":"+1-415-555-0199","country":"US"}],"exportFormats":["json"],"maxRows":100000})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items)

3. Connect to n8n, Make, Zapier & Webhooks

  • n8n / Make / Zapier: Add the official Apify module, choose Run Actor, select forgekit/dataset-merge-dedupe-pro, and pass the JSON payload above.
  • Schedules & Webhooks: Attach an Apify Schedule for recurring runs and trigger downstream webhooks automatically on ACTOR.RUN.SUCCEEDED.

Use Cases — What Can You Do With This Data?

  • Automated RevOps & CRM Hygiene: Chain Dataset Merge, Fuzzy Dedupe & Cross-Join Pro directly after any Apify scraper via Apify Integrations, Make, or n8n so clean, schema-validated records land straight in HubSpot, Salesforce, Airtable, or Google Sheets.
  • Scheduled Pipeline Automation: Trigger runs automatically on dataset completion webhooks with deterministic, zero-hallucination TypeScript logic and predictable per-row Pay-Per-Event pricing.
  • AI & RAG Data Preparation: Clean, deduplicate, diff, or chunk raw web extractions before embedding into Pinecone, Qdrant, Weaviate, or pgvector without burning LLM tokens on boilerplate.
  • Zero-Code Agency Workflows: Replace brittle local Python scripts and manual Excel cleanup with reproducible, audit-logged cloud runs exported directly to JSON, CSV, NDJSON, or Excel.

Frequently Asked Questions (FAQ)

How much does Dataset Merge, Fuzzy Dedupe & Cross-Join Pro cost to run?

You only pay for actual output via transparent Pay-Per-Event billing (starting at $0.00025 per row-processed (Output row emitted); see the PPE Pricing table above). Runs that produce zero billable results or fail upstream incur $0.00 — including zero actor-start fee — and Apify's built-in Max total charge (ACTOR_MAX_TOTAL_CHARGE_USD) hard-caps spend automatically.

Does this Actor require proxies, logins, or CAPTCHA solving?

No. This Actor performs 100% deterministic local data processing on the inputs you provide (Apify Datasets, Key-Value Stores, inline JSON, or public file URLs). It requires zero proxies, zero headless browsers, and never depends on scraping fragile third-party websites.

What export formats and integrations are supported?

Every run stores structured results in an Apify Dataset downloadable as JSON, CSV, Excel (XLSX), NDJSON, XML, or HTML Table via Console or REST API, plus native connectors for n8n, Make, Zapier, Google Sheets, Airtable, Slack, and webhooks.

Can AI agents (Claude Desktop, Cursor, ChatGPT, LangChain) call this Actor directly via MCP?

Yes! Dataset Merge, Fuzzy Dedupe & Cross-Join Pro includes a built-in Standby MCP Server at https://forgekit--dataset-merge-dedupe-pro.apify.actor/mcp supporting JSON-RPC 2.0 (initialize, ping, tools/list, tools/call) with Claude-compliant ^[a-zA-Z0-9_.-]{1,64}$ tool schemas.

How does it protect against runaway costs or bad inputs?

Every input is strictly validated upfront with Zod schemas before any work starts, user-supplied URLs pass SSRF protection blocking private/cloud-metadata IPs, and streaming BudgetGuard enforcement stops immediately once your result or USD budget cap is reached.

How fast and lightweight is it compared to browser scrapers?

It runs on lightweight Node.js 22 (256–512 MB RAM, zero headless browser) so typical runs finish in seconds with high reliability and low platform compute cost.

Explore companion Actors in Data Pipeline & ETL and core ETL utilities to chain end-to-end pipelines:

ActorStore SlugMode
Dataset Diff & Change Detector (Added / Removed / Modified)forgekit/dataset-diff-change-detector✅ Standby MCP
Universal Data Converter & Nested JSON Flattener (JSON, CSV, XLSX, XML, NDJSON, SQLite)forgekit/universal-data-converter-flattener✅ Standby MCP
Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)forgekit/lead-cleaner-schema-normalizer✅ Standby MCP
Bulk Webhook & Rate-Limited HTTP Batch Dispatcher (Retries, Auth & Capture)forgekit/bulk-webhook-http-dispatcherBatch REST API
RSS, Atom & JSON-Feed Aggregator + New-Item Monitor (MCP Ready)forgekit/rss-atom-json-feed-monitor✅ Standby MCP
PDF-to-Markdown, Clean Text & Metadata Extractor (LLM & RAG Ready + MCP)forgekit/pdf-to-markdown-text-extractor✅ Standby MCP
Bulk Domain Availability, RDAP/WHOIS Expiry & Multi-TLD Matrix Checker (MCP)forgekit/bulk-domain-availability-rdap-matrix✅ Standby MCP