# Reviews Analyzer for Trustpilot, Booking, G2 Data (`ucchiii/review-dataset-analyzer`) Actor

One summary row per business from your own reviews dataset or CSV/JSON file (Trustpilot, Booking, G2 style): star distribution, monthly trend, reply rate and speed, top terms, rank across businesses. No scraping, no reviewer names. Empty input runs a free demo.

- **URL**: https://apify.com/ucchiii/review-dataset-analyzer.md
- **Developed by:** [Actor Factory](https://apify.com/ucchiii) (community)
- **Categories:** Automation, Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 business summaries

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

**Reviews analyzer for Trustpilot, Booking and G2 style data: turn thousands of review rows you already have into one summary row per business, hotel or product — rating, momentum, reply behaviour and what people praise or complain about — ranked against each other.**

| rank | businessName | reviewsCount | avgStars | last90DaysAvgStars | replyRate | avgReplyDays | top positive terms | top negative terms |
|---|---|---|---|---|---|---|---|---|
| 1 | Demo Harbor Hotel (fictional) | 6 | 4.0 | 4.75 | 0.833 | 1.6 | breakfast, great breakfast, reception | |
| 2 | Sample Coffee Roasters (fictional) | 6 | 3.5 | 4.0 | 0.667 | 2.8 | great, atmosphere, coffee | coffee, cold, service |
| 3 | Example Ramen House (fictional) | 6 | 3.33 | 3.75 | 0.333 | 1.5 | broth, noodle, perfect | long, long wait, overpriced |

*(real output of the free demo: 18 fictional reviews of 3 sample businesses; each row also has the star distribution, the monthly `trend`, median reply days and two more ranks)*

**For agencies, reputation analysts, hotel and SaaS marketers and market researchers who already have reviews in a table:** you (or your scraper) collected
**thousands of review rows, and nobody has time to read them**. This Actor turns them into **one summary row per business, hotel or product**, and ranks the businesses
against each other when you put several in. It is rule-based and reproducible: no scraping, no proxies, no LLM, no API key.

**Try it:** press **Start** with the input as it is (nothing picked). You get the free demo above in a few seconds: 3 rows from 18 sample reviews, plus `STATS`. Not charged.

### What it does

You bring the reviews. It reads:

- an **Apify dataset** from a reviews run in your own account (pick it in **Reviews datasets**; the field lists your datasets, no ID to copy), and/or
- a **public CSV, JSON or NDJSON file** by URL (**File URLs**).

It does not access Trustpilot, Booking, G2 or any other site, and it is not affiliated with them. The names only describe which column layouts it knows.

For each business you get:

- **Rating**: review count, average stars (10-point scores are converted to 5 stars), distribution (1 to 5 stars)
- **Momentum**: reviews in the last 30 days, average stars over the last 90 days, a **trend** (count and average stars per month, or per N months)
- **Reply behaviour**: reply rate, average and median days to reply
- **What people say**: top **positive** terms and top **negative** terms, single words and two-word phrases, English stop words removed (add your own). Booking-style "liked" / "disliked" and G2-style "pros" / "cons" columns count as positive / negative whatever the stars are
- **Comparison**: with two or more businesses, `rank` (by average stars), `rankByReplyRate` and `rankByRecentStars`, and rows sorted by rank

**Privacy by design:** reviewer names, IDs, profile links, nationalities and the review text are never read into the output. Only aggregates are written, and the column tables do not contain any reviewer column.

### Column mapping

The Actor looks for these columns (case, `_`, `-` and spaces do not matter; `a.b` means a nested field). The style you pick in **Source style** is tried first, then the others (**Detect** tries all).

| Meaning | Trustpilot style | Booking style | G2 style |
|---|---|---|---|
| Business | `businessName`, `companyName`, `businessUnit.displayName`, `domain` | `hotelName`, `propertyName` | `productName`, `product`, `vendorName` |
| Business ID | `businessUnitId`, `businessId` | `hotelId`, `propertyId` | `productId`, `productSlug` |
| Rating | `rating`, `stars` | `reviewScore` (0 to 10), `score` | `starRating`, `rating` |
| Date | `publishedDate`, `dates.publishedDate`, `date` | `reviewDate`, `date` | `publishedAt`, `reviewDate`, `submittedAt` |
| Text | `text`, `reviewText`, `body` (+ `title`) | `text`, `reviewText` (+ `reviewTitle`) | `reviewText`, `text` (+ `reviewTitle`) |
| Positive part | | `likedText`, `positiveText`, `pros` | `likedBest`, `love`, `pros` |
| Negative part | | `dislikedText`, `negativeText`, `cons` | `dislikes`, `hate`, `cons` |
| Business reply | `reply.message`, `replyText`, `companyReply` | `propertyResponse`, `hotelResponse` | `vendorReply`, `vendorResponse` |
| Reply date | `reply.publishedDate`, `replyDate` | `propertyResponseDate`, `responseDate` | `vendorReplyDate`, `responseDate` |

**Your columns are named differently?** Use the **column overrides** (Business, Rating, Review date, Review text, Positive text, Negative text, Business reply, Reply date). An override is tried before the tables. With **Source style: Custom** only your overrides and the generic names are used.
The `columnsUsed` field of each row (and `STATS`) shows which column was read for each meaning, so you can check the mapping in seconds.

- **Scores:** the **Rating scale** is detected (a `reviewScore` column or the Booking style means 10; otherwise the highest value in the input decides: up to 5, up to 10, else 100). Set it by hand if your data has only low scores.
- **No business column?** Then each dataset or file counts as one business (`businessName` is null).
- **Dates** can be ISO dates, `March 5, 2026` style dates or UNIX times. Reviews without a date still count in totals but not in the trend.

### How to use

1. Pick your reviews run in **Reviews datasets**, and/or add public file links in **File URLs**.
2. Optional: choose the **Source style** (Trustpilot, Booking, G2, Custom or detect), set column overrides, **Trend period (months)**, **Terms per list** and **Extra stop words**.
3. Press **Start**. Leave both inputs empty for the free demo on fictional sample data (not charged).
4. Check `columnsUsed` in the output to confirm the mapping, then export the table as CSV, JSON or Excel, or read it with the API.

```json
{
  "datasetIds": ["<dataset ID of your reviews run>"],
  "fileUrls": ["https://example.com/my-reviews.csv"],
  "source": "auto",
  "periodMonths": 1,
  "topTerms": 20,
  "stopwords": ["mybrand"]
}
```

**Few reviews per business?** Scrapers often return only part of the reviews. The Actor still works, but with fewer than 20 reviews the trend and top terms are only indicative; such rows have `lowSample: true`.

### Output

One row per business:

```json
{
  "businessId": "demo-hotel", "businessName": "Demo Harbor Hotel (fictional)", "url": null,
  "reviewsCount": 6, "lowSample": true, "avgStars": 4.0, "starsDistribution": {"1": 0, "2": 1, "3": 1, "4": 1, "5": 3},
  "last30DaysCount": 1, "last90DaysAvgStars": 4.75,
  "trend": [{"period": "2026-08", "count": 1, "avgStars": 5.0}],
  "replyRate": 0.833, "avgReplyDays": 1.6, "medianReplyDays": 1.0,
  "topPositiveTerms": [{"term": "great breakfast", "count": 3}], "topNegativeTerms": [],
  "latestReviewAt": "2026-11-04T21:53:05+00:00",
  "rank": 1, "rankOf": 3, "rankByReplyRate": 1, "rankByRecentStars": 1,
  "columnsUsed": {"business": "businessName", "rating": "rating", "date": "publishedDate", "reply": "reply.message"}
}
```

| Field | Meaning |
|---|---|
| `businessId`, `businessName`, `url` | The business, hotel or product |
| `reviewsCount`, `avgStars`, `starsDistribution` | Review count, average stars (on a 5-star scale) and the 1 to 5 star distribution |
| `lowSample` | `true` when the business has fewer than 20 reviews |
| `last30DaysCount`, `last90DaysAvgStars`, `trend` | Momentum: recent reviews and count and average stars per period |
| `replyRate`, `avgReplyDays`, `medianReplyDays` | Reply behaviour |
| `topPositiveTerms`, `topNegativeTerms` | Frequent terms with counts |
| `latestReviewAt` | Date of the latest review |
| `rank`, `rankOf`, `rankByReplyRate`, `rankByRecentStars` | Ranks among the businesses in the run |
| `columnsUsed` | Which column was read for each meaning |

Run statistics (`reviewsRead`, `reviewsSkipped`, `businesses`, `written`, `inputErrors`, `truncated`, `columnsUsed`) are saved in the key-value store as `STATS`.

### Notes and limits

- Works on data you already have; it does not access any review site. You are responsible for how the underlying data was collected and used.
- A dataset or file that cannot be read (wrong ID, no access, not a public URL, not JSON or CSV) is skipped and listed in `STATS.inputErrors`; the run fails only when nothing could be read at all. File URLs must be public http(s) links; internal network addresses are blocked.
- Up to 200,000 reviews per run (`STATS.truncated` tells you if more were left out); files up to 50 MB each.
- Term analysis is simple (lowercase, basic plural folding) and tuned for English text. Terms appearing in fewer than 2 reviews are omitted.
- Ranks use the average stars as they are, so check `lowSample` before you compare a business with 5 reviews to one with 500. Ties share a rank.
- Reviews without a rating count toward totals and the reply rate but not toward the averages.

### Pricing

| Event | Free plan | Paid plans (Store discount tiers Bronze / Silver / Gold) |
|---|---|---|
| Business summary (one business with its aggregated review summary) | $5.00 per 1,000 | $4.50 / $4.00 / $3.50 per 1,000 |

The price on this page ("from $3.50") is the Gold tier price. One business = one output row; reading reviews is free.
Failed runs and the demo are **not charged**.
On the Apify Free plan, the $5 of monthly platform credit covers about **1,000 business summaries** a month, which is enough to try it on real data.

### FAQ

**Does it collect reviews from Trustpilot, Booking or G2?** No. It reads data you already have (an Apify dataset or a public
file) and does not access any review site. It is not affiliated with these sites.

**My column names are different. Can I still use it?** Yes. Set the column overrides (or **Source style: Custom**) and check
`columnsUsed` in the output to see which column was read for each meaning.

**My data has 10-point scores. Are they converted?** Yes. The rating scale is detected and scores are converted to 5 stars. Set
**Rating scale** by hand if your data has only low scores.

**What if one of my files cannot be read?** It is skipped and listed in `STATS.inputErrors`. The run fails only when nothing
could be read at all.

**What am I charged for?** One business summary row in the output. Reading reviews, failed runs and the demo are free.

If this Actor saved you time, a rating on the Store helps others find it.

### More tools from the same developer

- [Sentiment Analysis](https://apify.com/ucchiii/review-sentiment-analysis) — VADER sentiment scores and a positive / neutral / negative label for each review or comment (offline, no LLM)
- [Google Maps Reviews Analyzer](https://apify.com/ucchiii/reviews-insights) — per-place ratings, trends, owner response rate and top terms from Google Maps reviews
- [Google Maps Market Analyzer](https://apify.com/ucchiii/maps-market-analyzer) — market and competitor tables from Google Maps scraper datasets
- [Google Sheets Export](https://apify.com/ucchiii/google-sheets-export) — export an Apify dataset to Google Sheets
- [Remove Duplicates](https://apify.com/ucchiii/dataset-dedup-merge) — merge Apify datasets and remove duplicates by the fields you choose

# Actor input Schema

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

Dataset IDs (the 'defaultDatasetId' of a finished run that collected reviews, e.g. 'WkzbQMuFYuamGv3YF'). Datasets from your own Trustpilot, Booking or G2 style reviews runs. Reviews are grouped by business. Leave this and File URLs empty to run a free demo on fictional sample data (not charged).

## `fileUrls` (type: `array`):

Public http(s) links to CSV, JSON or NDJSON files with reviews (up to 50 MB each). Links to internal networks are blocked. Use together with or instead of datasets. Leave empty to use only datasets.

## `source` (type: `string`):

Which column names to expect. The Actor tries this style first, then the others. Booking style also reads liked and disliked text columns and treats scores as 0 to 10. Default: detect from the columns.

## `ratingMax` (type: `string`):

Highest value of your rating column. Scores are converted to a 5-star scale. Default: detect (a column named reviewScore or the Booking source style means 10).

## `businessField` (type: `string`):

Override: column that names the business, hotel or product (e.g. 'companyName' or 'hotel.title'; dots reach nested fields). Without it the usual names for the chosen style are tried. If none exists, each dataset or file counts as one business.

## `ratingField` (type: `string`):

Override: column with the star rating or score (e.g. 'score'). Numbers or text like '4.5' or '8,3' are read.

## `dateField` (type: `string`):

Override: column with the date the review was published (ISO dates, 'March 5, 2026' style dates and UNIX times are read).

## `textField` (type: `string`):

Override: column with the review text, used for the top terms. The text is never written to the output.

## `positiveTextField` (type: `string`):

Override: column with the 'liked' or 'pros' part of a review. Its words count as positive whatever the stars are. Booking and G2 style columns are found automatically.

## `negativeTextField` (type: `string`):

Override: column with the 'disliked' or 'cons' part of a review. Its words count as negative whatever the stars are.

## `replyField` (type: `string`):

Override: column with the business's reply to the review (text or an object with 'message'). A review counts as replied when this is not empty.

## `replyDateField` (type: `string`):

Override: column with the date of the reply, used for reply speed. Without it the date inside a reply object is used if there is one.

## `periodMonths` (type: `integer`):

Length of each trend bucket in months. 1 = monthly count and average rating, 3 = quarterly. Allowed range 1 to 12 (default 1).

## `topTerms` (type: `integer`):

How many top positive and top negative words or two-word phrases to return for each business. Allowed range 0 to 100 (default 20); 0 returns no term lists.

## `stopwords` (type: `array`):

Additional words to ignore in term analysis, such as the business name (lowercase, e.g. \['acme', 'hotel']). Common English stop words are always ignored.

## Actor input object example

```json
{
  "source": "auto",
  "ratingMax": "auto",
  "periodMonths": 1,
  "topTerms": 20
}
```

# Actor output Schema

## `results` (type: `string`):

One item per business: rank, businessName, reviewsCount, avgStars, last30DaysCount, last90DaysAvgStars, replyRate, avgReplyDays, medianReplyDays, latestReviewAt (plus star distribution, rating trend and top terms).

## `stats` (type: `string`):

Record STATS: run counts (reviews read, skipped, businesses, input errors, columns used).

# 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("ucchiii/review-dataset-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("ucchiii/review-dataset-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 ucchiii/review-dataset-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ucchiii/review-dataset-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/MtIUzo7OZRuhAsdSQ/builds/RETe2NYcyBp5ahT0y/openapi.json
