{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain Leads Scraper",
    "description": "Domain Prospecting & Enrichment Actor discovers, normalises, scores, and enriches domain leads from manual lists, CSV uploads, search queries, or DomainLeads sources. It provides SEO signals, lead quality scores, website checks, and CRM-ready export data for prospecting workflows.",
    "version": "0.0",
    "x-build-id": "u6V17tZ4cuNNkkdOP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sovanza.inc~CloudBots-8/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sovanza.inc-CloudBots-8",
        "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/sovanza.inc~CloudBots-8/runs": {
      "post": {
        "operationId": "runs-sync-sovanza.inc-CloudBots-8",
        "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/sovanza.inc~CloudBots-8/run-sync": {
      "post": {
        "operationId": "run-sync-sovanza.inc-CloudBots-8",
        "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": {
          "sourceMode": {
            "title": "Source mode",
            "enum": [
              "domainleads",
              "csv_upload",
              "manual_domains",
              "search_engine_discovery"
            ],
            "type": "string",
            "description": "Choose how domains should be discovered before normalization and enrichment. Manual domains and CSV uploads are the most stable modes; DomainLeads remains optional and experimental.",
            "default": "manual_domains"
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional keyword context used by DomainLeads mode and for keyword-aware scoring. Also used by search engine discovery when discoverFromKeywords is enabled.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Manual domain seeds to normalize and enrich directly. Best choice when you already have a list of prospect domains.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "csvText": {
            "title": "CSV text",
            "type": "string",
            "description": "Paste CSV content directly. The actor will detect likely domain fields and normalize candidate domains from each row.",
            "default": ""
          },
          "csvFile": {
            "title": "CSV file or text reference",
            "type": "string",
            "description": "Optional file path or text reference for CSV content when not pasting directly into csvText.",
            "default": ""
          },
          "discoverFromKeywords": {
            "title": "Use search keywords for discovery",
            "type": "boolean",
            "description": "When sourceMode is search_engine_discovery, append searchKeywords to searchEngineQueries.",
            "default": false
          },
          "searchEngineQueries": {
            "title": "Search engine queries",
            "type": "array",
            "description": "Public search queries used in search_engine_discovery mode. Candidate domains are extracted from result URLs and snippets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "resultsPerKeyword": {
            "title": "Results per keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of normalized records to keep per keyword, query, or source unit.",
            "default": 100
          },
          "maxPagesPerKeyword": {
            "title": "Max pages per keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on paginated result pages per keyword.",
            "default": 10
          },
          "tldFilter": {
            "title": "TLD filter",
            "type": "array",
            "description": "Optional TLD filters such as com, io, ai, org, co.uk.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "Keep subdomains when they appear in search results. Otherwise records are normalized to the root domain.",
            "default": false
          },
          "includeDerivedMetrics": {
            "title": "Include derived lead metrics",
            "type": "boolean",
            "description": "Compute normalized root domain, keyword match strength, brandability, spam-risk heuristics, domain depth, and related lead metrics.",
            "default": true
          },
          "includeWhoisLikeSignals": {
            "title": "Include whois-like public signals",
            "type": "boolean",
            "description": "Compute lightweight public registrar/privacy-style signals from listing text only. No restricted whois access is used.",
            "default": false
          },
          "includeSeoSignals": {
            "title": "Include SEO signals",
            "type": "boolean",
            "description": "Derive SEO-oriented signals such as short domain score, exact/partial match signals, TLD quality tier, readability, and intent modifiers.",
            "default": true
          },
          "includeWebsiteCheck": {
            "title": "Check discovered websites",
            "type": "boolean",
            "description": "Open the discovered domain homepage and collect only public page-level signals such as title, metadata, contact/about links, and social links.",
            "default": false
          },
          "includeContactPageGuess": {
            "title": "Guess contact/about pages",
            "type": "boolean",
            "description": "Only when website check is enabled, try /contact, /contact-us, /about, and /about-us and collect public page URLs/titles if reachable.",
            "default": false
          },
          "websiteCheckTimeoutSecs": {
            "title": "Website check timeout (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for homepage and optional contact/about page checks.",
            "default": 15
          },
          "languageHint": {
            "title": "Language hint",
            "type": "string",
            "description": "Optional language hint such as en, fr, de. Used as a fallback when language is not inferable.",
            "default": ""
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of keyword pages or website checks processed in parallel.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Per-page timeout for search and pagination requests.",
            "default": 60
          },
          "challengeWaitSecs": {
            "title": "Challenge wait (seconds)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "How long to wait for Cloudflare/challenge pages to auto-resolve before marking the page blocked.",
            "default": 15
          },
          "cookiesText": {
            "title": "Cookies (optional, secret)",
            "type": "string",
            "description": "Sensitive: encrypted in Apify, hidden from logs. Accepts raw browser-exported cookie rows, a Cookie-Editor JSON array, or simple name=value lines. Useful when you already solved DomainLeads in a real browser and want to reuse a valid cf_clearance or session."
          },
          "proxyCountry": {
            "title": "Proxy country",
            "enum": [
              "AUTO_SELECT_PROXY_COUNTRY",
              "US",
              "GB",
              "DE",
              "FR",
              "JP",
              "CA",
              "IT"
            ],
            "type": "string",
            "description": "Apify Residential proxy country code used when the Actor creates a proxy session. AUTO lets Apify choose; use a fixed country only when your clearance/session was created from that region.",
            "default": "AUTO_SELECT_PROXY_COUNTRY"
          },
          "blockAssets": {
            "title": "Block heavy assets",
            "type": "boolean",
            "description": "Block images, fonts, and media while navigating to speed up crawling and reduce bandwidth.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Standard Apify proxy configuration.",
            "default": {
              "useApifyProxy": true
            }
          },
          "saveHtmlSnapshot": {
            "title": "Save HTML snapshot",
            "type": "boolean",
            "description": "Include a raw HTML snippet for debugging when extraction fails or when a record is normalized from a complex result row.",
            "default": false
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Enable extraction tuning output including page type detection, optional saved page artifacts, and page-level debug records.",
            "default": false
          },
          "saveScreenshot": {
            "title": "Save screenshot",
            "type": "boolean",
            "description": "When debug mode is enabled, save a screenshot for each visited search result page.",
            "default": false
          },
          "saveParsedRows": {
            "title": "Save parsed rows",
            "type": "boolean",
            "description": "When debug mode is enabled, include parsed row text, raw links, normalization warnings, and save page-level parsed row payloads for selector tuning.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}