Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)
Pricing
from $0.28 / 1,000 lead rows normalized & validated
Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)
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.
Pricing
from $0.28 / 1,000 lead rows normalized & validated
Rating
0.0
(0)
Developer
James Edmans
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
15 hours ago
Last modified
Categories
Features
Share
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+legalSuffixwhile preserving acronyms (IBM,SaaS,AI,UK,AWS). - Smart Human Name Parser: Splits
fullNameintosalutation,firstName,middleName,lastName, andnameSuffixhandling 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/leadFREE — eliminating the predatory$100/1kFREE-plan cliff complained about on competing verifiers. - 100% Local Zero-Backend Engine: Deterministic local execution means zero external server
500errors 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.
- Zero-Trap Transparent Pricing: Clean
- Declarative Schema Validator & Quarantine Routing: Validates
required,type(string,number,email,url,date,boolean),min/max,enum, and ReDoS-safepatternrules 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"):
{"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 /mcpandGET /mcp(Streamable HTTP + SSE) - Exposed MCP Tools:
clean_and_normalize_leads— Normalizes B2B lead records and returns cleaned fields +0–100quality scores.validate_records_schema— Validates arbitrary records against declarative schema rules, returning valid/invalid splits and violation reasons.
{"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
fileUrlingestion enforces SSRF protection (http:/https:only, blocking private/loopback/metadata IPs,50 MBcap). CustomvalidationRules[].patternregexes enforce a500-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/2026resolve asMM/DD/YYYYwhencountryIso2/defaultCountry === "US"andDD/MM/YYYYotherwise.
Quick Start & Example Input
1. Run in Apify Console (No Code)
- Open
forgekit/lead-cleaner-schema-normalizerin Apify Console and click Try for free. - Paste or adjust the ready-to-run input JSON below (safe defaults are pre-filled).
- Click Start and export results as JSON, CSV, Excel, or NDJSON from the Output tab.
{"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)
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);
from apify_client import ApifyClientimport osclient = 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 | forgekit/dataset-merge-dedupe-pro | ✅ Standby MCP |
| Dataset Diff & Change Detector (Added / Removed / Modified) | forgekit/dataset-diff-change-detector | ✅ Standby MCP |
| Universal Data Converter & Nested JSON Flattener (JSON, CSV, XLSX, XML, NDJSON, SQLite) | forgekit/universal-data-converter-flattener | ✅ Standby MCP |
| Bulk Webhook & Rate-Limited HTTP Batch Dispatcher (Retries, Auth & Capture) | forgekit/bulk-webhook-http-dispatcher | Batch REST API |
| RSS, Atom & JSON-Feed Aggregator + New-Item Monitor (MCP Ready) | forgekit/rss-atom-json-feed-monitor | ✅ Standby MCP |
| PDF-to-Markdown, Clean Text & Metadata Extractor (LLM & RAG Ready + MCP) | forgekit/pdf-to-markdown-text-extractor | ✅ Standby MCP |
| Bulk Domain Availability, RDAP/WHOIS Expiry & Multi-TLD Matrix Checker (MCP) | forgekit/bulk-domain-availability-rdap-matrix | ✅ Standby MCP |