{
  "openapi": "3.0.1",
  "info": {
    "title": "Lead Generation Suite",
    "description": "The COMPLETE Lead Gen Pipeline. Scrape Google Maps -> Find verified emails (7 methods) -> Score leads (0-100) -> Generate personalized call scripts & cold emails. Works standalone or enriches leads from Fast Scraper. Includes webhooks for Zapier/Make. The ultimate tool for SDRs & agencies.",
    "version": "1.0",
    "x-build-id": "i0NgvxQHRlO6bHUu8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/venueengine.co~lead-gen-suite/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-venueengine.co-lead-gen-suite",
        "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/venueengine.co~lead-gen-suite/runs": {
      "post": {
        "operationId": "runs-sync-venueengine.co-lead-gen-suite",
        "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/venueengine.co~lead-gen-suite/run-sync": {
      "post": {
        "operationId": "run-sync-venueengine.co-lead-gen-suite",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "full_pipeline",
              "scrape_only",
              "enrich_only",
              "enrich_from_fast_scraper",
              "qualify_only"
            ],
            "type": "string",
            "description": "Select which pipeline stage(s) to run",
            "default": "full_pipeline"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Business type to search for (e.g., 'golf simulator', 'escape room', 'yoga studio')"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities/regions to search (e.g., 'Miami, FL', 'London, UK')",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerLocation": {
            "title": "Max Results Per Location",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum leads to scrape per location",
            "default": 50
          },
          "domains": {
            "title": "Domains (enrich_only mode)",
            "type": "array",
            "description": "Domains to enrich. Only used in enrich_only mode.",
            "items": {
              "type": "string"
            }
          },
          "leads": {
            "title": "Leads JSON (qualify_only mode)",
            "type": "array",
            "description": "Pre-existing leads to qualify. Only used in qualify_only mode."
          },
          "enrichmentMethods": {
            "title": "Enrichment Methods",
            "type": "array",
            "description": "Email discovery methods to use",
            "items": {
              "type": "string",
              "enum": [
                "website",
                "pattern",
                "whois",
                "social",
                "dns",
                "dork",
                "wayback"
              ]
            },
            "default": [
              "website",
              "pattern",
              "dns",
              "dork"
            ]
          },
          "customEmailPrefixes": {
            "title": "Custom Email Prefixes",
            "type": "array",
            "description": "Email prefixes to try (e.g., 'info', 'bookings', 'reservations')",
            "default": [
              "info",
              "hello",
              "contact",
              "sales",
              "support",
              "bookings",
              "enquiries"
            ],
            "items": {
              "type": "string"
            }
          },
          "verifyEmails": {
            "title": "Verify Emails",
            "type": "boolean",
            "description": "SMTP verification of discovered emails",
            "default": true
          },
          "findDecisionMaker": {
            "title": "Find Decision Maker",
            "type": "boolean",
            "description": "Attempt to find owner/manager name from website",
            "default": true
          },
          "scoringWeights": {
            "title": "Scoring Weights",
            "type": "object",
            "description": "Customize lead scoring weights (0-100 total)",
            "default": {
              "hasWebsite": 15,
              "hasEmail": 25,
              "hasPhone": 10,
              "noBookingSystem": 20,
              "highRating": 10,
              "hasDecisionMaker": 10,
              "hasReviews": 5
            }
          },
          "minScoreThreshold": {
            "title": "Minimum Score Threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only output leads with score >= this value (0 = no filter)",
            "default": 0
          },
          "generateCallScripts": {
            "title": "Generate Call Scripts",
            "type": "boolean",
            "description": "Create personalized gatekeeper bypass call scripts",
            "default": true
          },
          "generateEmailTemplates": {
            "title": "Generate Email Templates",
            "type": "boolean",
            "description": "Create personalized cold email sequences",
            "default": true
          },
          "customCallScripts": {
            "title": "Custom Call Scripts",
            "type": "object",
            "description": "Override default scripts. Use {{businessName}}, {{city}}, {{businessType}}, {{rating}}",
            "default": {
              "openerPrimary": "Hi — who's the best person to speak to about {{businessType}}?",
              "openerCallback": "Hi — I'm following up on a call earlier regarding {{businessName}}.",
              "icebreaker": "{{businessName}} looks like a great spot in {{city}}!",
              "valueHook": "We help {{businessType}} businesses automate bookings and fill empty slots.",
              "close": "Would it make sense to show you how it works? Takes about 10 minutes."
            }
          },
          "customEmailTemplates": {
            "title": "Custom Email Templates",
            "type": "object",
            "description": "Override default email copy. Use {{businessName}}, {{firstName}}, {{city}}, {{businessType}}",
            "default": {
              "subject1": "Quick question about {{businessName}}",
              "subject2": "{{city}} {{businessType}} - booking idea",
              "body1": "Hi {{firstName}},\n\nI noticed {{businessName}} in {{city}} and wanted to reach out.\n\nWe help {{businessType}} businesses automate bookings and fill empty time slots without changing how you operate.\n\nWould it make sense to show you how it works?\n\nBest,\n[Your Name]",
              "followUp": "Hi {{firstName}},\n\nJust following up on my last note about {{businessName}}.\n\nHappy to share a quick demo if helpful.\n\nBest,\n[Your Name]"
            }
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "json",
              "csv",
              "manyreach"
            ],
            "type": "string",
            "description": "How to format the output",
            "default": "json"
          },
          "outputFilters": {
            "title": "Output Filters",
            "type": "object",
            "description": "Filter which leads are included in output",
            "default": {
              "onlyWithEmail": false,
              "onlyWithPhone": false,
              "excludeCategories": []
            }
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Send leads to this URL (Zapier, Make, n8n, etc.)"
          },
          "webhookBatchSize": {
            "title": "Webhook Batch Size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many leads to send per webhook call",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many leads to process in parallel",
            "default": 3
          },
          "feedbackWebhook": {
            "title": "Feedback Webhook (Optional)",
            "type": "string",
            "description": "Receive run metrics and errors for continuous improvement. POST payload includes success/failure, lead counts, and timing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}