{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Lead Scraper & Email Finder - Decision Makers",
    "description": "Upload a company list, get verified decision maker emails, phones, LinkedIn, and social profiles. 12-stage pipeline: website discovery, contact extraction, email finder, verification, social enrichment, lead scoring, and Excel export. For email marketing, cold outreach, and B2B prospecting.",
    "version": "7.0",
    "x-build-id": "ccMCQVE4bG5ASIfhE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/painless_tweet~leadslogix-pipeline/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-painless_tweet-leadslogix-pipeline",
        "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/painless_tweet~leadslogix-pipeline/runs": {
      "post": {
        "operationId": "runs-sync-painless_tweet-leadslogix-pipeline",
        "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/painless_tweet~leadslogix-pipeline/run-sync": {
      "post": {
        "operationId": "run-sync-painless_tweet-leadslogix-pipeline",
        "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": {
          "inputFile": {
            "title": "Upload CSV/Excel File",
            "type": "string",
            "description": "Upload a CSV or Excel file with company names and/or websites. Auto-detects column names (30+ aliases supported)."
          },
          "inputUrl": {
            "title": "CSV/Excel URL",
            "type": "string",
            "description": "URL to a publicly accessible CSV or Excel file."
          },
          "companies": {
            "title": "Company List (inline)",
            "type": "array",
            "description": "Provide companies as JSON array.",
            "items": {
              "type": "object",
              "properties": {
                "company_name": {
                  "title": "Company Name",
                  "type": "string",
                  "description": "Company name"
                },
                "website": {
                  "title": "Website",
                  "type": "string",
                  "description": "Company website URL (optional — will be discovered if missing)"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum companies to process. Free tier: 20 results per run. Beyond that: $2 per 1,000 results (pay-per-event). Platform compute charges billed separately by Apify.",
            "default": 20
          },
          "workers": {
            "title": "Parallel Workers (Initial)",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Initial number of concurrent async workers. Adaptive concurrency auto-scales between 4-32 based on success rate and response times. Uses HTTP-first with shared browser pool (2 browsers, 6 tabs).",
            "default": 16
          },
          "maxContactsPerCompany": {
            "title": "Max Contacts Per Company",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap on contacts per company. Decision makers and high-scored contacts prioritized.",
            "default": 20
          },
          "incrementalMode": {
            "title": "Incremental Mode (Delta Processing)",
            "type": "boolean",
            "description": "Skip companies enriched within the freshness window (default 7 days). Uses cross-run cache to avoid re-processing. Saves ~70% time on repeat runs with the same company list.",
            "default": false
          },
          "incrementalFreshnessDays": {
            "title": "Incremental Freshness (Days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How many days before a cached company is considered stale and re-enriched. Only applies when Incremental Mode is enabled.",
            "default": 7
          },
          "minLeadScore": {
            "title": "Minimum Lead Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Quality gate: contacts below this combined_priority score are filtered out before export. Set to 0 to export all contacts.",
            "default": 0
          },
          "minConfidenceScore": {
            "title": "Minimum Confidence Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Quality gate: contacts below this confidence score are filtered out before export. Set to 0 to export all contacts.",
            "default": 0
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "HTTP endpoint to receive pipeline results on completion. Sends POST with JSON payload containing summary stats and optional full results. Retries 3x with exponential backoff on failure."
          },
          "webhookSendFullResults": {
            "title": "Include Full Results in Webhook",
            "type": "boolean",
            "description": "Include complete contact/company data in webhook payload. When disabled, only summary statistics are sent (smaller payload, faster delivery).",
            "default": false
          },
          "exportJsonLines": {
            "title": "Export JSON Lines",
            "type": "boolean",
            "description": "Also export results as JSON Lines (.jsonl) in KeyValueStore. One JSON object per line — ideal for streaming ingestion, BigQuery, or processing large datasets.",
            "default": false
          },
          "skipGoogleBoost": {
            "title": "Skip Google Discovery Boost",
            "type": "boolean",
            "description": "Skip the 8-step Google Discovery Boost (domain recovery, email/social discovery via search engines, DNS validation).",
            "default": false
          },
          "skipSocialEnrichment": {
            "title": "Skip Social Enrichment",
            "type": "boolean",
            "description": "Skip the 8-platform social profile discovery stage (LinkedIn, Twitter, Facebook, Instagram, YouTube, GitHub, Crunchbase, Glassdoor).",
            "default": false
          },
          "skipLinkedInDiscovery": {
            "title": "Skip LinkedIn Employee Discovery",
            "type": "boolean",
            "description": "Skip the LinkedIn employee discovery stage. This stage uses multi-query search (DuckDuckGo + Bing fallback) with role-based variations (CEO, CTO, VP, Director, Manager, etc.) to discover decision makers on LinkedIn. Significantly increases contact yield for larger companies.",
            "default": false
          },
          "skipSemanticPageDetect": {
            "title": "Skip Semantic Page Detection",
            "type": "boolean",
            "description": "Skip the semantic page detection stage. This stage analyzes crawled HTML to classify pages as leadership, speaker, board, investor relations, careers, or partner pages.",
            "default": false
          },
          "skipSearchExpansion": {
            "title": "Skip Search Expansion + SERP Intelligence",
            "type": "boolean",
            "description": "Skip the search expansion matrix and SERP intelligence stage. Generates 8-category search queries (employee, executive, email, PDF, hiring, press, conference, investor) and extracts revenue estimates, funding signals, company size, and acquisition news from search snippets.",
            "default": false
          },
          "skipFileIntelligence": {
            "title": "Skip File Intelligence (PDF Mining)",
            "type": "boolean",
            "description": "Skip the file intelligence stage. Downloads and parses PDFs and documents found during search expansion and crawling. Extracts contacts, org chart data, and emails from document content invisible to HTML-based extraction.",
            "default": false
          },
          "skipDeepContactExtract": {
            "title": "Skip Deep Contact Extraction",
            "type": "boolean",
            "description": "Skip the deep 4-method contact re-extraction stage. Runs JSON-LD, team cards, heuristic, and LinkedIn link extraction on all crawled HTML, re-crawls for companies with 0 contacts.",
            "default": false
          },
          "skipHiddenContactExtract": {
            "title": "Skip Hidden Contact Extraction",
            "type": "boolean",
            "description": "Skip the hidden contact extraction stage. Parses JS state stores (__NEXT_DATA__, __NUXT__, __INITIAL_STATE__), inline JSON-LD arrays, and hydration payloads for contact data not visible in rendered HTML.",
            "default": false
          },
          "skipContactIntelligence": {
            "title": "Skip Contact Intelligence Engine",
            "type": "boolean",
            "description": "Skip the contact intelligence engine. Applies decision maker mapping (seniority 0-5, persona classification), target title matching, authority scoring, and circuit breaker intelligence learning.",
            "default": false
          },
          "skipCompanyIntel": {
            "title": "Skip Company Intelligence Profile",
            "type": "boolean",
            "description": "Skip the company intelligence profile stage. Builds tech stack fingerprinting (18+ frameworks), analytics tools detection, employee count estimation, SaaS signals, hiring velocity, and company maturity scoring (0-100).",
            "default": false
          },
          "skipExecutiveCorrelation": {
            "title": "Skip Executive Correlation Engine",
            "type": "boolean",
            "description": "Skip the executive correlation engine. Cross-references contacts from all extraction methods (crawl, deep extract, hidden, LinkedIn, search, file intel), merges duplicates by email/name/LinkedIn, and builds unified profiles with composite confidence scores.",
            "default": false
          },
          "skipEmailDiscovery": {
            "title": "Skip Email Discovery",
            "type": "boolean",
            "description": "Skip the 5-layer email discovery stage (DNS/OSINT, website crawl, search engine, PDF, social).",
            "default": false
          },
          "skipEmailPrediction": {
            "title": "Skip Email Prediction",
            "type": "boolean",
            "description": "Skip the email prediction stage (8-pattern generation for contacts missing emails).",
            "default": false
          },
          "skipVerification": {
            "title": "Skip Email Verification",
            "type": "boolean",
            "description": "Skip the 6-check email verification stage (MX, SPF, DKIM, DMARC, role detection, disposable check).",
            "default": false
          },
          "skipQualityGate": {
            "title": "Skip Quality Gate",
            "type": "boolean",
            "description": "Skip the quality gate stage. When skipped, all contacts are exported regardless of lead score or confidence. Quality gate filtering uses minLeadScore and minConfidenceScore thresholds.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy for all scraping operations. Residential proxies strongly recommended for best results and avoiding blocks."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}