JSON Dataset Merger & Deduplicator avatar

JSON Dataset Merger & Deduplicator

Pricing

from $20.00 / 1,000 100 cleaned records

Go to Apify Store
JSON Dataset Merger & Deduplicator

JSON Dataset Merger & Deduplicator

Combine multiple JSON arrays into one deduplicated dataset. Remove duplicates using a field you choose, retain the first matching record, and simplify data preparation for analysis, reporting, and automation workflows.

Pricing

from $20.00 / 1,000 100 cleaned records

Rating

0.0

(0)

Developer

Fadi Hathwa

Fadi Hathwa

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

14 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Turn multiple JSON record arrays into one deduplicated dataset.

Choose a field such as id, email, or url to identify duplicates. The Actor keeps the first matching record, preserves input order, and returns the combined results for analysis, reporting, or your next automation step.

Optional settings enable case-insensitive matching and basic contact-field cleanup.

1. Quick start

  1. Provide your JSON record arrays in datasets.
  2. Choose one top-level field as dedupeField.
  3. Start the Actor.
  4. Open Output to view the results.

Example input

{
"datasets": [
[
{ "id": "1", "name": "Alice" },
{ "id": "2", "name": "Bob" }
],
[
{ "id": "1", "name": "Alice duplicate" },
{ "id": "3", "name": "Charlie" }
]
],
"dedupeField": "id",
"caseInsensitiveDedupe": false,
"sanitizeContacts": false
}
```
### Expected output
```json
[
{ "id": "1", "name": "Alice" },
{ "id": "2", "name": "Bob" },
{ "id": "3", "name": "Charlie" }
]
```
Four input records become three output records. The first record with ID `"1"` is retained; the later duplicate is removed.
## 2. Input settings
| Setting | Required | Description |
| --- | --- | --- |
| `datasets` | Yes | An array containing arrays of JSON objects. |
| `dedupeField` | Yes | One top-level field used to identify duplicates. |
| `caseInsensitiveDedupe` | No | Defaults to `false`. Ignores letter case and surrounding spaces when comparing text keys. |
| `sanitizeContacts` | No | Defaults to `false`. Trims text and applies basic email and phone formatting cleanup. |
### Case-insensitive matching
Enable `caseInsensitiveDedupe` to treat values such as `"ABC-1"` and `" abc-1 "` as the same key.
This setting changes how keys are compared; it does not itself rewrite the retained record.
### Contact-field cleanup
When `sanitizeContacts` is enabled, the Actor:
- Trims leading and trailing spaces from text values.
- Lowercases email values in recognized email fields.
- Removes formatting from recognized phone values where applicable, preserving a leading `+`.
Contact cleanup is not contact verification. It does not check email deliverability, verify phone ownership, or add country codes.
Cleanup is applied before deduplication, so it can affect matching when the selected key is a cleaned field.
## 3. Matching rules and limits
### Duplicate handling
- Records are processed in the order supplied.
- The first record with each matching key is retained.
- Later matching records are removed, not merged field by field.
- Missing, null, and empty-string keys are retained rather than deduplicated.
- Matching is case-sensitive by default.
- Value types matter: the number `1` and the string `"1"` are different keys.
### Supported input
- Up to 1,000 input records per run across all arrays.
- Up to 1 MiB of serialized JSON input.
- Each record must be a JSON object.
- Deduplication keys may be strings, numbers, or booleans; null and missing keys are also accepted.
### Not supported
- Fetching Apify datasets by ID.
- Importing CSV files or downloading data from URLs.
- Website scraping.
- Deduplication by multiple fields or nested field paths.
- Fuzzy matching or automatic identity resolution.
Supply the records directly in the JSON input.
## 4. Results and pricing
### Results
The Actor saves delivered records to the run's default dataset.
A `SUMMARY` record in the default key-value store provides processing counts and billing-related information.
If the run's spending limit prevents delivery of another batch, the output may be partial. Check `SUMMARY` before treating the output as complete.
### Pricing
The configured price is **$0.02 per batch of up to 100 delivered output records**, plus the Actor-start fee displayed in the Pricing tab.
A partial batch counts as one full batch. Removed duplicates do not count toward the delivered-record total.
| Delivered records | Billable batches | Batch charges |
| --- | --- | --- |
| 0 | 0 | $0.00 |
| 1–100 | 1 | $0.02 |
| 101–200 | 2 | $0.04 |
| 1,000 | 10 | $0.20 |
The amounts above exclude the Actor-start fee.
**Understanding the Store price:** `$20 per 1,000 events` means 1,000 batches of up to 100 records each—not 1,000 individual records.
The Pricing tab shows the current rates.
## 5. Troubleshooting and support
- **Input rejected:** Check that `datasets` contains arrays of objects, `dedupeField` is a non-empty string, and the input stays within the limits.
- **Duplicates remain:** Check the selected field, differences in value types, and the case-insensitive setting.
- **Fewer results than expected:** Check the run log and `SUMMARY`, including whether the spending limit stopped delivery.
- **Contact values look unchanged:** Cleanup depends on recognized field names and supported value formats; it is not a general-purpose contact validator.
To report a problem, use the Actor's Issues tab. Include the error message, relevant settings, and a small anonymized input example.
Never include passwords, API tokens, or sensitive personal information in a public issue.