{
  "openapi": "3.0.1",
  "info": {
    "title": "SiteVerdict — Agency Lead Finder: score local business websites",
    "description": "Find which local businesses to pitch. Feed a Google Maps Scraper dataset, CSV or URL list; each website gets a 0-100 lead score, flags for web design, SEO, speed, tracking, compliance, email and accessibility, plus 3 plain-English pitch points. No-website leads too.",
    "version": "1.1",
    "x-build-id": "LOXRa79BpZO99TLAf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteverdict~siteverdict-agency-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteverdict-siteverdict-agency-lead-finder",
        "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/siteverdict~siteverdict-agency-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-siteverdict-siteverdict-agency-lead-finder",
        "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/siteverdict~siteverdict-agency-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-siteverdict-siteverdict-agency-lead-finder",
        "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": {
          "datasetId": {
            "title": "Google Maps Scraper dataset ID (or any Apify dataset)",
            "type": "string",
            "description": "Paste the dataset ID (or dataset URL) from a Google Maps Scraper run, e.g. compass/crawler-google-places. Fields like title, website, phone, categoryName, city, totalScore and reviewsCount are mapped automatically."
          },
          "runId": {
            "title": "...or Google Maps Scraper run ID",
            "type": "string",
            "description": "A run ID (or run URL). The run's default dataset is read. Handy for Actor-to-Actor integrations and webhooks."
          },
          "fileUrl": {
            "title": "...or CSV / JSON file URL",
            "type": "string",
            "description": "Public URL of a CSV, JSON array, JSON Lines file or a plain list of URLs (one per line). Google Sheets: File > Share > Publish to web > CSV. Columns such as name, website, phone, address, city, category, rating and reviews are recognised automatically."
          },
          "businesses": {
            "title": "...or businesses (JSON)",
            "type": "array",
            "description": "A list of objects, e.g. [{\"name\": \"Smith Plumbing\", \"website\": \"smithplumbing.co.uk\", \"phone\": \"+44...\", \"city\": \"Plymouth\", \"category\": \"Plumber\", \"reviewsCount\": 48}]. Businesses without a website are returned as no-website leads."
          },
          "websites": {
            "title": "...or website URLs",
            "type": "array",
            "description": "Plain list of websites to score (no business data, so the activity part of the score uses a neutral value).",
            "items": {
              "type": "string"
            }
          },
          "scanMode": {
            "title": "Scan mode",
            "enum": [
              "full",
              "quick"
            ],
            "type": "string",
            "description": "Full = one real mobile browser load per site (Core Web Vitals, layout shift, real tracking hits, cookies set before consent, dead clicks) + HTTP/DNS checks. Quick = HTTP and DNS only, no browser: about 5x faster and cheaper, for very large lists; speed and tracking findings are estimated from the HTML.",
            "default": "full"
          },
          "maxBusinesses": {
            "title": "Max businesses",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many businesses (after filters). Your max total charge per run is respected as well.",
            "default": 100
          },
          "complianceRegion": {
            "title": "Compliance region",
            "enum": [
              "uk-eu",
              "other"
            ],
            "type": "string",
            "description": "UK/EU turns on the cookie-consent risk indicator (UK GDPR + PECR / EU ePrivacy): tracking or advertising cookies set before any consent. Choose 'Other' for markets without prior-consent cookie rules.",
            "default": "uk-eu"
          },
          "checkEmailDns": {
            "title": "Check email deliverability (SPF / DMARC)",
            "type": "boolean",
            "description": "Public DNS lookups of SPF, DMARC and MX for the website's domain. No emails are collected or sent.",
            "default": true
          },
          "checkLinks": {
            "title": "Check contact page and a few homepage links",
            "type": "boolean",
            "description": "Light HEAD requests to the contact page and up to 4 other homepage links to catch broken pages.",
            "default": true
          },
          "categories": {
            "title": "Only these categories",
            "type": "array",
            "description": "Keep businesses whose category contains any of these words (case-insensitive), e.g. dentist, plumber, restaurant. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Only these cities / towns",
            "type": "array",
            "description": "Keep businesses whose city or address contains any of these (case-insensitive). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "minReviews": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Skip businesses with fewer Google reviews (a proxy for an active business that can pay). 0 = no minimum.",
            "default": 0
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Skip businesses rated below this (0-5). 0 = no minimum.",
            "default": 0
          },
          "websiteFilter": {
            "title": "Website filter",
            "enum": [
              "all",
              "with-website",
              "without-website"
            ],
            "type": "string",
            "description": "All = score websites and return businesses without a website as no-website leads. With website = only scan businesses that have a site. Without website = only return no-website / social-only leads (no scanning, cheapest).",
            "default": "all"
          },
          "skipClosed": {
            "title": "Skip closed businesses",
            "type": "boolean",
            "description": "Skip rows marked permanently or temporarily closed (Google Maps Scraper fields).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Sites scanned in parallel. 0 = automatic (6 in full mode, 16 in quick mode). In full mode allow roughly 500 MB of memory per parallel site.",
            "default": 0
          },
          "navigationTimeoutSecs": {
            "title": "Page load timeout (seconds)",
            "minimum": 10,
            "maximum": 60,
            "type": "integer",
            "description": "How long to wait for a homepage. Sites slower than this are still scored from whatever loaded.",
            "default": 20
          },
          "mobileThrottling": {
            "title": "Mobile throttling (full mode)",
            "enum": [
              "fast-4g",
              "none"
            ],
            "type": "string",
            "description": "Fast 4G + 2x CPU approximates a mid-range phone on 4G. 'None' measures raw speed from the data centre (numbers look better).",
            "default": "fast-4g"
          },
          "saveScreenshots": {
            "title": "Save mobile screenshot (full mode)",
            "type": "boolean",
            "description": "Saves a 390px-wide screenshot of each homepage to the key-value store, handy for outreach emails.",
            "default": false
          },
          "includeOriginalFields": {
            "title": "Pass through original fields",
            "type": "boolean",
            "description": "Copy every field of the input row into 'original' on each result (e.g. all Google Maps Scraper fields).",
            "default": true
          },
          "targetService": {
            "title": "Focus on one service (optional)",
            "enum": [
              "none",
              "web-design",
              "seo",
              "speed",
              "tracking-ads",
              "compliance",
              "email-deliverability",
              "accessibility"
            ],
            "type": "string",
            "description": "Re-ranks leads by the opportunity for the service you sell and explains it (e.g. \"SEO opportunity (14 pts): No sitemap; Missing meta description\").",
            "default": "none"
          },
          "onlyTargetService": {
            "title": "Only output leads with an opportunity for that service",
            "type": "boolean",
            "description": "Leads without one are not output and not charged.",
            "default": false
          },
          "includeBusinessPhone": {
            "title": "Include business phone numbers",
            "type": "boolean",
            "description": "Off by default (UK GDPR: a sole trader's phone is personal data). When off, phone numbers are removed from the output and from original fields, and only hasPhone is kept. Emails are never collected.",
            "default": false
          },
          "companyEnrichment": {
            "title": "Company details from the website",
            "type": "boolean",
            "description": "Free: UK company number, VAT number, schema.org organisation data and company social pages that the business itself publishes.",
            "default": true
          },
          "companiesHouseApiKey": {
            "title": "Companies House API key (optional, UK)",
            "type": "string",
            "description": "Your free key from developer.company-information.service.gov.uk. Adds status, incorporation date, SIC codes and accounts type. Charged (company-enriched) only when a record is attached. Officers are never fetched."
          },
          "companyNameSearch": {
            "title": "Match by business name when no company number is on the site",
            "type": "boolean",
            "description": "UK only, exact normalised name match (one active company) so it never guesses.",
            "default": false
          },
          "aiProvider": {
            "title": "AI pitch line (your own key)",
            "enum": [
              "none",
              "anthropic",
              "openai"
            ],
            "type": "string",
            "description": "Writes one factual, specific opening line per good lead from its measured issues. Nothing is sent to the business.",
            "default": "none"
          },
          "aiApiKey": {
            "title": "AI API key",
            "type": "string",
            "description": "Your Anthropic or OpenAI key; billed by your provider, never logged or stored."
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Default: claude-sonnet-5-5 (Anthropic) or gpt-4o-mini (OpenAI)."
          },
          "aiOfferDescription": {
            "title": "What your agency sells (for the AI line)",
            "type": "string",
            "description": "e.g. \"Fast WordPress rebuilds and local SEO for trades in Devon\"."
          },
          "aiMinLeadScore": {
            "title": "Only write AI lines for leads scoring at least",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keeps your LLM spend on the best leads.",
            "default": 55
          },
          "aiMaxLeads": {
            "title": "Max AI lines per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on generated lines (and on the ai-pitch event).",
            "default": 100
          },
          "exportHubspot": {
            "title": "Write HUBSPOT_COMPANIES.csv",
            "type": "boolean",
            "description": "Ready for HubSpot > Import > Companies (Company Domain Name de-duplicates).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Most small-business sites don't need a proxy. Datacenter proxy is enough when a host rate-limits.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}