{
  "openapi": "3.0.1",
  "info": {
    "title": "Bad Website Finder — Local Businesses With Broken Sites",
    "description": "Find local businesses whose website is dead, parked, not mobile-friendly, or missing HTTPS. Every site is actually fetched, then ranked worst-first with name, phone and address.",
    "version": "0.1",
    "x-build-id": "9HfSlWDDNgL5hn6te"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trustworthy_lugworm~bad-website-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trustworthy_lugworm-bad-website-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/trustworthy_lugworm~bad-website-finder/runs": {
      "post": {
        "operationId": "runs-sync-trustworthy_lugworm-bad-website-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/trustworthy_lugworm~bad-website-finder/run-sync": {
      "post": {
        "operationId": "run-sync-trustworthy_lugworm-bad-website-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",
        "required": [
          "places"
        ],
        "properties": {
          "places": {
            "title": "Cities or neighbourhoods",
            "type": "array",
            "description": "One per line. Be specific — 'Burbank, California' not 'Burbank'. Each place is searched separately, so you can sweep a whole metro in one run.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Business categories",
            "type": "array",
            "description": "Leave empty to search all of them. Trades and professional offices tend to have the worst websites and the most money to fix them.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "beauty",
                "trades",
                "health",
                "retail",
                "insurance",
                "professional"
              ],
              "enumTitles": [
                "Food — restaurants, cafés, bars, bakeries, delis",
                "Beauty — salons, spas, barbers, tattoo, massage",
                "Trades — plumbers, electricians, roofers, auto repair",
                "Health — dentists, doctors, vets, opticians, gyms",
                "Retail — florists, furniture, clothing, jewellery, pet, hardware",
                "Insurance — agents and brokers",
                "Professional — lawyers, accountants, tax, real estate, financial advisors"
              ]
            },
            "default": []
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How far from the centre of each place to search. 4 km covers a neighbourhood; 15 km covers a small city.",
            "default": 4
          },
          "maxSitesPerPlace": {
            "title": "Max sites to check per place",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Caps the cost of a run. Businesses without a website tag in OpenStreetMap are never fetched and never counted.",
            "default": 40
          },
          "minScore": {
            "title": "Minimum problem score",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Only return sites this bad or worse. 0 returns everything with any problem, 5 returns only serious ones, 40 returns only dead and parked domains.",
            "default": 0
          },
          "includeHealthySites": {
            "title": "Include healthy sites too",
            "type": "boolean",
            "description": "Off by default — a business with a good website is not a prospect. Turn on if you want a full census of the area rather than a lead list.",
            "default": false
          },
          "includeInconclusive": {
            "title": "Include sites that blocked the check",
            "type": "boolean",
            "description": "Some sites sit behind a bot filter and return 403. Spot-checks showed these usually open fine in a real browser, so they are excluded by default rather than reported as broken.",
            "default": false
          },
          "concurrency": {
            "title": "Sites fetched at once",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Higher is faster and cheaper. Lower it if you are seeing timeouts.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Used only for fetching business websites — never for OpenStreetMap, which is told our real identity. A residential proxy reduces how many sites block the check.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}