# Trustpilot Scraper (`jungle_synthesizer/trustpilot-scraper`) Actor

Scrape business profiles and reviews from Trustpilot. Extract trust scores, ratings, star distributions, review text, and company details. Supports search queries, direct URLs, and category browsing.

- **URL**: https://apify.com/jungle\_synthesizer/trustpilot-scraper.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** E-commerce, Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Trustpilot Business Profile and Review Scraper

Scrape business profiles and customer reviews from Trustpilot. Extract trust scores, star ratings, review counts, star distributions, company details, and recent reviews across any business listed on the platform.

Three input modes: search by keyword, scrape direct profile URLs, or browse a Trustpilot category. Reviews are optional and configurable per-business.

### What Data You Get

Results are structured records with one row per business profile.

| Field | Type | Description |
|---|---|---|
| `businessName` | string | Company display name on Trustpilot |
| `businessDomain` | string | Identifying domain (e.g., `amazon.com`) |
| `trustScore` | number | Trustpilot trust score (1.0–5.0) |
| `starRating` | number | Star rating displayed on Trustpilot (1–5 in 0.5 increments) |
| `totalReviews` | number | Total published reviews for the business |
| `category` | string | Primary business category on Trustpilot |
| `isClaimed` | boolean | Whether the business has claimed its profile |
| `websiteUrl` | string | Business website URL |
| `country` | string | Country where the business is registered |
| `location` | string | Business address |
| `description` | string | Business description from the profile page |
| `starDistribution` | string | Review count per star level: `"5 stars: 8658, 4 stars: 2359, ..."` |
| `replyRate` | string | Percentage of negative reviews with business replies |
| `isVerified` | boolean | Google, payment method, or identity verification flag |
| `profileUrl` | string | Full Trustpilot profile URL |
| `recentReviews` | array | Recent review summaries (when `includeReviews` is enabled) |
| `scrapedAt` | string | ISO timestamp of when the data was scraped |

When `includeReviews` is enabled, each item in `recentReviews` is formatted as:

````

\[4/5 Verified] Jane D. (2024-11-03): Great service — Package arrived early, tracking was accurate throughout...

````

### Input Options

| Field | Type | Default | Description |
|---|---|---|---|
| `searchQuery` | string | `"web hosting"` | Keyword or business name search |
| `businessUrls` | array | `[]` | Direct Trustpilot profile URLs (overrides search) |
| `category` | string | — | Trustpilot category ID (e.g., `electronics_technology`) |
| `maxItems` | integer | `100` | Maximum number of business profiles to scrape |
| `includeReviews` | boolean | `false` | Whether to scrape recent reviews per business |
| `maxReviewPages` | integer | `1` | Review pages per business (20 reviews/page) |
| `country` | string | — | Filter by country code (e.g., `US`, `GB`). Category mode only. |

Input modes are mutually exclusive and resolved in this order:
1. `businessUrls` — if non-empty, scrapes those profiles directly
2. `category` — if set, browses that category
3. `searchQuery` — keyword search (default)

### How to Use

#### Scrape specific businesses by URL

```json
{
  "businessUrls": [
    "https://www.trustpilot.com/review/amazon.com",
    "https://www.trustpilot.com/review/shopify.com"
  ],
  "includeReviews": true,
  "maxReviewPages": 2
}
````

#### Search for businesses in a niche

```json
{
  "searchQuery": "web hosting",
  "maxItems": 50,
  "includeReviews": false
}
```

#### Browse a category

```json
{
  "category": "electronics_technology",
  "country": "US",
  "maxItems": 100
}
```

Category IDs come from Trustpilot category URLs: `trustpilot.com/categories/electronics_technology`.

### Sample Output

```json
{
  "businessName": "Amazon",
  "businessDomain": "amazon.com",
  "trustScore": 2.2,
  "starRating": 2,
  "totalReviews": 44969,
  "category": "Internet & Software",
  "isClaimed": true,
  "websiteUrl": "https://www.amazon.com",
  "country": "US",
  "location": "410 Terry Ave N, Seattle, 98109",
  "description": "Amazon is an American multinational technology company...",
  "starDistribution": "5 stars: 8658, 4 stars: 2359, 3 stars: 1747, 2 stars: 2688, 1 star: 29521",
  "replyRate": "31.84%",
  "isVerified": true,
  "profileUrl": "https://www.trustpilot.com/review/amazon.com",
  "recentReviews": [],
  "scrapedAt": "2024-11-15T12:34:56.789Z"
}
```

### Trustpilot Scraper Use Cases

- **Competitive intelligence** — track trust scores and review volume for competitors in your market
- **Lead generation** — identify businesses by category and country, then filter by claim status or rating
- **Reputation monitoring** — pull star distributions and reply rates to benchmark customer service quality
- **Market research** — map the rating landscape across a Trustpilot category (e.g., fintech, travel, SaaS)
- **Review sentiment datasets** — collect review text for NLP pipelines, sentiment classifiers, or LLM fine-tuning

### Trustpilot Scraper FAQ

**How many results per run?**
Set `maxItems` to control business profile count. Each business takes roughly one HTTP request for the profile plus one per review page if reviews are enabled. A run of 100 businesses without reviews typically completes in under 5 minutes.

**What does Trustpilot's star distribution look like in the output?**
The `starDistribution` field is a formatted string: `"5 stars: 8658, 4 stars: 2359, 3 stars: 1747, 2 stars: 2688, 1 star: 29521"`. You can split on `, ` and parse the counts for quantitative analysis.

**Can I scrape reviews without a profile?**
No — reviews are attached to business profiles. Set `includeReviews: true` and the actor fetches profile + reviews in one run. Set `maxReviewPages` to control how deep per business (20 reviews per page).

**Does this require proxies?**
No proxy configuration is required. Trustpilot serves public data in server-rendered HTML with structured JSON embedded in the page (`__NEXT_DATA__`). The actor reads that directly.

**Is it legal to scrape Trustpilot?**
Trustpilot reviews are publicly accessible. Scraping publicly available data is generally permissible for research and business intelligence purposes. Consult your legal team for jurisdiction-specific guidance.

### Pricing

Priced per result (Pay Per Event). Costs vary by run configuration — profile-only runs are cheaper than runs with review pages enabled. Run the actor in trial mode on a small batch to estimate cost before scaling.

### Limitations

- Review counts and star distributions reflect the state at time of scraping — not real-time
- Category country filtering only works in category mode, not search
- Very new businesses with no reviews may return empty `starDistribution` and `replyRate`
- Trustpilot rate-limits aggressive crawls; the actor handles this automatically but large runs may take longer

***

Need custom features or a different data format? Get in touch.

# Actor input Schema

## `sp_intended_usage` (type: `string`):

Please describe how you plan to use the data extracted by this crawler.

## `sp_improvement_suggestions` (type: `string`):

Provide any feedback or suggestions for improvements.

## `sp_contact` (type: `string`):

Provide your email address so we can get in touch with you.

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

Search for businesses by name or keyword (e.g., 'amazon', 'web hosting'). Leave empty if providing direct URLs or a category.

## `businessUrls` (type: `array`):

Direct Trustpilot business profile URLs (e.g., https://www.trustpilot.com/review/amazon.com). Overrides search query if provided.

## `category` (type: `string`):

Browse businesses in a Trustpilot category (e.g., 'electronics\_technology', 'food\_beverages\_tobacco'). Use the category ID from the URL.

## `maxItems` (type: `integer`):

Maximum number of business profiles to scrape.

## `includeReviews` (type: `boolean`):

Whether to include recent reviews for each business. Increases crawl time.

## `maxReviewPages` (type: `integer`):

Maximum number of review pages to scrape per business (20 reviews per page). Only used when Include Reviews is enabled.

## `country` (type: `string`):

Filter businesses by country (e.g., 'US', 'GB', 'DE'). Only applies to category browsing.

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "searchQuery": "web hosting",
  "businessUrls": [],
  "maxItems": 20,
  "includeReviews": false,
  "maxReviewPages": 1
}
```

# Actor output Schema

## `results` (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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "searchQuery": "web hosting",
    "businessUrls": [],
    "category": "",
    "maxItems": 20,
    "includeReviews": false,
    "maxReviewPages": 1,
    "country": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "searchQuery": "web hosting",
    "businessUrls": [],
    "category": "",
    "maxItems": 20,
    "includeReviews": False,
    "maxReviewPages": 1,
    "country": "",
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/trustpilot-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 '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "searchQuery": "web hosting",
  "businessUrls": [],
  "category": "",
  "maxItems": 20,
  "includeReviews": false,
  "maxReviewPages": 1,
  "country": ""
}' |
apify call jungle_synthesizer/trustpilot-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trustpilot Scraper",
        "description": "Scrape business profiles and reviews from Trustpilot. Extract trust scores, ratings, star distributions, review text, and company details. Supports search queries, direct URLs, and category browsing.",
        "version": "0.1",
        "x-build-id": "TmM7KPKBDdGtjXUfo"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jungle_synthesizer~trustpilot-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jungle_synthesizer-trustpilot-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/jungle_synthesizer~trustpilot-scraper/runs": {
            "post": {
                "operationId": "runs-sync-jungle_synthesizer-trustpilot-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/jungle_synthesizer~trustpilot-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-jungle_synthesizer-trustpilot-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": {
                    "sp_intended_usage": {
                        "title": "What is the intended usage of this data?",
                        "minLength": 1,
                        "type": "string",
                        "description": "Please describe how you plan to use the data extracted by this crawler."
                    },
                    "sp_improvement_suggestions": {
                        "title": "How can we improve this crawler for you?",
                        "minLength": 1,
                        "type": "string",
                        "description": "Provide any feedback or suggestions for improvements."
                    },
                    "sp_contact": {
                        "title": "Contact Email",
                        "minLength": 1,
                        "type": "string",
                        "description": "Provide your email address so we can get in touch with you."
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search for businesses by name or keyword (e.g., 'amazon', 'web hosting'). Leave empty if providing direct URLs or a category."
                    },
                    "businessUrls": {
                        "title": "Business URLs",
                        "type": "array",
                        "description": "Direct Trustpilot business profile URLs (e.g., https://www.trustpilot.com/review/amazon.com). Overrides search query if provided.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "category": {
                        "title": "Category",
                        "type": "string",
                        "description": "Browse businesses in a Trustpilot category (e.g., 'electronics_technology', 'food_beverages_tobacco'). Use the category ID from the URL."
                    },
                    "maxItems": {
                        "title": "Max Businesses",
                        "type": "integer",
                        "description": "Maximum number of business profiles to scrape.",
                        "default": 100
                    },
                    "includeReviews": {
                        "title": "Include Reviews",
                        "type": "boolean",
                        "description": "Whether to include recent reviews for each business. Increases crawl time.",
                        "default": false
                    },
                    "maxReviewPages": {
                        "title": "Max Review Pages",
                        "type": "integer",
                        "description": "Maximum number of review pages to scrape per business (20 reviews per page). Only used when Include Reviews is enabled.",
                        "default": 1
                    },
                    "country": {
                        "title": "Country Filter",
                        "type": "string",
                        "description": "Filter businesses by country (e.g., 'US', 'GB', 'DE'). Only applies to category browsing."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
