# One company, one row – B2B lead list deduplication

**Use case:** 

Lead lists in, one row per company out: 10 rows from a map listing, a contact export and a job board become 6 companies. Every merged row says why – `matchedBy` names what the rows share (website domain, email domain, phone, or company name with place), `matchEvidence` the shared values. Two clinics with the same name in different towns stay two rows. Made-up companies in the shape of real rows.

## Input

```json
{
  "items": [
    {
      "source": "map listing",
      "company": "Sample Robotics Inc. – Austin Office",
      "website": "https://www.example.com/contact?utm_source=maps",
      "phone": "(512) 555-0142",
      "city": "Austin",
      "postalCode": "78701",
      "countryCode": "US"
    },
    {
      "source": "contact export",
      "company": "Sample Robotics, Inc.",
      "website": "example.com",
      "email": "sales@example.com",
      "phone": "+1 512 555 0142",
      "city": "Austin",
      "postalCode": "78701",
      "countryCode": "US"
    },
    {
      "source": "job board",
      "company": "SAMPLE ROBOTICS INC",
      "city": "Austin",
      "postalCode": "78701",
      "countryCode": "US"
    },
    {
      "source": "map listing",
      "company": "Demo Logistics B.V.",
      "website": "https://example.org/nl/",
      "city": "Rotterdam",
      "postalCode": "3011",
      "countryCode": "NL"
    },
    {
      "source": "contact export",
      "company": "Demo Logistics",
      "email": "planning@example.org",
      "city": "Rotterdam",
      "countryCode": "NL"
    },
    {
      "source": "map listing",
      "company": "Madeup Foods Ltd",
      "phone": "0113 496 0731",
      "city": "Leeds",
      "postalCode": "LS1 4AP",
      "countryCode": "GB"
    },
    {
      "source": "contact export",
      "company": "MF Wholesale Desk",
      "phone": "+44 113 496 0731",
      "city": "Leeds",
      "countryCode": "GB"
    },
    {
      "source": "map listing",
      "company": "Placeholder Dental Clinic",
      "city": "Leeds",
      "postalCode": "LS2 7HY",
      "countryCode": "GB"
    },
    {
      "source": "contact export",
      "company": "Placeholder Dental Clinic",
      "city": "York",
      "postalCode": "YO1 7HH",
      "countryCode": "GB"
    },
    {
      "source": "job board",
      "company": "Imaginary Solar AB",
      "city": "Malmö",
      "postalCode": "211 20",
      "countryCode": "SE"
    }
  ],
  "mode": "companies",
  "normalize": true,
  "output": "unique",
  "matchOn": [
    "domain",
    "email_domain",
    "phone",
    "company_name"
  ],
  "nameMatch": "with_place",
  "filterMode": "all",
  "addSourceField": false
}
```

## Output

```json
{
  "company": {
    "label": "Company",
    "format": "text"
  },
  "website": {
    "label": "Website",
    "format": "text"
  },
  "email": {
    "label": "Email",
    "format": "text"
  },
  "phone": {
    "label": "Phone",
    "format": "text"
  },
  "postalCode": {
    "label": "Postal code",
    "format": "text"
  },
  "city": {
    "label": "Town",
    "format": "text"
  },
  "mergedRows": {
    "label": "Merged rows",
    "format": "number"
  },
  "matchedBy": {
    "label": "Matched by",
    "format": "array"
  },
  "matchEvidence": {
    "label": "Shared values",
    "format": "object"
  }
}
```

## How it works

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

The Merge & Dedupe Datasets – Company & Lead Deduplication Actor is ready to run with the inputs already set for "One company, one row – B2B lead list deduplication". [Sign up or log in](https://console.apify.com/create-task-from-example/7lPmQNaOB5box1nCS) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "One company, one row – B2B lead list deduplication" task

The Merge & Dedupe Datasets – Company & Lead Deduplication Actor will start running based on the input automatically. You can also change all the input fields, like rows in the input (json), what to do, and more, to match your specific use case.

### 3. Receive the "One company, one row – B2B lead list deduplication" 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 company, website, 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 "One company, one row – B2B lead list deduplication" task via API](https://apify.com/perceptr0n/merge-dedupe-datasets-company-leads.md).

## About this Actor

This example demonstrates how to use [Merge & Dedupe Datasets – Company & Lead Deduplication](https://apify.com/perceptr0n/merge-dedupe-datasets-company-leads.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/perceptr0n/merge-dedupe-datasets-company-leads.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/perceptr0n/merge-dedupe-datasets-company-leads.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`).
