Dataset Deduplicator avatar

Dataset Deduplicator

Pricing

from $0.30 / 1,000 record processeds

Go to Apify Store
Dataset Deduplicator

Dataset Deduplicator

Remove exact and near-duplicate records (SimHash) from JSON/JSONL data. Keeps the first occurrence and tells you which record each duplicate matched and how close.

Pricing

from $0.30 / 1,000 record processeds

Rating

0.0

(0)

Developer

Colton Mcclain

Colton Mcclain

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

Deduplicate JSON/JSONL data and see exactly why each record was dropped.

What problem does it solve?

Scraped or exported datasets contain repeated and lightly-edited records that inflate costs and skew training or analytics.

What it does

  • Exact matching after Unicode NFKC, case and whitespace normalisation (SHA-256).
  • Near-duplicate matching with 64-bit SimHash over character 3-grams, with a threshold you control.
  • Every record gets a verdict (kept / duplicate / empty), the record it matched, the match type and distance.
  • Kept records are returned in full so the dataset itself is your deduplicated output.

Pricing (pay per event)

EventPrice
Actor start (once per run, per GB of memory, minimum one)$0.0050
Record processed (per record processed)$0.0003

You pay only for the events above plus nothing else from ELYRAON; Apify platform usage is covered by the event prices. The start event is charged on every run, including a run rejected for invalid input (nothing else is charged in that case). If you set a maximum charge per run, the Actor stops when it is reached and reports PARTIAL_MAX_CHARGE in the OUTPUT record, so you are never silently billed beyond your cap and never told a partial result is complete.

Input

FieldTitleRequiredDescription
recordsRecordsnoRecords to process. Each item is a JSON object or a plain string.
file_urlFile URLnoPublic http(s) URL of a JSON array or JSONL file. Use instead of Records.
modeModenoexact = identical after Unicode/whitespace/case normalisation. near = also SimHash near-duplicates.
near_thresholdNear-duplicate thresholdnoMax Hamming distance (0-7) between 64-bit SimHashes to call two records near-duplicates. Lower = stricter.
text_fieldsText fields to comparenoTop-level keys whose text is compared. Empty = all string values in the record.

Example input:

{
"records": [
{
"text": "The quick brown fox jumps over the lazy dog near the river bank."
},
{
"text": "The quick brown fox jumps over the lazy dog near the river bank!"
}
],
"mode": "near"
}

Output

Results go to the run's default dataset (download as JSON, CSV or Excel). Each item:

FieldTypeDescription
record_indexinteger1-based position in your input.
statusstringkept, duplicate, or empty.
duplicate_ofintegerrecord_index of the kept record this duplicates.
match_typestringexact or near.
distanceintegerSimHash Hamming distance (0 for exact).
recordobjectThe original record (kept records only).

Example item:

{
"record_index": 2,
"status": "duplicate",
"duplicate_of": 1,
"match_type": "near",
"distance": 1
}

The key-value store holds OUTPUT (run summary: status, counts, warnings, limitations, version, source commit) and REPORT.md (readable summary). OUTPUT.status is SUCCEEDED, PARTIAL_MAX_CHARGE, PARTIAL_RESULT_LIMIT or FAILED (with a structured error code/message/field). Invalid or empty input fails the run immediately with an explanation and returns no results.

Use from code

curl -X POST "https://api.apify.com/v2/acts/colt2822~dataset-deduplicator/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" -d '{"records": [{"text": "The quick brown fox jumps over the lazy dog near the river bank."}, {"text": "The quick brown fox jumps over the lazy dog near the river bank!"}], "mode": "near"}'
from apify_client import ApifyClient
run = ApifyClient("$APIFY_TOKEN").actor("colt2822/dataset-deduplicator").call(run_input={"records": [{"text": "The quick brown fox jumps over the lazy dog near the river bank."}, {"text": "The quick brown fox jumps over the lazy dog near the river bank!"}], "mode": "near"})

This Actor can also be called by AI agents through the Apify MCP server (https://mcp.apify.com), which exposes Actors as tools.

Limitations

  • Near matching finds typo/reword variants, not semantic paraphrases.
  • Texts under 20 characters match exactly only.
  • Candidate search is bounded per record; a warning is reported if the bound was hit.
  • Max 50,000 records per run.

Support

Questions or problems: https://elyraon.com.co/contact/ (ELYRAON). Source revision: 64dbaa5. Actor version 1.0.