{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Lead Pack: Audit, Contacts & Hiring",
    "description": "For a list of company websites, run a conversion audit, collect public contacts, and check hiring signals in one pass. One merged row per company (shared recordId), with leak score, top issues, an optional PDF report, emails and phones from the site, and open roles.",
    "version": "0.1",
    "x-build-id": "eVtxGmuTHgxQQTMD4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacolada~local-business-lead-pack/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacolada-local-business-lead-pack",
        "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/datacolada~local-business-lead-pack/runs": {
      "post": {
        "operationId": "runs-sync-datacolada-local-business-lead-pack",
        "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/datacolada~local-business-lead-pack/run-sync": {
      "post": {
        "operationId": "run-sync-datacolada-local-business-lead-pack",
        "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": "Websites",
            "type": "array",
            "description": "Company websites or domains, one per line, e.g. \"acme.com\" or \"https://www.acme.com\". 'https://' is added if missing. Each website becomes one merged row. Optional if you set an Apify dataset ID below.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Apify dataset ID",
            "type": "string",
            "description": "Optional. Read websites from an existing Apify dataset, for example compass/crawler-google-places or Website Contact Finder. Pick a dataset you have access to, or paste its ID. Items should have a website field (see Website field below). Rows with no website, and Google Maps page URLs, are skipped."
          },
          "urlField": {
            "title": "Website field in the dataset",
            "type": "string",
            "description": "Field to use as the company website when reading a dataset. If empty, tries website, then url, then domain, in that order. For Google Maps scraper results leave this empty (or set it to website). Do not set it to url — on Maps results that is the Google Maps page, not the company site.",
            "default": ""
          },
          "audit": {
            "title": "Run conversion audit",
            "type": "boolean",
            "description": "Score each site for missing forms, click-to-call, quote/booking CTAs, reviews, leftover template copy, HTTP-to-HTTPS gaps, thin privacy pages, broken links, and outside scripts. Default on.",
            "default": true
          },
          "contacts": {
            "title": "Collect public contacts",
            "type": "boolean",
            "description": "Collect emails, phone numbers, and social profile links that are published on the company website. This module only reads public pages; it does not guess or enrich contacts from other sources. Default on.",
            "default": true
          },
          "hiring": {
            "title": "Check hiring signals",
            "type": "boolean",
            "description": "Look for a public careers page or job board (Greenhouse, Lever, Ashby, Workable, Workday, and others) and list open roles with signal tags. Default on.",
            "default": true
          },
          "generateReport": {
            "title": "Generate a one-page PDF report",
            "type": "boolean",
            "description": "When the audit module is on, save a one-page PDF (and HTML) conversion report per website to this run's key-value store, and add a reportUrl on each result row. Default on. Reports are generated one at a time so a 1024 MB run stays within memory.",
            "default": true
          },
          "preparedBy": {
            "title": "Prepared-by line on the report",
            "type": "string",
            "description": "Optional footer line, for example your name or agency (\"Prepared by …\"). Leave blank for no attribution. Do not put a phone number or email here — those are stripped.",
            "default": ""
          },
          "maxSites": {
            "title": "Max websites",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit on companies processed in this run. Default 100.",
            "default": 100
          },
          "maxPagesPerSite": {
            "title": "Max audit pages per website",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages the conversion audit fetches on each site (home plus contact, about, services, or booking/quote pages when they are linked or at common paths). Default 4. This is not a full-site crawl.",
            "default": 4
          },
          "maxPagesPerDomain": {
            "title": "Max contact pages per website",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many pages the contacts module crawls on each site (contact, about, and imprint pages first). Default 8.",
            "default": 8
          },
          "maxLinksPerSite": {
            "title": "Max links to check per website (audit)",
            "minimum": 0,
            "maximum": 80,
            "type": "integer",
            "description": "Cap on unique http(s) links the audit tests for broken status, same-site links first. Social profile links are always checked separately. Default 25. Use 0 to skip non-social link checks.",
            "default": 25
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip pages the website's robots.txt disallows. Default true (recommended).",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Give up on a page after this many seconds. Default 15.",
            "default": 15
          },
          "maxConcurrency": {
            "title": "Companies in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many companies to process at the same time. Modules for one company run one after another. Default 3. Keep this modest; the default run memory is 1024 MB.",
            "default": 3
          },
          "trackChanges": {
            "title": "Track hiring changes between runs",
            "type": "boolean",
            "description": "Remember the roles seen on each company's last run of this Actor and report which roles are new. The first run for a company is a baseline (nothing is reported as new). Uses a separate state store from the standalone Hiring Signal Tracker. Default on.",
            "default": true
          },
          "stateName": {
            "title": "Hiring watch list name",
            "type": "string",
            "description": "Name of the saved hiring state. Use the same name on scheduled runs of the same list. Use a different name to keep separate lists (for example one per client). Letters, numbers and dashes.",
            "default": "default"
          },
          "signalKeywords": {
            "title": "Extra hiring-signal keywords",
            "type": "array",
            "description": "Optional words to tag in role titles and departments, e.g. \"shopify\", \"hvac\", \"bookkeeper\". Matching roles get a keyword:<word> tag. Built-in tags always apply.",
            "items": {
              "type": "string"
            }
          },
          "guessBoardFromDomain": {
            "title": "Guess the job board from the domain",
            "type": "boolean",
            "description": "If no job board is found on the website, try the company name as a board name on Greenhouse, Lever, Ashby, Workable, Recruitee and SmartRecruiters. Off by default because it can occasionally match a different company with the same name.",
            "default": false
          },
          "defaultCountry": {
            "title": "Default country for phone numbers",
            "type": "string",
            "description": "Optional ISO 3166-1 alpha-2 code (for example US or GB) used when a phone number on the site has no country code. Leave blank to infer from the page when possible.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}