# Find Fuzzy Duplicate Company Names and Merge Them

**Use case:** 

Find near-duplicate company records that exact matching misses: typos, extra words like Ltd, reordered words and accents. Each group is merged into one enriched row that fills empty fields from its copies, and every match is listed with its score in a report. Replace the pasted rows with your CRM export.

## Input

```json
{
  "items": [
    {
      "company": "Acme Incorporated",
      "city": "Austin",
      "website": "",
      "employees": 120
    },
    {
      "company": "Acme Incorporated Ltd",
      "city": "",
      "website": "https://www.acme.com",
      "employees": ""
    },
    {
      "company": "Globex Corporation",
      "city": "Boston",
      "website": "globex.com",
      "employees": 900
    },
    {
      "company": "Globec Corporation",
      "city": "Boston",
      "website": "",
      "employees": ""
    },
    {
      "company": "Société Initech",
      "city": "Paris",
      "website": "",
      "employees": 40
    },
    {
      "company": "Societe Initech",
      "city": "",
      "website": "initech.fr",
      "employees": ""
    },
    {
      "company": "Umbrella Holdings",
      "city": "Raccoon City",
      "website": "",
      "employees": 5000
    },
    {
      "company": "Holdings Umbrella",
      "city": "",
      "website": "umbrella.example",
      "employees": ""
    },
    {
      "company": "Wayne Enterprises",
      "city": "Gotham",
      "website": "",
      "employees": 300
    }
  ],
  "keyFields": [
    "company"
  ],
  "matchMode": "fuzzy",
  "fuzzyAlgorithm": "tokenSet",
  "fuzzyThreshold": 85,
  "blocking": "prefix",
  "blockingChars": 2,
  "normalise": [
    "trim",
    "caseFold",
    "collapseSpaces",
    "stripPunctuation",
    "stripAccents"
  ],
  "fieldTypes": {
    "email": "email"
  },
  "emailGmailDots": false,
  "emailPlusTags": false,
  "phoneLastDigits": 0,
  "keepStrategy": "first",
  "mergeDuplicates": true,
  "outputMode": "unique",
  "addDuplicateCount": true,
  "addClusterId": true,
  "duplicatesReport": true,
  "maxReportRows": 10000,
  "exports": [
    "csv"
  ],
  "exportName": "clean-data",
  "escapeFormulas": true,
  "maxItems": 500000,
  "maxFileSizeMb": 50,
  "csvInferTypes": true
}
```

## Output

```json
{
  "id": {
    "label": "Id"
  },
  "name": {
    "label": "Name"
  },
  "email": {
    "label": "Email"
  },
  "company": {
    "label": "Company"
  },
  "phone": {
    "label": "Phone"
  },
  "city": {
    "label": "City"
  },
  "text": {
    "label": "Text"
  },
  "duplicateCount": {
    "label": "Duplicates removed",
    "format": "integer"
  },
  "clusterId": {
    "label": "Cluster ID",
    "format": "integer"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Remove Duplicates: Deduplicate Datasets, CSV & Excel Actor is ready to run with the inputs already set for "Find Fuzzy Duplicate Company Names and Merge Them". [Sign up or log in](https://console.apify.com/create-task-from-example/M5JdiuoGAz2GivSep) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find Fuzzy Duplicate Company Names and Merge Them" task

The Remove Duplicates: Deduplicate Datasets, CSV & Excel Actor will start running based on the input automatically. You can also change all the input fields, like items to deduplicate (pasted json), key fields (what makes a duplicate), and more, to match your specific use case.

### 3. Receive the "Find Fuzzy Duplicate Company Names and Merge Them" 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 id, name, email, and more.

### 4. 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 "Find Fuzzy Duplicate Company Names and Merge Them" task via API](https://apify.com/data-done-right/remove-duplicates.md).

## About this Actor

This example demonstrates how to use [Remove Duplicates: Deduplicate Datasets, CSV & Excel](https://apify.com/data-done-right/remove-duplicates.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data-done-right/remove-duplicates.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/data-done-right/remove-duplicates.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
