# Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep) (`forgekit/lead-cleaner-schema-normalizer`) Actor

Clean, normalize & validate B2B lead lists locally: 80+ global legal suffixes, smart human name parsing, E.164 phones, ISO-2 countries, currencies, ISO dates, schema quarantine, CRM column preservation, and Standby MCP.

- **URL**: https://apify.com/forgekit/lead-cleaner-schema-normalizer.md
- **Developed by:** [James Edmans](https://apify.com/forgekit) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.28 / 1,000 lead rows normalized & validated

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)

> **Apify Store Actor:** `forgekit/lead-cleaner-schema-normalizer` | **Runtime:** Node.js 22 (100% local deterministic B2B ETL, 256–1024 MB RAM) | **Billing:** Pay-Per-Event (PPE) + Standby MCP Server

### Overview

**Lead List Cleaner, Schema Validator & Normalizer** prepares raw scraped and exported B2B lead lists for 1-click re-import into **HubSpot, Salesforce, Clay, Apollo, Smartlead, Make, or Zapier** — running 100% locally with zero external backend APIs, zero `500 Internal Server Error` outages, and zero double-billing retries.

It auto-detects CRM headers (`Company Name`, `Work Email`, `Full Name`, `Phone`, `Country`, `Revenue`), strips **80+ global legal entity suffixes** (`Ltd`, `LLC`, `Inc`, `GmbH & Co. KG`, `SAS`, `B.V.`, `AB`, `Pty Ltd`, `Sp. z o.o.`), parses complex human names (`Dr.`, `van der`, `O'Connor`, `McDonald`, `PhD`), formats international phones to **E.164** via `libphonenumber-js`, maps 249 countries and aliases to **ISO 3166-1 alpha-2**, normalizes dates and shorthand currencies (`$2.5M`, `€12.5k`, `£1,250.50`), backfills corporate domains from work emails, validates declarative schema rules with quarantine routing (`QUARANTINE_ROWS`), and assigns a deterministic **`0–100` lead quality score**.

### Features vs Competitors

- **Global B2B Company Normalizer:** Strips 80+ US/UK/EU/APAC legal suffixes into `companyClean` + `legalSuffix` while preserving acronyms (`IBM`, `SaaS`, `AI`, `UK`, `AWS`).
- **Smart Human Name Parser:** Splits `fullName` into `salutation`, `firstName`, `middleName`, `lastName`, and `nameSuffix` handling ALL-CAPS shouting, nobiliary particles (`van der`, `de la`), Irish/Scottish prefixes (`O'Connor`, `McDonald`), and hyphenated surnames.
- **Voice-of-Customer Upgrades:**
  - **Zero-Trap Transparent Pricing:** Clean `$0.0004/lead` FREE — eliminating the predatory `$100/1k` FREE-plan cliff complained about on competing verifiers.
  - **100% Local Zero-Backend Engine:** Deterministic local execution means zero external server `500` errors and zero duplicate billing retries.
  - **CRM Round-Trip Column Preservation (`preserveOriginalColumns: true`):** Keeps every custom HubSpot/Salesforce/Clay column untouched alongside normalized outputs for instant CRM re-upload.
  - **Zero-Charge Blank Row Skipping:** Completely blank spreadsheet rows are skipped before billing and reported in `SUMMARY.blankRowsSkipped`.
- **Declarative Schema Validator & Quarantine Routing:** Validates `required`, `type` (`string`, `number`, `email`, `url`, `date`, `boolean`), `min`/`max`, `enum`, and ReDoS-safe `pattern` rules with `"tag"`, `"quarantine"` (`QUARANTINE_ROWS`), or `"drop"` routing.

| Capability | Lead List Cleaner & Normalizer | `nerolabs/dataset-cleaner-exporter` | `saliga/dataset-merge-dedupe` | `michael.g/email-verifier-validator` |
|---|---|---|---|---|
| Price per 1,000 Leads (FREE) | **$0.40** (`$0.0004/lead`, flat transparent) | $2.00 (5x pricier) | $0.50 | Up to **$100/1k** on FREE plan! |
| 80+ Global Legal Entity Suffix Stripping | Built-in (`companyClean` + `legalSuffix`) | Basic string trim only | None | None |
| Human Name Splitting (`Dr.`, `van der`, `PhD`) | Full 5-part parser + casing repair | None | None | None |
| E.164 Phones + 249 ISO-2 Countries + Currencies | Built-in (`libphonenumber-js` + shorthand `$2.5M`) | None | None | None |
| Schema Validator + Quarantine KV Routing | Built-in (`QUARANTINE_ROWS` + `_qualityScore`) | None | None | None |
| CRM Original Column Preservation & Zero Blank Billing | Built-in (`preserveOriginalColumns`, `blankRowsSkipped`) | Partial | Partial | Fails on blank/500 retries |
| Standby MCP Server | Native JSON-RPC 2.0 + SSE (2 tools) | None | None | None |

### Input Configuration

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `datasetId` | `string` | No | `""` | Apify Dataset ID containing raw leads. |
| `fileUrl` | `string` | No | `""` | Public CSV, TSV, JSON, NDJSON, or XLSX URL (SSRF-protected). |
| `rows` | `object[]` | No | `[]` | Inline JSON array of lead objects (up to 100,000). |
| `fieldMapping` | `object` | No | `{}` | Optional explicit `{ company, fullName, firstName, lastName, email, phone, website, country, date, revenue }` map (auto-detected if omitted). |
| `normalizeCompanyNames` | `boolean` | No | `true` | Strip 80+ global legal suffixes into `companyClean` + `legalSuffix`. |
| `splitFullNames` | `boolean` | No | `true` | Split `fullName` into `salutation`, `firstName`, `middleName`, `lastName`, `nameSuffix`. |
| `normalizePhones` | `boolean` | No | `true` | Format phone numbers into E.164 via `libphonenumber-js`. |
| `defaultCountry` | `string` | No | `"US"` | 2-letter ISO 3166-1 alpha-2 fallback for local phone formats and slash-date ordering (`US` vs `GB`). |
| `normalizeUrlsAndDomains` | `boolean` | No | `true` | Canonicalize websites, extract `rootDomain`, and backfill corporate domain from work email. |
| `normalizeDates` | `boolean` | No | `true` | Parse US/EU dates, named dates, and Unix timestamps to ISO `YYYY-MM-DD`. |
| `normalizeCurrencies` | `boolean` | No | `true` | Parse formatted/shorthand money strings (`$2.5M`, `€12.5k`, `£1,250.50`) into numeric + ISO code. |
| `normalizeCountries` | `boolean` | No | `true` | Normalize country names and aliases into ISO-2 codes (`GB`, `US`, `DE`). |
| `validationRules` | `object[]` | No | `[]` | Declarative schema rules `[{ field, required?, type?, min?, max?, enum?, pattern? }]` (up to 50). |
| `invalidRowAction` | `string` | No | `"tag"` | `"tag"` (inline `_isValid: false`), `"quarantine"` (KV `QUARANTINE_ROWS`), or `"drop"`. |
| `dedupeByEmailOrDomain` | `boolean` | No | `false` | Optional post-normalization deduplication by normalized email or `rootDomain`. |
| `preserveOriginalColumns` | `boolean` | No | `true` | Keep every original HubSpot/Salesforce/Clay column alongside normalized outputs. |
| `maxRows` | `integer` | No | `100000` | Hard upper cap on processed leads (`1`–`500,000`). |

### Output Example

Captured directly from a local end-to-end run normalizing a messy HubSpot UK contact record (`defaultCountry: "GB"`):

```json
{
  "hubspot_contact_id": "hs_1042",
  "Company Name": "Acme Holdings (UK) Ltd.",
  "Full Name": "DR. JANE VAN DER BERG, PHD",
  "Work Email": "Jane.VDB@acme-holdings.co.uk",
  "Phone": "020 7946 0958",
  "Country": "United Kingdom",
  "Revenue": "£2.5M",
  "Signup Date": "05/04/2026",
  "countryIso2": "GB",
  "companyClean": "Acme Holdings (UK)",
  "legalSuffix": "Ltd",
  "salutation": "Dr.",
  "firstName": "Jane",
  "middleName": null,
  "lastName": "van der Berg",
  "nameSuffix": "PhD",
  "emailNormalized": "jane.vdb@acme-holdings.co.uk",
  "emailDomain": "acme-holdings.co.uk",
  "isFreeEmailProvider": false,
  "websiteCanonical": "https://acme-holdings.co.uk",
  "rootDomain": "acme-holdings.co.uk",
  "phoneE164": "+442079460958",
  "dateIso": "2026-04-05",
  "currencyAmount": 2500000,
  "currencyCode": "GBP",
  "_qualityScore": 100,
  "_isValid": true,
  "_validationErrors": [],
  "_normalizationsApplied": [
    "country",
    "company",
    "personName",
    "email",
    "domainBackfillFromEmail",
    "phone",
    "date",
    "currency"
  ]
}
```

### Pay-Per-Event (PPE) Pricing

| Event Key | Event Title | Price (USD) | Billing Trigger |
|---|---|---:|---|
| `actor-start` | Actor run start | `$0.002` | Charged once on non-empty cleaning runs (waived when 0 non-blank leads). |
| `lead-cleaned` | Lead row normalized & validated | `$0.0004` | Charged strictly per non-blank lead processed (blank rows skipped free). |
| `mcp-tool-call` | Standby MCP tool execution | `$0.003` | Charged per successful Standby MCP JSON-RPC tool invocation. |

**Cost Example:** Cleaning, normalizing, and scoring `1,000` HubSpot leads costs `$0.002 + (1,000 × $0.0004) = $0.402 USD` — 5× cheaper than `nerolabs/dataset-cleaner-exporter` with zero FREE-tier pricing traps.

### Standby MCP Server & AI Agent Integration

Enable Apify Standby Mode (`APIFY_META_ORIGIN=STANDBY`) to connect `forgekit/lead-cleaner-schema-normalizer` directly to Claude Desktop, Cursor, or any MCP client:

- **Health Endpoint:** `GET /health`
- **MCP Endpoint:** `POST /mcp` and `GET /mcp` (Streamable HTTP + SSE)
- **Exposed MCP Tools:**
  - `clean_and_normalize_leads` — Normalizes B2B lead records and returns cleaned fields + `0–100` quality scores.
  - `validate_records_schema` — Validates arbitrary records against declarative schema rules, returning valid/invalid splits and violation reasons.

```json
{
  "mcpServers": {
    "lead-cleaner-schema-normalizer": {
      "url": "https://forgekit--lead-cleaner-schema-normalizer.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

### Error Handling, Rate Limits & Limitations

- **Security Hardening:** Remote `fileUrl` ingestion enforces SSRF protection (`http:`/`https:` only, blocking private/loopback/metadata IPs, `50 MB` cap). Custom `validationRules[].pattern` regexes enforce a `500`-char limit and static ReDoS rejection.
- **Email Validation Scope:** Email checks perform deterministic syntax, domain extraction, and free-provider classification (`isFreeEmailProvider`); no external SMTP handshakes are executed.
- **Ambiguous Slash Dates:** Numeric slash dates like `05/04/2026` resolve as `MM/DD/YYYY` when `countryIso2`/`defaultCountry === "US"` and `DD/MM/YYYY` otherwise.

### Quick Start & Example Input

#### 1. Run in Apify Console (No Code)

1. Open **[`forgekit/lead-cleaner-schema-normalizer`](https://apify.com/forgekit/lead-cleaner-schema-normalizer)** 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.

```json
{
  "rows": [
    {
      "Company Name": "Acme Holdings (UK) Ltd.",
      "Full Name": "DR. JANE VAN DER BERG, PHD",
      "Work Email": "Jane.VDB@acme-holdings.co.uk",
      "Phone": "020 7946 0958",
      "Country": "United Kingdom",
      "Revenue": "£2.5M"
    }
  ],
  "maxRows": 100000
}
```

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

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('forgekit/lead-cleaner-schema-normalizer').call({"rows":[{"Company Name":"Acme Holdings (UK) Ltd.","Full Name":"DR. JANE VAN DER BERG, PHD","Work Email":"Jane.VDB@acme-holdings.co.uk","Phone":"020 7946 0958","Country":"United Kingdom","Revenue":"£2.5M"}],"maxRows":100000});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

```python
from apify_client import ApifyClient
import os

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("forgekit/lead-cleaner-schema-normalizer").call(run_input={"rows":[{"Company Name":"Acme Holdings (UK) Ltd.","Full Name":"DR. JANE VAN DER BERG, PHD","Work Email":"Jane.VDB@acme-holdings.co.uk","Phone":"020 7946 0958","Country":"United Kingdom","Revenue":"£2.5M"}],"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/lead-cleaner-schema-normalizer`, 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 **Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)** 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 Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep) cost to run?

You only pay for actual output via transparent Pay-Per-Event billing (starting at `$0.0004` per `lead-cleaned` (Lead row normalized & validated); 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! **Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)** includes a built-in **Standby MCP Server** at `https://forgekit--lead-cleaner-schema-normalizer.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.

### Related `forgekit` Actors

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

| Actor | Store Slug | Mode |
|---|---|---|
| [Dataset Merge, Fuzzy Dedupe & Cross-Join Pro](https://apify.com/forgekit/dataset-merge-dedupe-pro) | `forgekit/dataset-merge-dedupe-pro` | ✅ Standby MCP |
| [Dataset Diff & Change Detector (Added / Removed / Modified)](https://apify.com/forgekit/dataset-diff-change-detector) | `forgekit/dataset-diff-change-detector` | ✅ Standby MCP |
| [Universal Data Converter & Nested JSON Flattener (JSON, CSV, XLSX, XML, NDJSON, SQLite)](https://apify.com/forgekit/universal-data-converter-flattener) | `forgekit/universal-data-converter-flattener` | ✅ Standby MCP |
| [Bulk Webhook & Rate-Limited HTTP Batch Dispatcher (Retries, Auth & Capture)](https://apify.com/forgekit/bulk-webhook-http-dispatcher) | `forgekit/bulk-webhook-http-dispatcher` | Batch REST API |
| [RSS, Atom & JSON-Feed Aggregator + New-Item Monitor (MCP Ready)](https://apify.com/forgekit/rss-atom-json-feed-monitor) | `forgekit/rss-atom-json-feed-monitor` | ✅ Standby MCP |
| [PDF-to-Markdown, Clean Text & Metadata Extractor (LLM & RAG Ready + MCP)](https://apify.com/forgekit/pdf-to-markdown-text-extractor) | `forgekit/pdf-to-markdown-text-extractor` | ✅ Standby MCP |
| [Bulk Domain Availability, RDAP/WHOIS Expiry & Multi-TLD Matrix Checker (MCP)](https://apify.com/forgekit/bulk-domain-availability-rdap-matrix) | `forgekit/bulk-domain-availability-rdap-matrix` | ✅ Standby MCP |

# Actor input Schema

## `datasetId` (type: `string`):

Apify Dataset ID containing raw lead records.

## `fileUrl` (type: `string`):

Public URL to a CSV, TSV, JSON, NDJSON, or XLSX lead list (SSRF-protected).

## `rows` (type: `array`):

Inline JSON array of B2B lead records for direct API or MCP runs.

## `fieldMapping` (type: `object`):

Optional explicit map { company, fullName, firstName, lastName, email, phone, website, country, date, revenue }. Auto-detected from CRM header aliases if omitted.

## `normalizeCompanyNames` (type: `boolean`):

Strip 80+ global legal entity suffixes (Ltd, LLC, Inc, GmbH & Co. KG, SAS, B.V., Pty Ltd, etc.) into companyClean + legalSuffix.

## `splitFullNames` (type: `boolean`):

Parse fullName into salutation, firstName, middleName, lastName, and nameSuffix with proper casing.

## `normalizePhones` (type: `boolean`):

Format phone numbers into international E.164 format via libphonenumber-js.

## `defaultCountry` (type: `string`):

ISO 3166-1 alpha-2 fallback country for local phone formats and ambiguous slash dates (e.g. US vs GB).

## `normalizeUrlsAndDomains` (type: `boolean`):

Canonicalize website URLs, extract rootDomain, and backfill domain from non-free work emails.

## `normalizeDates` (type: `boolean`):

Parse US/EU dates, named dates, and Unix timestamps to YYYY-MM-DD.

## `normalizeCurrencies` (type: `boolean`):

Parse formatted/shorthand money values ($2.5M, €12.5k, £1,250.50) into numeric currencyAmount + ISO currencyCode.

## `normalizeCountries` (type: `boolean`):

Map country names and aliases (United Kingdom, U.K., Deutschland) to ISO 3166-1 alpha-2 codes.

## `validationRules` (type: `array`):

Per-field validation rules \[{ field, required?, type?: string|number|email|url|date|boolean, min?, max?, enum?, pattern? }].

## `invalidRowAction` (type: `string`):

Tag invalid rows inline, isolate them in KV QUARANTINE_ROWS, or drop them.

## `dedupeByEmailOrDomain` (type: `boolean`):

Remove duplicate leads sharing the same normalized email (or rootDomain when email is absent).

## `preserveOriginalColumns` (type: `boolean`):

Retain all original HubSpot/Salesforce/Clay custom columns alongside cleaned normalized columns for 1-click re-import.

## `maxRows` (type: `integer`):

Hard upper cap on non-blank lead rows processed.

## Actor input object example

```json
{
  "datasetId": "",
  "fileUrl": "",
  "rows": [
    {
      "Company Name": "Acme Holdings (UK) Ltd.",
      "Full Name": "DR. JANE VAN DER BERG, PHD",
      "Work Email": "Jane.VDB@acme-holdings.co.uk",
      "Phone": "020 7946 0958",
      "Country": "United Kingdom",
      "Revenue": "£2.5M"
    }
  ],
  "fieldMapping": {},
  "normalizeCompanyNames": true,
  "splitFullNames": true,
  "normalizePhones": true,
  "defaultCountry": "US",
  "normalizeUrlsAndDomains": true,
  "normalizeDates": true,
  "normalizeCurrencies": true,
  "normalizeCountries": true,
  "validationRules": [],
  "invalidRowAction": "tag",
  "dedupeByEmailOrDomain": false,
  "preserveOriginalColumns": true,
  "maxRows": 100000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `quarantineRows` (type: `string`):

No description

## `ppeLedger` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "rows": [
        {
            "Company Name": "Acme Holdings (UK) Ltd.",
            "Full Name": "DR. JANE VAN DER BERG, PHD",
            "Work Email": "Jane.VDB@acme-holdings.co.uk",
            "Phone": "020 7946 0958",
            "Country": "United Kingdom",
            "Revenue": "£2.5M"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("forgekit/lead-cleaner-schema-normalizer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "rows": [{
            "Company Name": "Acme Holdings (UK) Ltd.",
            "Full Name": "DR. JANE VAN DER BERG, PHD",
            "Work Email": "Jane.VDB@acme-holdings.co.uk",
            "Phone": "020 7946 0958",
            "Country": "United Kingdom",
            "Revenue": "£2.5M",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("forgekit/lead-cleaner-schema-normalizer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "rows": [
    {
      "Company Name": "Acme Holdings (UK) Ltd.",
      "Full Name": "DR. JANE VAN DER BERG, PHD",
      "Work Email": "Jane.VDB@acme-holdings.co.uk",
      "Phone": "020 7946 0958",
      "Country": "United Kingdom",
      "Revenue": "£2.5M"
    }
  ]
}' |
apify call forgekit/lead-cleaner-schema-normalizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,forgekit/lead-cleaner-schema-normalizer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GfMaG9xfSsXahPHqj/builds/Z2jMEt43mgBDaJT1c/openapi.json
