{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Lead Finder & Verified Email Scraper",
    "description": "Extract verified B2B decision-makers with personal work emails, direct phones & LinkedIn URLs. Strict ICP filters, catch-all separation, live domain freshness checks & n8n/Clay/Make net-new sync. Pay only for verified leads.",
    "version": "0.0",
    "x-build-id": "wrIrV6eim3rdUMsiM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unique_dev~b2b-lead-finder-verified-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unique_dev-b2b-lead-finder-verified-email-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/unique_dev~b2b-lead-finder-verified-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unique_dev-b2b-lead-finder-verified-email-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/unique_dev~b2b-lead-finder-verified-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unique_dev-b2b-lead-finder-verified-email-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "totalResults": {
            "title": "Total Verified Leads (Max Results)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of verified leads to emit in this run (1 to 50,000). You are only charged for leads that pass all filter, freshness, deduplication, and email verification gates.",
            "default": 25
          },
          "dryRun": {
            "title": "Dry Run (Preview & Diagnostics Only - $0 Charge)",
            "type": "boolean",
            "description": "Validate filters, inspect normalized taxonomies, analyze filter bottlenecks, and preview candidate funnel counts without emitting billable leads.",
            "default": false
          },
          "countOnlyPreview": {
            "title": "Instant Pre-Run Count Preview Only ($0 Charge)",
            "type": "boolean",
            "description": "Query the backend Lead Engine's /v1/leads/count endpoint to see exact matching verified lead totals, personal email count, phone count, and sample preview in LEAD_COUNT_PREVIEW without spending credits.",
            "default": false
          },
          "workspaceId": {
            "title": "Workspace ID (n8n / Clay / Make Net-New Memory)",
            "type": "string",
            "description": "Persistent identifier for your campaign or agency client (e.g., 'client-acme-outbound'). Remembers every lead delivered to this workspace so scheduled recurring runs never deliver duplicates."
          },
          "netNewOnly": {
            "title": "Net-New Leads Only",
            "type": "boolean",
            "description": "When true (default), skips any lead previously delivered to this workspaceId or search signature.",
            "default": true
          },
          "webhookUrl": {
            "title": "Automation Webhook URL (n8n / Clay / Make / Instantly)",
            "type": "string",
            "description": "Optional HTTPS webhook endpoint to stream verified lead batches ('leads.batch') and completion reports ('run.completed') in real time."
          },
          "webhookSecret": {
            "title": "Webhook Signing Secret (Optional HMAC-SHA256)",
            "type": "string",
            "description": "Optional secret used to sign webhook payloads via the X-LeadScraper-Signature header."
          },
          "firstName": {
            "title": "First Name",
            "type": "string",
            "description": "Optional exact/prefix match on contact first name."
          },
          "lastName": {
            "title": "Last Name",
            "type": "string",
            "description": "Optional exact/prefix match on contact last name."
          },
          "personTitleIncludes": {
            "title": "Job Titles (Include)",
            "type": "array",
            "description": "Target job titles (e.g., [\"CEO\", \"Co-Founder & CTO\", \"VP of Sales\"]). Combined with OR logic.",
            "items": {
              "type": "string"
            }
          },
          "excludeTitle": {
            "title": "Job Titles (Exclude)",
            "type": "array",
            "description": "Job title keywords to strictly exclude (e.g., [\"Intern\", \"Assistant\", \"Retired\", \"Former\"]).",
            "items": {
              "type": "string"
            }
          },
          "includeSimilarTitles": {
            "title": "Include Similar / Synonym Job Titles",
            "type": "boolean",
            "description": "Expand title search to close functional equivalents (e.g. \"CTO\" matches \"Chief Technology Officer\").",
            "default": true
          },
          "seniority": {
            "title": "Seniority Levels",
            "type": "array",
            "description": "Filter by normalized seniority levels (e.g., Founder, C-Level, VP, Director, Head, Manager, Senior, Entry). Multi-select supported.",
            "items": {
              "type": "string"
            }
          },
          "personFunctionIncludes": {
            "title": "Departments / Job Functions",
            "type": "array",
            "description": "Filter by department or function (e.g., Engineering, Information Technology, Sales, Marketing, Human Resources, Finance, Operations, Executive).",
            "items": {
              "type": "string"
            }
          },
          "personLocationCountryIncludes": {
            "title": "Person Country (Include)",
            "type": "array",
            "description": "Countries where the contact is located. Accepts full names, ISO codes, or native names (e.g., \"United States\", \"US\", \"Brazil\", \"Brasil\", \"Germany\").",
            "items": {
              "type": "string"
            }
          },
          "personLocationStateIncludes": {
            "title": "Person State / Region (Include)",
            "type": "array",
            "description": "States or regions where the contact is located (e.g., \"California\", \"CA\", \"Bavaria\").",
            "items": {
              "type": "string"
            }
          },
          "personLocationCityIncludes": {
            "title": "Person City (Include)",
            "type": "array",
            "description": "Cities where the contact is located.",
            "items": {
              "type": "string"
            }
          },
          "companyLocationCountryIncludes": {
            "title": "Company HQ Country (Include)",
            "type": "array",
            "description": "Countries where the company is headquartered. Accepts full names, ISO codes, or common aliases.",
            "items": {
              "type": "string"
            }
          },
          "companyLocationStateIncludes": {
            "title": "Company State / Region (Include)",
            "type": "array",
            "description": "Company headquarters state or region.",
            "items": {
              "type": "string"
            }
          },
          "companyLocationCityIncludes": {
            "title": "Company City (Include)",
            "type": "array",
            "description": "Company headquarters city.",
            "items": {
              "type": "string"
            }
          },
          "companyNameIncludes": {
            "title": "Company Names (Include)",
            "type": "array",
            "description": "Target specific companies by name (e.g., [\"STRABAG PFS GmbH\"]). Never falls back to random companies if 0 records match.",
            "items": {
              "type": "string"
            }
          },
          "companyNameMatchMode": {
            "title": "Company Name Match Mode",
            "enum": [
              "exact",
              "contains"
            ],
            "type": "string",
            "description": "How companyNameIncludes should be matched: 'exact' (strict match with optional legal-suffix normalization) or 'contains'.",
            "default": "exact"
          },
          "companyDomainIncludes": {
            "title": "Company Domains / Websites (Include)",
            "type": "array",
            "description": "Target specific company domains or URLs (e.g., [\"stripe.com\", \"strabag-pfs.de\"]).",
            "items": {
              "type": "string"
            }
          },
          "industryIncludes": {
            "title": "Industries (Include)",
            "type": "array",
            "description": "Target industries (e.g., [\"Computer Software\", \"Construction\", \"Roofing\", \"Financial Services\"]). Multi-select supported.",
            "items": {
              "type": "string"
            }
          },
          "industryKeywords": {
            "title": "Niche Industry Keywords",
            "type": "array",
            "description": "Granular niche keywords matched against company specialties, descriptions, and website metadata (e.g., [\"roofing contractor\", \"commercial roofing\", \"SOC2 compliance\"]).",
            "items": {
              "type": "string"
            }
          },
          "expandIndustrySynonyms": {
            "title": "Expand Industry Synonyms",
            "type": "boolean",
            "description": "Automatically include closely related industry terms and sub-verticals.",
            "default": true
          },
          "companySizeIncludes": {
            "title": "Company Employee Size Ranges",
            "type": "array",
            "description": "Employee headcount buckets (e.g., \"1-10\", \"11-50\", \"51-200\", \"201-500\", \"501-1000\", \"1001-5000\", \"5001-10000\", \"10001+\").",
            "items": {
              "type": "string"
            }
          },
          "hasEmail": {
            "title": "Require Verified Email",
            "type": "boolean",
            "description": "Only return leads with an email address passing the selected emailVerificationMode.",
            "default": true
          },
          "emailVerificationMode": {
            "title": "Email Verification Strictness",
            "enum": [
              "strict",
              "verified_and_catch_all",
              "dns_mx"
            ],
            "type": "string",
            "description": "'strict' (Default): Only verified deliverable non-catch-all mailboxes. 'verified_and_catch_all': Also allow catch-all domains (explicitly labeled 'catch_all', never disguised as 'verified'). 'dns_mx': Verify syntax, spam-trap/disposable blocklist, and live MX/SPF/DMARC without requiring mailbox-level SMTP confirmation.",
            "default": "strict"
          },
          "workEmailOnly": {
            "title": "Work Emails Only (Block Free Consumer ISPs)",
            "type": "boolean",
            "description": "Reject personal/consumer email domains (gmail.com, yahoo.com, hotmail.com, etc.).",
            "default": true
          },
          "allowRoleEmails": {
            "title": "Allow Published Founder / Outreach Inboxes (founders@, hello@, sales@, contact@)",
            "type": "boolean",
            "description": "Personal decision-maker emails are always prioritized first. When true, verified Founders/Executives whose personal inbox isn't publicly exposed in HTML can use the company's published outreach inbox (e.g., founders@, hello@, contact@ — marked is_role_account=true; dead-end support@/billing@/noreply@ are always blocked). Set false for strictly personal inboxes only.",
            "default": true
          },
          "allowPermutedEmails": {
            "title": "Allow Unconfirmed Pattern-Guessed Emails",
            "type": "boolean",
            "description": "Keep false (recommended) to strictly block unverified pattern guesses ('first.last@domain') unless confirmed by live mailbox verification.",
            "default": false
          },
          "verifyDomainLiveness": {
            "title": "Live Company Domain & Freshness Check",
            "type": "boolean",
            "description": "Verify that the company domain resolves live and is not parked, for sale, or defunct.",
            "default": true
          },
          "maxDataAgeDays": {
            "title": "Max Record Age (Days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Reject upstream cached/DB records older than this many days unless re-verified live during this run.",
            "default": 90
          },
          "maxLeadsPerCompany": {
            "title": "Max Leads Per Company (0 = Unlimited)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Prevent a single large enterprise from dominating broad searches. Set to 0 for unlimited (recommended when targeting specific companies).",
            "default": 0
          },
          "resetSavedProgress": {
            "title": "Reset Cross-Run Saved Progress",
            "type": "boolean",
            "description": "Clear previously seen lead fingerprints for this search signature so repeat runs can re-export matching leads.",
            "default": false
          },
          "deleteSave": {
            "title": "Delete Saved State After Run (Legacy Alias)",
            "type": "boolean",
            "description": "Pipeline Labs compatible flag: clears saved deduplication state.",
            "default": false
          },
          "enableLiveWebDiscovery": {
            "title": "Enable Live Web & Company Team Discovery",
            "type": "boolean",
            "description": "Discover and verify companies, team/leadership/impressum pages, and public profiles live from the web.",
            "default": true
          },
          "upstreamDatabaseUrl": {
            "title": "Upstream Lead Database / Search API URL (Optional)",
            "type": "string",
            "description": "Optional HTTP/REST lead store endpoint for high-volume (50k/run) indexed cursor streaming. Every record is still enforced through all strict filter, freshness, and email gates."
          },
          "reoonApiKey": {
            "title": "Reoon Verifier API Key (Optional)",
            "type": "string",
            "description": "Optional Reoon API key for third-party mailbox verification."
          },
          "zeroBounceApiKey": {
            "title": "ZeroBounce API Key (Optional)",
            "type": "string",
            "description": "Optional ZeroBounce API key for third-party mailbox verification."
          },
          "millionVerifierApiKey": {
            "title": "MillionVerifier API Key (Optional)",
            "type": "string",
            "description": "Optional MillionVerifier API key for third-party mailbox verification."
          },
          "truelistApiKey": {
            "title": "Truelist.io API Key (Optional)",
            "type": "string",
            "description": "Optional Truelist API key for third-party mailbox verification."
          },
          "serperApiKey": {
            "title": "Serper Search API Key (Optional)",
            "type": "string",
            "description": "Optional Google Search API key via Serper.dev to accelerate live search discovery."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings for live web discovery and domain freshness checks."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}