{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Email Scraper — Bulk Emails, Phones & Lead Scores",
    "description": "Extract emails, phone numbers, social profiles and company data (legal name, address, VAT) from any list of websites. Every row carries a confidence grade and a 0-100 lead score. Paste 10,000 URLs; pay only for the sites where an email was found.",
    "version": "0.1",
    "x-build-id": "PVX3AV3UgQhkdnxIL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~website-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-website-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/blackfalcondata~website-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-website-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/blackfalcondata~website-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-website-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": {
          "startUrls": {
            "title": "🔗 Website URLs",
            "type": "array",
            "description": "Company websites or domains to scan. One per line. A bare domain (acme.com) is treated as https://acme.com. Paths, www and casing are normalised, so the same site is only crawled — and charged — once.",
            "items": {
              "type": "string"
            }
          },
          "inputText": {
            "title": "📋 Paste a List",
            "type": "string",
            "description": "Have your sites in a spreadsheet column or a text file? Paste the whole blob here — newline, comma or semicolon separated, bare domains and full URLs mixed. Merged with the list above; duplicates are billed once."
          },
          "maxPagesPerSite": {
            "title": "📄 Max Pages Per Site",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many internal pages to crawl per website. Contact, about, and team pages are visited first.",
            "default": 20
          },
          "requestTimeoutSecs": {
            "title": "⏱️ Request Timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request timeout before a page is skipped.",
            "default": 15
          },
          "useProxy": {
            "title": "🛡️ Use Proxy",
            "type": "boolean",
            "description": "Route requests through a rotating proxy pool to reduce blocking on sites that limit automated access.",
            "default": false
          },
          "includePeople": {
            "title": "👤 Extract People",
            "type": "boolean",
            "description": "Best-effort extraction of named people (name, title, personal LinkedIn) from team and about pages. Fill-rate varies by site.",
            "default": false
          },
          "verifyEmails": {
            "title": "✅ Verify Emails",
            "type": "boolean",
            "description": "Check discovered emails for deliverability and flag role, disposable, and free-provider addresses.",
            "default": false
          },
          "verificationLevel": {
            "title": "🔬 Verification Depth",
            "enum": [
              "format",
              "mx",
              "smtp"
            ],
            "type": "string",
            "description": "format = syntax only; mx = mail server exists (recommended); smtp = mailbox probe (slower, often blocked by mail servers).",
            "default": "mx"
          },
          "maxVerifiedEmailsPerSite": {
            "title": "🔢 Max Verified Emails Per Site",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Verification is billed per email, so a site exposing 40 addresses can cost more than expected. Cap how many are verified per site — the primary email is always verified first. 0 (default) verifies every email found.",
            "default": 0
          },
          "onlyWithEmails": {
            "title": "📧 Only Sites With Emails",
            "type": "boolean",
            "description": "On by default: sites where no email was found are not written to the dataset and not charged, so you pay only for the ones that publish an email. Turn off to also get rows for sites with only phones, social profiles or company data.",
            "default": true
          },
          "qualifyByPayment": {
            "title": "💳 Qualify By Payment Stack",
            "type": "boolean",
            "description": "Flag which leads actually take money online by detecting their checkout stack (Stripe, Shopify, PayPal, Paddle, Klarna and more). Adds paymentStack to each row and 5 points to the lead score.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "📦 Exclude Empty Fields",
            "type": "boolean",
            "description": "Drop empty fields from each record before output. Smaller payloads for AI agents and dashboards.",
            "default": false
          },
          "telegramToken": {
            "title": "🔑 Telegram Bot Token",
            "type": "string",
            "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
          },
          "telegramChatId": {
            "title": "💬 Telegram Chat ID",
            "type": "string",
            "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord Webhook URL",
            "type": "string",
            "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack Webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
          },
          "webhookUrl": {
            "title": "🪝 Generic Webhook URL",
            "type": "string",
            "description": "Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
          },
          "webhookHeaders": {
            "title": "📋 Webhook Headers",
            "type": "object",
            "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
          },
          "notificationLimit": {
            "title": "📊 Max Items Per Notification",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of websites included in each notification message (1–20).",
            "default": 5
          },
          "appConnector": {
            "title": "Send results to a connected app",
            "type": "string",
            "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog."
          },
          "mcpIssueTeam": {
            "title": "Issue tracker team",
            "type": "string",
            "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
          },
          "maxResults": {
            "title": "💯 Max Results",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of websites to scan per run. 0 (default) scans every website you supplied — your own list is the cap.",
            "default": 0
          },
          "compact": {
            "title": "📦 Compact Output (for AI / MCP)",
            "type": "boolean",
            "description": "Return only core fields. Reduces payload size for LLM pipelines and agent tools.",
            "default": false
          },
          "includeDetails": {
            "title": "📋 Crawl Multiple Pages Per Site",
            "type": "boolean",
            "description": "Crawl contact/about/team pages on each website (up to Max Pages Per Site), not just the homepage. Turn off for a faster, lower-cost homepage-only run.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}