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

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

Pricing

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

Go to Apify Store
Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)

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

James Edmans

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

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 + 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.
CapabilityLead List Cleaner & Normalizernerolabs/dataset-cleaner-exportersaliga/dataset-merge-dedupemichael.g/email-verifier-validator
Price per 1,000 Leads (FREE)$0.40 ($0.0004/lead, flat transparent)$2.00 (5x pricier)$0.50Up to $100/1k on FREE plan!
80+ Global Legal Entity Suffix StrippingBuilt-in (companyClean + legalSuffix)Basic string trim onlyNoneNone
Human Name Splitting (Dr., van der, PhD)Full 5-part parser + casing repairNoneNoneNone
E.164 Phones + 249 ISO-2 Countries + CurrenciesBuilt-in (libphonenumber-js + shorthand $2.5M)NoneNoneNone
Schema Validator + Quarantine KV RoutingBuilt-in (QUARANTINE_ROWS + _qualityScore)NoneNoneNone
CRM Original Column Preservation & Zero Blank BillingBuilt-in (preserveOriginalColumns, blankRowsSkipped)PartialPartialFails on blank/500 retries
Standby MCP ServerNative JSON-RPC 2.0 + SSE (2 tools)NoneNoneNone

Input Configuration

FieldTypeRequiredDefaultDescription
datasetIdstringNo""Apify Dataset ID containing raw leads.
fileUrlstringNo""Public CSV, TSV, JSON, NDJSON, or XLSX URL (SSRF-protected).
rowsobject[]No[]Inline JSON array of lead objects (up to 100,000).
fieldMappingobjectNo{}Optional explicit { company, fullName, firstName, lastName, email, phone, website, country, date, revenue } map (auto-detected if omitted).
normalizeCompanyNamesbooleanNotrueStrip 80+ global legal suffixes into companyClean + legalSuffix.
splitFullNamesbooleanNotrueSplit fullName into salutation, firstName, middleName, lastName, nameSuffix.
normalizePhonesbooleanNotrueFormat phone numbers into E.164 via libphonenumber-js.
defaultCountrystringNo"US"2-letter ISO 3166-1 alpha-2 fallback for local phone formats and slash-date ordering (US vs GB).
normalizeUrlsAndDomainsbooleanNotrueCanonicalize websites, extract rootDomain, and backfill corporate domain from work email.
normalizeDatesbooleanNotrueParse US/EU dates, named dates, and Unix timestamps to ISO YYYY-MM-DD.
normalizeCurrenciesbooleanNotrueParse formatted/shorthand money strings ($2.5M, €12.5k, £1,250.50) into numeric + ISO code.
normalizeCountriesbooleanNotrueNormalize country names and aliases into ISO-2 codes (GB, US, DE).
validationRulesobject[]No[]Declarative schema rules [{ field, required?, type?, min?, max?, enum?, pattern? }] (up to 50).
invalidRowActionstringNo"tag""tag" (inline _isValid: false), "quarantine" (KV QUARANTINE_ROWS), or "drop".
dedupeByEmailOrDomainbooleanNofalseOptional post-normalization deduplication by normalized email or rootDomain.
preserveOriginalColumnsbooleanNotrueKeep every original HubSpot/Salesforce/Clay column alongside normalized outputs.
maxRowsintegerNo100000Hard 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 KeyEvent TitlePrice (USD)Billing Trigger
actor-startActor run start$0.002Charged once on non-empty cleaning runs (waived when 0 non-blank leads).
lead-cleanedLead row normalized & validated$0.0004Charged strictly per non-blank lead processed (blank rows skipped free).
mcp-tool-callStandby MCP tool execution$0.003Charged 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.
{
"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 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.
{
"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 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.

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

ActorStore SlugMode
Dataset Merge, Fuzzy Dedupe & Cross-Join Proforgekit/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-dispatcherBatch 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