# Google Reviews Analyzer: Unanswered Owner Replies (`datacolada/review-gap-analyzer`) Actor

Google reviews analyzer for unanswered owner replies. Reads a Compass reviews or Places dataset; it does not scrape Google Maps. Per business: reply rate, unanswered 1–2 star count, median response time, a reputation-gap score, a paste-ready outreach line, and a shared recordId.

- **URL**: https://apify.com/datacolada/review-gap-analyzer.md
- **Developed by:** [Cyd Dunscombe](https://apify.com/datacolada) (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

$10.00 / 1,000 business analyzeds

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/running/actors-in-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

## Google Reviews Analyzer: Unanswered Owner Replies

A **Google reviews analyzer** for **unanswered owner replies**. Find reply gaps in a Google reviews dataset you already have. This Actor **does not scrape Google Maps**. It reads an Apify dataset from [compass/Google-Maps-Reviews-Scraper](https://apify.com/compass/google-maps-reviews-scraper) and/or [compass/crawler-google-places](https://apify.com/compass/crawler-google-places), then writes one company-level summary per business.

Agencies use the `outreachSummary` line as a paste-ready talking point (“you left 6 one- and two-star reviews unanswered”) and the shared `recordId` / `placeId` to hand the list to Website Contact Finder and Lead Deduplicator.

### Works well with

| Actor | How they connect |
| --- | --- |
| [compass/Google-Maps-Reviews-Scraper](https://apify.com/compass/google-maps-reviews-scraper) | Pass that Actor's dataset as `datasetId`. One row per review, with `stars`, `text`, `publishedAtDate`, `responseFromOwnerText` / `responseFromOwnerDate`, `placeId`, `title`, and `website` when present. |
| [compass/crawler-google-places](https://apify.com/compass/crawler-google-places) | Place rows with a nested `reviews` array and a `website` field also work. You can merge a Places dataset and a reviews dataset on `placeId` via `datasetIds`. |
| [datacolada/website-contact-finder](https://apify.com/datacolada/website-contact-finder) | When a website is present, `recordId` is the same shared ID. Pass this Actor's dataset as Contact Finder's `datasetId` if you want to collect the owner's emails. |
| [datacolada/lead-deduplicator](https://apify.com/datacolada/lead-deduplicator) | Merge on `recordId` and/or `placeId` with Maps and Contact Finder rows. |
| [datacolada/email-list-cleaner](https://apify.com/datacolada/email-list-cleaner) | After Contact Finder, clean the owner emails you collected. |
| [datacolada/lead-leak-audit](https://apify.com/datacolada/lead-leak-audit) | Audit the same business website for conversion holes. Same `recordId` when a website is present. |
| [datacolada/hiring-signal-tracker](https://apify.com/datacolada/hiring-signal-tracker) | See whether those businesses are also hiring. Same `recordId` when a website is present. |
| [datacolada/store-checker](https://apify.com/datacolada/store-checker) | Check whether the business website is a live Shopify or WooCommerce store. |

### What it does not do

- It does **not** scrape Google Maps, log into a Business Profile, or post replies.
- Business summary rows never include reviewer names, emails, or phone numbers. An optional per-review detail output can include review URL, date, stars and text; reviewer names stay off unless you turn them on.
- Google Maps page URLs are not treated as the business website, so they do not produce a `recordId`. The Reviews Scraper often omits `website`; in that case `recordId` is `null` and `placeId` is still written. To fill `recordId`, also pass a [compass/crawler-google-places](https://apify.com/compass/crawler-google-places) dataset (via `datasetIds`) that includes each place's website.

### Inputs

- `datasetId` / `datasetIds` — one or more Apify datasets (read permission).
- `lookbackDays` — only reviews dated inside this window are counted (default 90). Reviews with no `publishedAtDate` are omitted from the window.
- `minStarsThreshold` — reviews with this many stars or fewer are the priority set (default 2).
- `includeReviewDetails` — also write one `rowType: review-detail` row per in-window review to the default dataset (filter on `rowType`). Off by default.
- `includeReviewerNames` — off by default; only applies to detail rows.

### Output (one row per business)

`name`, `placeId`, `website`, `domain`, `recordId` (from the website domain, or `null`), `reviewCount` in the window, `replyRate` overall, `negativeReplyRate` and `unansweredNegativeCount` for 1–2 star reviews (or your threshold), `medianResponseHours` / `medianResponseLabel` when both the review date and the owner-reply date are present, `latestUnansweredNegativeDate` + a trimmed `latestUnansweredNegativeExcerpt`, `reputationGapScore` (0–100, higher means a bigger reply gap), and `outreachSummary`.

`responseFromOwnerText` is enough to count a reply even when `responseFromOwnerDate` is empty (Compass has sometimes shipped reviews that way). Those replies are counted in the rate but skipped for the median time.

#### Reputation gap score (0–100)

A simple weighted score, not a vendor ranking:

- 40% — share of 1–2 star reviews that are still unanswered
- 30% — volume of unanswered 1–2 star reviews (caps at 5)
- 15% — how often the owner replies overall (silence raises the score)
- 15% — how recent the latest unanswered negative review is (highest if it is within 14 days)

A shop that answers every bad review will score low even if a few five-star reviews went unreplied.

### Example input and output

```json
{ "datasetId": "COMPASS_REVIEWS_DATASET_ID", "lookbackDays": 90, "minStarsThreshold": 2 }
```

Each business summary includes `replyRate`, `unansweredNegativeCount`, `reputationGapScore` (0–100, higher means a bigger reply gap), `outreachSummary`, and `recordId` when a website is present. Businesses with no dated reviews in the window are not charged.

### FAQ

**Does this scrape Google Maps?** No. It only analyzes a reviews or Places dataset you already collected, typically with Compass. It does not log into a Business Profile or post replies.

**Why is `recordId` null?** The Reviews Scraper often omits `website`. Pass a [compass/crawler-google-places](https://apify.com/compass/crawler-google-places) dataset via `datasetIds` so the website can be joined on `placeId`.

**How is a reply counted?** `responseFromOwnerText` is enough even when `responseFromOwnerDate` is empty. Those replies count toward the rate but are skipped for median response time.

### Pricing

**$0.01 per business summary** (`place-analyzed`, **$10 per 1,000 businesses**), with no start fee. Per-review detail rows, empty datasets, and businesses with no dated reviews in the window are free. This Actor only analyzes a dataset you already collected (typically with the Compass reviews scraper); it does not scrape Google Maps.

### Development

```bash
npm install
npm test
```

# Actor input Schema

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

An Apify dataset produced by compass/Google-Maps-Reviews-Scraper (one row per review) and/or compass/crawler-google-places (place rows with a nested reviews array). Opened with read permission. This actor does not scrape Google Maps.

## `datasetIds` (type: `array`):

Optional extra dataset IDs to merge, for example a Places dataset (with website) plus a reviews dataset (one row per review). Joined on placeId.

## `lookbackDays` (type: `integer`):

Only reviews with a publishedAtDate inside this many days are counted. Default 90, maximum 730. Reviews with no date are omitted from the window.

## `minStarsThreshold` (type: `integer`):

Reviews with this many stars or fewer are treated as the priority / negative set (default 2, i.e. 1- and 2-star reviews).

## `includeReviewDetails` (type: `boolean`):

If on, also write one row per in-window review to the default dataset (rowType: review-detail) with URL, date, stars, text, and whether the owner replied. Reviewer names are omitted unless you also turn on includeReviewerNames. Default off.

## `includeReviewerNames` (type: `boolean`):

Only applies when per-review details are on. Default off. Business summary rows never include reviewer names.

## `maxPlaces` (type: `integer`):

Upper limit on business-summary rows. Default 500.

## Actor input object example

```json
{
  "lookbackDays": 90,
  "minStarsThreshold": 2,
  "includeReviewDetails": false,
  "includeReviewerNames": false,
  "maxPlaces": 500
}
```

# Actor output Schema

## `businesses` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("datacolada/review-gap-analyzer").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("datacolada/review-gap-analyzer").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 '{}' |
apify call datacolada/review-gap-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacolada/review-gap-analyzer"
        }
    }
}
```

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/cKQ1AwhYAdg6c5hW8/builds/xnjg9UuJ3c9LRyTMf/openapi.json
