# Trustpilot Reviews & Ratings Scraper (`trusted_tech_spot/trustpilot-reviews-rating-scraper`) Actor

Fast, verified customer review and company rating scraper for Trustpilot with sentiment analysis, verified buyer badges, and RAG export.

- **URL**: https://apify.com/trusted_tech_spot/trustpilot-reviews-rating-scraper.md
- **Developed by:** [David Sandor](https://apify.com/trusted_tech_spot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Trustpilot Reviews & Ratings Scraper 🚀

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange.svg?style=flat-square)](https://apify.com/trusted_tech_spot/trustpilot-reviews-rating-scraper)
[![Pay Per Event](https://img.shields.io/badge/Pricing-Pay%20Per%20Result%20\($0.0015\)-green.svg?style=flat-square)](https://apify.com/trusted_tech_spot/trustpilot-reviews-rating-scraper)
[![Zero Maintenance](https://img.shields.io/badge/Maintenance-Zero%20Maintenance-blue.svg?style=flat-square)](https://apify.com/trusted_tech_spot/trustpilot-reviews-rating-scraper)
[![RAG Ready](https://img.shields.io/badge/AI%20%2F%20RAG-Token%20Chunking%20Included-purple.svg?style=flat-square)](https://apify.com/trusted_tech_spot/trustpilot-reviews-rating-scraper)
[![v3.0 Enriched](https://img.shields.io/badge/Data%20Enrichment-v3.0%20Enterprise%20\(20%2B%20Fields\)-success.svg?style=flat-square)](https://apify.com/trusted_tech_spot)

Fast, verified customer review and company rating scraper for **Trustpilot** with sentiment analysis, verified buyer badges, company replies, star filters, and LLM/RAG vector export.

> ⚡ **Instant Data Scraper Guarantee (No Setup Required)**:
>
> - 🟢 **Zero-Config**: No proxies, browser extensions, or Trustpilot login credentials required.
> - 🚀 **1-Click Free Test**: Click the green **"Save & Start"** button with pre-filled inputs to test live data extraction in under 3 seconds.
> - 📊 **Instant Export**: Export clean reviews and brand sentiment directly to Excel (.xlsx), CSV, JSON, or Google Sheets.
> - 🛡️ **Enterprise Resilience**: Native parsing of Next.js hydration payload and Schema.org JSON-LD with automated fallback mechanisms for 100% SLA uptime.

<div align="center">
  <a href="https://apify.com/trusted_tech_spot/trustpilot-reviews-rating-scraper/input-schema">
    <img src="https://img.shields.io/badge/1️⃣_VIEW_INPUT_SCHEMA-CLICK_'INPUT'_TAB_ABOVE-blue?style=for-the-badge&logo=apify&logoColor=white" height="38" alt="View Input Tab" />
  </a>
  &nbsp;&nbsp;
  <a href="https://console.apify.com/actors/trusted_tech_spot/trustpilot-reviews-rating-scraper/input">
    <img src="https://img.shields.io/badge/⚡_RUN_IN_CONSOLE-START_INSTANT_TEST-brightgreen?style=for-the-badge&logo=play&logoColor=white" height="38" alt="Run Actor Free" />
  </a>
  <p><strong>⚡ 1-Click Instant Run • 💰 Pay-Per-Result ($0.0015 / item) • 🚀 Results in &lt; 2s</strong></p>
  <p><strong>🌏 全球 Trustpilot 商家口碑与真实买家评价采集 • 免代理 / 免登录 • 一键导出 Excel / CSV / JSON</strong></p>
  <p><sub>💡 <strong>Tip / 提示</strong>: Click the <strong>"Input"</strong> tab at the top of this page to see the pre-filled 1-click form! (点击页面上方的 <strong>Input</strong> 标签页即可查看已填好的默认参数并一键运行)</sub></p>
</div>

<div align="center">
  <img src="https://img.shields.io/badge/Make.com-Ready-orange?style=flat-square&logo=make" alt="Make.com" />
  <img src="https://img.shields.io/badge/Zapier-Automated-orange?style=flat-square&logo=zapier" alt="Zapier" />
  <img src="https://img.shields.io/badge/n8n-Workflow_Ready-red?style=flat-square&logo=n8n" alt="n8n" />
  <img src="https://img.shields.io/badge/LangChain_%26_LlamaIndex-Vector_Ready-blue?style=flat-square" alt="LangChain" />
  <img src="https://img.shields.io/badge/Google_Sheets-1--Click_Sync-green?style=flat-square&logo=googlesheets" alt="Google Sheets" />
</div>

***

### ⚡ 1-Click API Quick-Start (cURL / Python / Node.js)

Run directly via HTTP API without opening the browser form:

```bash
## 1-Click cURL Instant Run (Replace YOUR_APIFY_TOKEN)
curl -X POST "https://api.apify.com/v2/acts/trusted_tech_spot~trustpilot-reviews-rating-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domainOrUrl": "amazon.com", "maxReviews": 20, "starFilter": "all"}'
```

***

### 🌟 Why Choose This Scraper?

| Key Benefit | How It Solves Your Problem |
| :--- | :--- |
| **Verified Buyer Detection** | Automatically flags `isVerifiedBuyer: true` so you can separate genuine verified purchases from unsubstantiated reviews. |
| **Company Reply Extraction** | Scrapes official merchant responses, reply timestamps, and customer care follow-ups for PR analysis and resolution tracking. |
| **Star Rating Filters** | Target specific review cohorts (`all`, `5`, `4`, `3`, `2`, `1`) to analyze churn reasons or highlight customer testimonials. |
| **TrustScore & Profile Metadata** | Pulls overall TrustScore (1.0 - 5.0), aggregate star count, verification status, and review volume in one single run. |
| **AI & RAG Ready** | Comes pre-chunked with OpenAI cl100k token counts and semantic vectors for instant vector database indexing. |
| **Predictable Pay-Per-Result Pricing** | Ultra-cost-effective at **$0.0015** per extracted item. Zero rental fees, zero hidden compute surcharges. |

***

### ⚔️ Comparison vs. Competitor Solutions

| Feature | **Trustpilot Reviews & Ratings Scraper (Us)** | Traditional Competitors |
| :--- | :---: | :---: |
| **Pricing Model** | **$0.0015 / event (Pay-Per-Result)** | $30 - $75/month + proxy bills |
| **Stealth Cloudflare Bypass** | **Built-in multi-layered fallback** | Frequently blocked (403 Cloudflare errors) |
| **Company Owner Replies** | **Yes (`replyFromCompany`)** | Rarely captured or truncated |
| **Verified Buyer Badge** | **Yes (`isVerifiedBuyer`)** | Often missing |
| **Date of Experience vs Post Date** | **Both captured independently** | Only post date or missing |
| **Data Enrichment (20+ fields)** | **Yes (Bayesian rating, sentiment, quality)** | Raw scraped strings only |
| **RAG & Vector Chunks** | **Included free** | Requires custom python scripts |
| **Output Flexibility** | **Hierarchical JSON or Flat Rows** | Fixed monolithic table |

***

### 📥 Input Parameters

All parameters are pre-filled with reliable defaults so you can run instantly:

| Parameter | Type | Required | Default / Prefill | Description |
| :--- | :---: | :---: | :---: | :--- |
| **Company Domain or Trustpilot URL** (`domainOrUrl`) | `string` | **Yes** | `"amazon.com"` | Enter company domain (e.g. `shopify.com`, `nike.com`) or full Trustpilot URL (e.g. `https://www.trustpilot.com/review/amazon.com`). |
| **Maximum Reviews to Extract** (`maxReviews`) | `integer` | No | `20` | Total number of reviews to extract (1 to 200). |
| **Star Rating Filter** (`starFilter`) | `string` | No | `"all"` | Filter by star rating: `"all"`, `"5"`, `"4"`, `"3"`, `"2"`, `"1"`. |
| **Include Keywords** (`includeKeywords`) | `string` | No | `""` | Comma-separated keywords (e.g. `shipping, customer service, refund`). |
| **Exclude Keywords** (`excludeKeywords`) | `string` | No | `""` | Filter out reviews containing any of these comma-separated keywords. |
| **Enable AI / RAG Chunking** (`enableRagEnrichment`) | `boolean` | No | `true` | Calculates token counts and generates 250-token semantic chunks. |
| **Preferred Output Format** (`outputFormat`) | `string` | No | `"JSON"` | Choose `"JSON"` for nested company + reviews object, or `"Flat"` for one row per review. |
| **Data Enrichment Tier** (`enrichmentMode`) | `string` | No | `"Enriched"` | Options: `"Enriched"` (20+ derived fields), `"Standard"`, or `"Basic"`. |

***

### 📤 Sample Output Data

#### Standard Hierarchical JSON Output (`outputFormat: "JSON"`)

```json
{
  "companyName": "Amazon",
  "domain": "amazon.com",
  "trustScore": 4.2,
  "rating": 4.2,
  "totalReviews": 18450,
  "stars": 4,
  "isVerified": true,
  "profileUrl": "https://www.trustpilot.com/review/amazon.com",
  "starFilter": "all",
  "reviewsCount": 20,
  "reviews": [
    {
      "reviewId": "tp_amazon_com_1793399388709",
      "reviewerName": "Sarah Jenkins",
      "reviewerCountry": "US",
      "reviewerTotalReviews": 12,
      "rating": 5,
      "reviewTitle": "Outstanding service and lightning-fast delivery from Amazon!",
      "reviewText": "I've been ordering through amazon.com for over three years. Every single order has arrived either on time or ahead of schedule. Customer support resolved my inquiry in minutes when I needed an address change. Highly recommended!",
      "reviewDate": "2026-10-29T22:29:48.709Z",
      "dateOfExperience": "2026-10-26",
      "isVerifiedBuyer": true,
      "replyFromCompany": {
        "replyDate": "2026-10-30T22:29:48.709Z",
        "replyText": "Dear Sarah, thank you so much for taking the time to share your feedback! We are thrilled to hear you had such a seamless experience with Amazon. Warm regards, The Amazon Customer Care Team."
      },
      "companyName": "Amazon",
      "domain": "amazon.com",
      "_sentimentScore": 0.82,
      "_bayesianWeightedRating": 4.88,
      "_dataQualityScore": 100,
      "_deduplicationFingerprint": "sha256:8f2a1b9c...",
      "_rag": {
        "estimatedTokens": 78,
        "chunksCount": 1
      }
    }
  ],
  "_rag": {
    "estimatedTokens": 1420,
    "chunksCount": 4,
    "ingestionReady": true
  }
}
```

***

### 🔌 Automated Workflows (Make, Zapier, n8n)

#### 1. Daily Brand Reputation Alert (n8n & Slack)

1. **Cron Trigger**: Run daily at 09:00 UTC.
2. **Apify Node**: Trigger `trustpilot-reviews-rating-scraper` with `starFilter: "1"`.
3. **Filter Node**: Check if `reviewsCount > 0`.
4. **Slack / Discord Node**: Post an alert with the reviewer's grievance, order issues, and direct link so your support team can respond immediately.

#### 2. E-Commerce Competitor Benchmarking (Make.com & Google Sheets)

1. **Google Sheets**: Read a list of competitor domains (`store-a.com`, `store-b.com`).
2. **Apify Module**: Execute the scraper with `outputFormat: "Flat"`.
3. **Google Sheets Append**: Write all customer ratings, sentiment score, and verified review text into your analytics dashboard.

***

### 🤖 AI & LLM Vector Ingestion (LangChain & LlamaIndex)

#### LangChain Integration (Python)

```python
from apify_client import ApifyClient
from langchain_community.vectorstores import Chroma
from langchain_openai import OpenAIEmbeddings
from langchain_core.documents import Document

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("trusted_tech_spot/trustpilot-reviews-rating-scraper").call(
    run_input={"domainOrUrl": "amazon.com", "maxReviews": 50}
)

dataset_items = client.dataset(run["defaultDatasetId"]).list_items().items

docs = []
for item in dataset_items:
    reviews = item.get("reviews", [item])
    for rev in reviews:
        content = f"Reviewer: {rev.get('reviewerName')} | Rating: {rev.get('rating')}/5\nTitle: {rev.get('reviewTitle')}\n{rev.get('reviewText')}"
        docs.append(Document(page_content=content, metadata={"company": rev.get("companyName"), "domain": rev.get("domain")}))

vector_store = Chroma.from_documents(docs, OpenAIEmbeddings())
print(f"Indexed {len(docs)} customer reviews into vector memory!")
```

***

### ❓ Frequently Asked Questions (FAQ)

##### Do I need a Trustpilot account or API key to use this?

No. This scraper extracts publicly available customer reviews directly without requiring any login credentials, API subscriptions, or browser extensions.

##### Can I scrape by company name or domain?

Yes! You can enter either a bare domain (e.g. `nike.com`), a brand name (`Nike`), a URL (`https://www.nike.com`), or a direct Trustpilot profile link (`https://www.trustpilot.com/review/nike.com`). The engine automatically resolves the canonical Trustpilot profile.

##### How does star rating filtering work?

Set `starFilter` to `"1"` to extract 1-star complaints, `"5"` for 5-star testimonials, or `"all"` for a natural customer sentiment distribution.

##### What happens if Trustpilot activates Cloudflare challenges?

The scraper incorporates stealth browser headers, Next.js payload parsing, and resilient defensive fallbacks so your workflow never crashes and returns rich, structured review records.

***

### 💬 Technical Support & Custom Scrapers

- 🐛 **Bug Reports**: Open an issue on the [Actor Issues Tab](https://console.apify.com/actors/trusted_tech_spot/trustpilot-reviews-rating-scraper/issues).
- ✉️ **Custom Demands & Private Datasets**: Contact **contact@trustedtechspot.com** for custom review aggregators, dedicated proxies, or high-volume enterprise SLAs.

# Actor input Schema

## `domainOrUrl` (type: `string`):

Company domain name (e.g. 'amazon.com', 'shopify.com', 'nike.com') or full Trustpilot review URL (e.g. 'https://www.trustpilot.com/review/amazon.com'). Default is ready to run!

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

Maximum number of verified customer reviews to scrape (1 - 200). Default is 20.

## `starFilter` (type: `string`):

Filter reviews by specific star rating (e.g. all, 5, 4, 3, 2, 1).

## `includeKeywords` (type: `string`):

Filter results to only include reviews containing any of these comma-separated keywords (e.g. shipping, support, refund)

## `excludeKeywords` (type: `string`):

Filter out reviews containing these comma-separated keywords

## `enableRagEnrichment` (type: `boolean`):

Automatically compute OpenAI token counts and generate semantic vector chunks for RAG pipelines

## `outputFormat` (type: `string`):

Format results for preferred downstream consumer (e.g. JSON, Markdown, Flat)

## `enrichmentMode` (type: `string`):

Choose enrichment depth: 'Enriched' adds 20+ derived fields (sentiment polarity, quality audit, bayesian score), 'Standard' includes core clean fields, 'Basic' is raw extract.

## Actor input object example

```json
{
  "domainOrUrl": "amazon.com",
  "maxReviews": 20,
  "starFilter": "all",
  "includeKeywords": "",
  "excludeKeywords": "",
  "enableRagEnrichment": true,
  "outputFormat": "JSON",
  "enrichmentMode": "Enriched"
}
```

# Actor output Schema

## `dataset` (type: `string`):

Structured output and extracted data from Fast Google Maps & Places Business Scraper

# 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 = {
    "domainOrUrl": "amazon.com",
    "maxReviews": 20,
    "starFilter": "all",
    "includeKeywords": "",
    "excludeKeywords": "",
    "enableRagEnrichment": true,
    "outputFormat": "JSON",
    "enrichmentMode": "Enriched"
};

// Run the Actor and wait for it to finish
const run = await client.actor("trusted_tech_spot/trustpilot-reviews-rating-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 = {
    "domainOrUrl": "amazon.com",
    "maxReviews": 20,
    "starFilter": "all",
    "includeKeywords": "",
    "excludeKeywords": "",
    "enableRagEnrichment": True,
    "outputFormat": "JSON",
    "enrichmentMode": "Enriched",
}

# Run the Actor and wait for it to finish
run = client.actor("trusted_tech_spot/trustpilot-reviews-rating-scraper").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 '{
  "domainOrUrl": "amazon.com",
  "maxReviews": 20,
  "starFilter": "all",
  "includeKeywords": "",
  "excludeKeywords": "",
  "enableRagEnrichment": true,
  "outputFormat": "JSON",
  "enrichmentMode": "Enriched"
}' |
apify call trusted_tech_spot/trustpilot-reviews-rating-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trusted_tech_spot/trustpilot-reviews-rating-scraper"
        }
    }
}
```

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/8emZukOeHYEVF3jEU/builds/0TmhzeTG5uAgUxE1N/openapi.json
