# Capterra reviews (Works and Fast) (`architjn/capterra-reviews-scraper`) Actor

Extract verified Capterra software reviews at scale. Bypasses Cloudflare, handles pagination & filters, returns clean JSON/CSV/Excel with reviewer details, ratings, pros/cons, and full text. Pay-per-result pricing. Perfect for competitive intel, lead gen, and sentiment analysis.

- **URL**: https://apify.com/architjn/capterra-reviews-scraper.md
- **Developed by:** [Archit Jain](https://apify.com/architjn) (community)
- **Categories:** Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Capterra reviews scraper (Apify Actor)

Scrapes **Capterra product review pages** (including behind Cloudflare) using SeleniumBase UC, Playwright over CDP, and a **residential proxy**. Each review is pushed to the **default dataset**; a summary is stored under the key **`OUTPUT`** in the default key-value store. The same run still writes a timestamped JSON file under `DATA_DIR` (see `.env.example`).

### Requirements

- **Proxy**: set `PROXY_USER` and `PROXY_PASSWORD` (or `PROXY_PASS`), or enable **Apify Proxy** on the Actor so `APIFY_PROXY_PASSWORD` is injected (with `PROXY_PROVIDER=apify`, an empty `PROXY_USER` defaults to `groups-RESIDENTIAL` in code).
- **Memory**: browser automation is heavy; this repo sets **default 4096 MB** / **min 2048 MB** in `.actor/actor.json` (adjust if runs OOM).

### Input

| Field | Description |
|--------|-------------|
| `reviewsUrl` | Capterra reviews tab URLs as a JSON **array of strings** (see `.actor/actor.json`). Each URL must be **`https://www.capterra.com/p/{numericId}/{slug}/reviews/`** (optional trailing slash; **no** query string or `#fragment`). **At most four** URLs per run. The scraper still accepts a single string or legacy `{ "url": "..." }` rows if present in saved input. All URLs run in **one browser session**, in order. |
| `maxReviews` | Cap **per URL** (default `50`). Example: `10` with **two** URLs → up to **20** reviews in one run. |
| `dataDir` | Optional `DATA_DIR` for JSON + CF screenshots. |

Default local input for `apify run`: `storage/key_value_stores/default/INPUT.json`.

### Run

Use a **virtualenv inside this repo** so dependencies match Docker (`requirements.txt`):

```bash
cd /path/to/capterra-scraper
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
````

**Apify CLI** uses `$VIRTUAL_ENV/bin/python3` when set, otherwise `./.venv/bin/python3`, otherwise **`which python3`** (so a parent venv left on **PATH** still wins). Use the wrapper so **only** this repo’s `.venv` is used (it must exist; see above):

```bash
./scripts/apify-run.sh
```

If nothing else is activated **and** `./.venv` exists, plain **`apify run`** is usually enough. Otherwise: **`env -u VIRTUAL_ENV PATH="$PWD/.venv/bin:$PATH" apify run`**

**Without Apify** (Docker / plain Python):

```bash
python src/main.py
```

After **`apify run`**, results are under **`storage/`**: default **dataset** items in `storage/datasets/<id>/` (one JSON per `push_data` row), and **`OUTPUT`** in `storage/key_value_stores/default/OUTPUT.json` (`reviewCount`, `reviewsUrls`, and `reviewsUrl` as the first URL for backward compatibility). In Apify Console, the same appears on the run’s **Dataset** and **Key-value store** tabs.

Docker image entrypoint is unchanged: Xvfb + `python src/main.py`.

### Deploy

From this directory (with [Apify CLI](https://docs.apify.com/cli) logged in):

```bash
apify push
```

Configure **Actor → Settings → Environment variables** (or secrets) for proxy credentials; see `.env.example` for variable names.

### Troubleshooting `apify run`

- **`ModuleNotFoundError: No module named 'apify'`** — The CLI uses `$VIRTUAL_ENV/bin/python3` when your shell has any venv activated, which may be a **parent** repo (see the `Run:` line). Fix: **`./scripts/apify-run.sh`**, or **`deactivate`** then **`apify run`**, or **`env -u VIRTUAL_ENV apify run`** after installing into **`./.venv`** with `pip install -r requirements.txt`.
- **`TypeError: cannot specify both default and default_factory`** when importing `apify` — Your environment has **Pydantic ≥ 2.12**, which breaks crawlee (pulled in by `apify` 2.x). Run: `pip install 'pydantic>=2.10.3,<2.12'` (already constrained in `requirements.txt`).
- **`browserforge.download` has no attribute `DATA_FILES`** — Pin **`browserforge==1.2.3`** (see `requirements.txt`) and reinstall: `.venv/bin/pip install -r requirements.txt`.

# Actor input Schema

## `reviewsUrl` (type: `array`):

Capterra reviews tab URLs to scrape — one https URL string per array entry, exactly https://www.capterra.com/p/{id}/{slug}/reviews/ (no ?page= in input; pagination is automatic). At most four URLs per run. Up to maxReviews reviews are collected per URL.

## `maxReviews` (type: `integer`):

Per reviews page URL. Example: 10 with two URLs collects up to 20 reviews in one run.

## `dataDir` (type: `string`):

Optional override for DATA\_DIR (JSON output and CF screenshots).

## Actor input object example

```json
{
  "reviewsUrl": [
    "https://www.capterra.com/p/19319/JIRA/reviews/"
  ],
  "maxReviews": 50
}
```

# 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 = {
    "reviewsUrl": [
        "https://www.capterra.com/p/19319/JIRA/reviews/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("architjn/capterra-reviews-scraper").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 = { "reviewsUrl": ["https://www.capterra.com/p/19319/JIRA/reviews/"] }

# Run the Actor and wait for it to finish
run = client.actor("architjn/capterra-reviews-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "reviewsUrl": [
    "https://www.capterra.com/p/19319/JIRA/reviews/"
  ]
}' |
apify call architjn/capterra-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=architjn/capterra-reviews-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Capterra reviews (Works and Fast)",
        "description": "Extract verified Capterra software reviews at scale. Bypasses Cloudflare, handles pagination & filters, returns clean JSON/CSV/Excel with reviewer details, ratings, pros/cons, and full text. Pay-per-result pricing. Perfect for competitive intel, lead gen, and sentiment analysis.",
        "version": "0.1",
        "x-build-id": "y2SSS8QMnK0JXetzg"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/architjn~capterra-reviews-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-architjn-capterra-reviews-scraper",
                "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/architjn~capterra-reviews-scraper/runs": {
            "post": {
                "operationId": "runs-sync-architjn-capterra-reviews-scraper",
                "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/architjn~capterra-reviews-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-architjn-capterra-reviews-scraper",
                "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": {
                    "reviewsUrl": {
                        "title": "Reviews page URLs",
                        "maxItems": 4,
                        "type": "array",
                        "description": "Capterra reviews tab URLs to scrape — one https URL string per array entry, exactly https://www.capterra.com/p/{id}/{slug}/reviews/ (no ?page= in input; pagination is automatic). At most four URLs per run. Up to maxReviews reviews are collected per URL.",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "pattern": "^https://www\\.capterra\\.com/p/\\d+/[A-Za-z0-9][A-Za-z0-9\\-]*/reviews/?$"
                        }
                    },
                    "maxReviews": {
                        "title": "Max reviews per URL",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Per reviews page URL. Example: 10 with two URLs collects up to 20 reviews in one run.",
                        "default": 50
                    },
                    "dataDir": {
                        "title": "Data directory",
                        "type": "string",
                        "description": "Optional override for DATA_DIR (JSON output and CF screenshots)."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
