# Website Problem Finder (`tanukiforge/website-problem-finder`) Actor

Checks small business websites and names one real, checkable problem per site, ready to open a sales email with. Finds the businesses for you from OpenStreetMap, or audits your own list.

- **URL**: https://apify.com/tanukiforge/website-problem-finder.md
- **Developed by:** [Tanuki Forge](https://apify.com/tanukiforge) (community)
- **Categories:** Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Problem Finder

Checks small business websites and names **one real, checkable problem per
site**, written as a sentence you can open a sales email with:

> Your site does not scale properly on a phone.

> Your site's copyright still says 2017, so it reads as abandoned.

> Your website does not load right now.

Built for web designers, agencies and freelancers who sell websites to local
businesses. An email that names a real problem on the prospect's own site gets
answered far more often than a generic pitch, and a wrong claim loses the lead,
so this tool is built to say nothing rather than say something false.

### Where the businesses come from

Use any mix of three sources:

- **A location and categories.** For example `Minneapolis, MN` with
  `plumber` and `roofer`. Businesses come from OpenStreetMap, including the
  ones that list **no website at all**, which are often the best leads.
- **Your own list of websites.**
- **A dataset from another Actor**, such as a Google Maps scraper run. Pass its
  dataset ID; rows are read from `title` or `name`, `website`, `phone`,
  `categoryName` and `address`.

### Quick start

Find plumbers and roofers in a city and check every website:

```json
{
  "location": "Denver, CO",
  "categories": ["plumber", "roofer"],
  "maxResults": 200
}
```

Check a list you already have:

```json
{
  "websites": ["https://example-plumbing.com", "example-roofing.com"]
}
```

#### Use it after a Google Maps scraper

Google Maps has the most complete business listings, and this Actor turns that
list into a reason to email each business.

1. Run a Google Maps scraper (for example `compass/crawler-google-places`) for
   your trade and city, such as "dentists in Austin".
2. Open that run's **Storage** tab and copy the **Dataset ID**.
3. Start this Actor with that ID:

```json
{
  "datasetId": "<the dataset ID you copied>",
  "maxResults": 500
}
```

Businesses with no website in the Maps listing come back as `no_website`, and
every listed site is checked. You can also chain the two automatically with an
Apify integration that starts this Actor when the scraper run finishes.

### What it checks

| Problem | Sentence it can produce |
|---|---|
| No website in the listing | Your business listing shows no website. |
| Domain or server gone | Your website does not load right now. |
| Server error | Your website shows a server error right now. |
| No mobile viewport | Your site does not scale properly on a phone. |
| No working HTTPS (tried before HTTP, always) | Browsers show your site as 'Not Secure' to visitors. |
| No phone, email, form, contact or booking link | Your homepage shows no phone number, email address or way to get in touch. |
| Copyright notice 3+ years old (adjustable) | Your site's copyright still says 2019, so it reads as abandoned. |
| Slow first response | Your homepage took 4.4 seconds to respond. |

It also reports, without making them the headline: missing page title, missing
meta description, a phone number that is not a click-to-call link, and the site
builder (Wix, Squarespace, GoDaddy, WordPress and others).

#### What it will not claim

- **A site that blocks automated visitors is never called "down".** It comes
  back as `refused_bots`, free of charge, with no sentence.
- A dead deep link (`/about` returning 404) is not a dead site; the homepage
  is checked instead.
- "No way to get in touch" is never said about a page drawn by JavaScript,
  where the links are not in the HTML.
- Copyright years are read only from text a visitor can see, never from font
  licences or code.
- A business with no website in its listing is never told it has no website,
  only that the listing shows none: many have a site or social page the map
  never recorded.
- Sites whose `robots.txt` asks tools to stay away are skipped, free.

### Output

One row per business (an illustrative example):

```json
{
  "name": "Example Hair Studio",
  "website": "https://www.example-hair.test/",
  "status": "ok",
  "problemSentence": "Your site's copyright still says 2017, so it reads as abandoned.",
  "problems": ["Copyright still says 2017, so the site reads as abandoned", "Built on Wix"],
  "flags": ["stale_copyright"],
  "responseSeconds": 0.17,
  "builder": "Wix",
  "hasClickToCall": true,
  "copyrightYear": 2017,
  "category": "Hair salon / barber",
  "phone": "+1 612 555 0100",
  "address": "123 Lake St Minneapolis",
  "source": "OpenStreetMap contributors (ODbL)",
  "checkedAt": "2026-11-23T20:41:07+00:00"
}
```

`status` is one of `ok`, `dead`, `no_website`, `refused_bots`,
`skipped_robots` or `blocked_address`.

### Pricing

Pay per result:

- **Website audited** (`ok` or `dead`): charged per site.
- **Business with no website** found: charged per business, at a lower price.
- Sites skipped for `robots.txt`, bot walls or private addresses are free.

Set a maximum cost per run in the run options and the Actor stops cleanly when
it is reached.

### Data and attribution

Business listings found by location come from OpenStreetMap, © OpenStreetMap
contributors, available under the Open Database Licence. Each such row carries
that attribution in `source`.

***

### Development

Python 3.12 with the Apify SDK, not the TypeScript stack in the usual
standards: it is a small backend job with no UI, and the audit it is built on
was already Python. Standard library only apart from `apify`.

```
python3.12 -m venv .venv && .venv/bin/pip install -r requirements-dev.txt
.venv/bin/python -m pytest                  # tests, no network
.venv/bin/python -m problem_finder          # local run, reads storage/key_value_stores/default/INPUT.json
```

Deploy with `APIFY_TOKEN_FILE=<path to a file holding the token> python3 scripts/deploy.py`,
which uploads the source and builds without the Apify CLI (or use `apify push`). Pay-per-event
prices live in the Apify Console under Publication, Monetization, and the event
names there must match `EVENT_FOR_STATUS` in `problem_finder/main.py`
(`site-audited`, `business-without-website`).

| File | What it holds |
|---|---|
| `problem_finder/main.py` | The Actor: read input, gather businesses, audit concurrently, push and charge |
| `problem_finder/run_input.py` | Input checks |
| `problem_finder/collect.py` | Turning input into a deduplicated list of businesses |
| `problem_finder/osm.py` | Geocoding and the OpenStreetMap business search |
| `problem_finder/audit.py` | Fetching a homepage and deciding its status |
| `problem_finder/checks.py` | The checks on a loaded page and the problem sentence |
| `problem_finder/fetch.py` | Safe fetching: public addresses only, robots.txt, timeouts |
| `.actor/` | Actor definition, input schema, dataset view |

LifeOS's Lead Finder imports `audit` and `osm` from this repo rather than
carrying copies.

# Actor input Schema

## `location` (type: `string`):

A city or neighbourhood to find businesses in, for example 'Minneapolis, MN'. Leave empty to audit only your own list.

## `categories` (type: `array`):

What kinds of businesses to find in the location.

## `websites` (type: `array`):

Your own list of business websites. Used alongside, or instead of, the location search.

## `datasetId` (type: `string`):

The ID of a dataset to audit, such as the results of a Google Maps scraper run. Rows are read from title or name, website, phone, categoryName and address.

## `includeBusinessesWithoutWebsite` (type: `boolean`):

Businesses found in the location that list no website at all. Often the best leads.

## `maxResults` (type: `integer`):

The run stops after this many businesses.

## `maxConcurrency` (type: `integer`):

Each site is a different business, so this only changes how fast the run finishes.

## `respectRobotsTxt` (type: `boolean`):

Skip (free of charge) any site whose robots.txt asks automated tools to stay away.

## `slowResponseSeconds` (type: `integer`):

A homepage that takes longer than this to start answering is flagged as slow.

## `staleCopyrightYears` (type: `integer`):

A copyright notice this many years old or older is flagged.

## Actor input object example

```json
{
  "location": "Minneapolis, MN",
  "categories": [
    "plumber",
    "roofer"
  ],
  "includeBusinessesWithoutWebsite": true,
  "maxResults": 100,
  "maxConcurrency": 10,
  "respectRobotsTxt": true,
  "slowResponseSeconds": 3,
  "staleCopyrightYears": 3
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per business: status, the problem sentence, every problem found, and contact details.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": "Minneapolis, MN",
    "categories": [
        "plumber",
        "roofer"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tanukiforge/website-problem-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "location": "Minneapolis, MN",
    "categories": [
        "plumber",
        "roofer",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("tanukiforge/website-problem-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "Minneapolis, MN",
  "categories": [
    "plumber",
    "roofer"
  ]
}' |
apify call tanukiforge/website-problem-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tanukiforge/website-problem-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oFjxFEw1TNt9D9xDi/builds/ac2wAdg9bcLYuPR7J/openapi.json
