# Trustpilot Review Scraper (`cloud9_ai/trustpilot-scraper`) Actor

Scrape Trustpilot business reviews and ratings. Extract reviewer names, ratings, review text, dates, and company response data for reputation monitoring and competitive analysis.

- **URL**: https://apify.com/cloud9\_ai/trustpilot-scraper.md
- **Developed by:** [cloud9](https://apify.com/cloud9_ai) (community)
- **Categories:** Lead generation, Marketing
- **Stats:** 9 total users, 1 monthly users, 90.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Trustpilot Review Scraper | Business Reviews

**Extract comprehensive business reviews from Trustpilot with trust scores, ratings, verified status, and company replies. Perfect for reputation monitoring, competitive analysis, and sentiment tracking.**

### Features

- **Complete Business Profiles**: Extract company trust scores (0-5), total review counts, rating categories (Excellent/Great/Average/Poor/Bad), and official websites
- **Detailed Review Data**: Review titles, full text, star ratings (1-5), dates, reviewer names, locations, and verified status
- **Company Interactions**: Capture company replies to reviews with timestamps
- **Smart Search**: Search businesses by name or keyword, automatically discover and scrape matching companies
- **Flexible Input**: Provide direct Trustpilot URLs or search queries
- **Pagination Support**: Automatically follow review pages up to your specified limit (max 500 reviews per company)
- **Rate Limited**: Built-in 2-second delays to respect Trustpilot's servers
- **Clean Output**: HTML-free text extraction, normalized whitespace, ready for analysis

### Use Cases

#### Reputation Monitoring

Track your brand's Trustpilot reputation over time. Monitor new reviews, response rates, and sentiment trends. Set up automated alerts for rating drops.

#### Competitive Analysis

Compare your business against competitors. Analyze review volumes, trust scores, response strategies, and customer pain points across your industry.

#### Sentiment Analysis

Feed review data into NLP models to identify themes, extract product feedback, and understand customer emotions at scale.

#### Lead Qualification

Research prospects' reputations before partnerships or investments. Validate vendor claims with real customer feedback.

#### Market Research

Discover customer expectations, common complaints, and feature requests in your target market. Inform product development with real user insights.

#### Customer Experience Optimization

Identify service gaps by analyzing negative reviews. Benchmark response times and reply quality against industry standards.

### Input Configuration

The actor accepts the following input parameters:

#### `companyUrls` (optional)

Array of Trustpilot company review page URLs. Each URL should follow this format:

```
https://www.trustpilot.com/review/example.com
```

**Example:**

```json
[
  "https://www.trustpilot.com/review/airbnb.com",
  "https://www.trustpilot.com/review/booking.com",
  "https://www.trustpilot.com/review/tripadvisor.com"
]
```

#### `searchQuery` (optional)

Search term to find businesses on Trustpilot. The actor will discover matching companies and scrape their reviews automatically.

**Example:**

```json
"online shopping"
```

#### `maxReviews` (optional)

Maximum number of reviews to scrape per company.

- **Default**: 50
- **Minimum**: 1
- **Maximum**: 500

**Example:**

```json
100
```

**Note:** At least one of `companyUrls` or `searchQuery` must be provided.

### Output Format

The actor outputs structured data to the Apify Dataset. Each review includes:

```json
{
  "companyName": "Example Company",
  "companyUrl": "https://www.trustpilot.com/review/example.com",
  "trustScore": 4.5,
  "totalReviews": 12847,
  "rating": "Excellent",
  "reviewTitle": "Great service and fast delivery",
  "reviewText": "I ordered a product and it arrived within 2 days. The quality exceeded my expectations and customer support was very helpful when I had a question.",
  "reviewRating": 5,
  "reviewDate": "2024-02-10T14:32:00Z",
  "reviewerName": "John Smith",
  "reviewerLocation": "United States",
  "isVerified": true,
  "replyFromCompany": "Thank you for your wonderful feedback! We're thrilled to hear you're satisfied with our service.",
  "replyDate": "2024-02-11T09:15:00Z",
  "scrapedAt": "2024-02-12T10:00:00.000Z"
}
```

#### Field Descriptions

| Field | Type | Description |
|-------|------|-------------|
| `companyName` | string | Business name as displayed on Trustpilot |
| `companyUrl` | string | Trustpilot company review page URL |
| `trustScore` | number | Overall trust score (0-5 scale) |
| `totalReviews` | number | Total number of reviews for the company |
| `rating` | string | Rating category: Excellent, Great, Average, Poor, or Bad |
| `reviewTitle` | string | Review headline |
| `reviewText` | string | Full review content (cleaned, no HTML) |
| `reviewRating` | number | Individual review star rating (1-5) |
| `reviewDate` | string | ISO 8601 timestamp of review submission |
| `reviewerName` | string | Name of the reviewer |
| `reviewerLocation` | string | Reviewer's country/location |
| `isVerified` | boolean | Whether the review is from a verified customer |
| `replyFromCompany` | string|null | Company's response to the review (if any) |
| `replyDate` | string|null | ISO 8601 timestamp of company reply (if any) |
| `scrapedAt` | string | ISO 8601 timestamp of data extraction |

### Example Usage

#### Scenario 1: Scrape Specific Companies

Monitor your direct competitors by providing their Trustpilot URLs:

```json
{
  "companyUrls": [
    "https://www.trustpilot.com/review/competitor1.com",
    "https://www.trustpilot.com/review/competitor2.com"
  ],
  "maxReviews": 100
}
```

#### Scenario 2: Discover and Scrape by Keyword

Research an entire market segment:

```json
{
  "searchQuery": "meal delivery service",
  "maxReviews": 50
}
```

#### Scenario 3: Deep Dive on Single Company

Extract comprehensive review history for detailed analysis:

```json
{
  "companyUrls": [
    "https://www.trustpilot.com/review/mycompany.com"
  ],
  "maxReviews": 500
}
```

### Pricing

**Estimated cost: $3 per 1,000 reviews**

Actual costs depend on:

- Number of companies scraped
- Reviews per company
- Apify platform usage tier

### Technical Details

- **Crawler Type**: CheerioCrawler (server-side rendering, fast and reliable)
- **Rate Limiting**: 2-second delay between requests
- **Concurrency**: 2 parallel requests maximum
- **Retries**: Up to 3 automatic retries on failures
- **Timeout**: 120 seconds per request

### Legal and Ethical Usage

- This actor scrapes publicly accessible data from Trustpilot
- Review Trustpilot's Terms of Service before large-scale scraping
- Respect rate limits and robots.txt directives
- Use scraped data responsibly and in compliance with GDPR/privacy regulations
- Do not scrape personal data beyond what's publicly displayed
- Consider using Trustpilot's official API for commercial applications

### Limitations

- Maximum 500 reviews per company per run
- Cannot bypass Trustpilot authentication (only public reviews)
- Cannot scrape private company information
- Subject to Trustpilot's HTML structure changes (maintained regularly)

### Support

For issues, feature requests, or questions:

- Check Apify Console logs for error details
- Verify input URLs follow the correct format
- Ensure at least one of `companyUrls` or `searchQuery` is provided
- Report bugs with example URLs and error messages

### Version History

- **0.1.0** (2024-02-12): Initial release
  - Company profile extraction
  - Review scraping with pagination
  - Search functionality
  - Verified badge detection
  - Company reply extraction

### Related Actors

- **Google Reviews Scraper**: Extract reviews from Google Business profiles
- **Amazon Reviews Scraper**: Scrape product reviews from Amazon
- **Yelp Scraper**: Collect business reviews from Yelp

***

**Built for Apify Platform** | [Documentation](https://docs.apify.com) | [Apify Store](https://apify.com/store)

# Actor input Schema

## `companyUrls` (type: `array`):

Array of Trustpilot company review page URLs (e.g., https://www.trustpilot.com/review/example.com)

## `searchQuery` (type: `string`):

Search for businesses by name or keyword. The actor will find matching companies and scrape their reviews. Not needed if companyUrls is provided.

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

Maximum number of reviews to scrape per company (default: 50, max: 500)

## Actor input object example

```json
{
  "companyUrls": [
    "https://www.trustpilot.com/review/airbnb.com",
    "https://www.trustpilot.com/review/booking.com"
  ],
  "searchQuery": "online shopping",
  "maxReviews": 100
}
```

# 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 = {
    "companyUrls": [
        "https://www.trustpilot.com/review/booking.com"
    ],
    "searchQuery": "online shopping"
};

// Run the Actor and wait for it to finish
const run = await client.actor("cloud9_ai/trustpilot-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 = {
    "companyUrls": ["https://www.trustpilot.com/review/booking.com"],
    "searchQuery": "online shopping",
}

# Run the Actor and wait for it to finish
run = client.actor("cloud9_ai/trustpilot-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 '{
  "companyUrls": [
    "https://www.trustpilot.com/review/booking.com"
  ],
  "searchQuery": "online shopping"
}' |
apify call cloud9_ai/trustpilot-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cloud9_ai/trustpilot-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/zns1Guzc9wkXTpsyV/builds/VdPfqEbdlaHG00OUW/openapi.json
