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

Extract Trustpilot reviews, ratings, company profiles, and search results via Next.js **NEXT\_DATA** JSON. Pure HTTP, no browser.

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

## Pricing

from $0.45 / 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?

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 Scraper

Extract Trustpilot reviews, ratings, company profiles, and search results — pure HTTP via Next.js `__NEXT_DATA__`, no browser.

### What does Trustpilot Scraper do?

Scrape public Trustpilot data in three modes:

- **Reviews for companies** — pass one or more domains (e.g. `apify.com`), get every public review: rating, title, text, dates, reviewer info, and owner replies.
- **Search companies** — keyword search across Trustpilot's company directory.
- **Category leaderboard** — pull every company in a Trustpilot category (e.g. `electronics`, `ecommerce`).

Reviews are loaded from Trustpilot's pre-rendered `__NEXT_DATA__` JSON payload — fast, tiny, and independent of CSS class churn.

**Deep pagination** option (`useStarFilter`): loop the same company with `stars=1` through `stars=5` to multiply effective depth by ~5×, past Trustpilot's ~200-review window per business.

### Output fields

#### Reviews

| Field | Description |
|---|---|
| reviewId | Trustpilot review ID |
| businessSlug | Company domain |
| businessDisplayName | Company display name |
| businessTrustScore | Company TrustScore (0–5) |
| businessReviewCount | Total reviews on Trustpilot |
| rating | Review star rating (1–5) |
| title | Review headline |
| text | Full review body |
| language | Review language code |
| experiencedDate | Date the customer experienced the service |
| publishedDate | Date the review was published |
| reviewerName | Reviewer display name |
| reviewerCountry | Reviewer country code |
| reviewerReviewCount | Reviewer's total reviews on Trustpilot |
| reviewerIsVerified | Whether reviewer is verified |
| ownerReplyText | Company's public reply to the review |
| ownerReplyDate | Date of reply |
| url | Direct link to review |

#### Company profile

| Field | Description |
|---|---|
| businessSlug | Company domain |
| displayName | Public company name |
| trustScore | TrustScore (0–5) |
| stars | Star rating |
| numberOfReviews | Total reviews |
| ratingDistribution | Breakdown of 1-5 star counts |
| claimed | Whether the profile is claimed by the company |
| categories | Array of Trustpilot categories |
| websiteUrl | Company website |
| countryCode | Company country |

### Who is it for?

- **Reputation managers** monitoring reviews across portfolios of companies
- **E-commerce teams** tracking competitor TrustScores and review themes
- **Brand analysts** building sentiment datasets from public reviews
- **Data scientists** training NLP models on review corpora
- **Market researchers** analyzing category-level reputation trends

### Pricing

**$0.22 per 1,000 results.** No subscription.

| Results | Cost |
|---|---|
| 100 | $0.02 |
| 1,000 | $0.22 |
| 10,000 | $2.20 |

### How to use it

1. Pick a **Mode**.
2. Fill in the mode's required fields (company domains, search query, or category slug).
3. Optionally enable **Star-Filter Deep Pagination** for deeper history.
4. Set **Max Reviews per Company** (default 500).
5. Click **Start**.

### Output example

```json
{
  "recordType": "review",
  "reviewId": "6a1b2c3d4e5f6a7b8c9d0e1f",
  "businessSlug": "apify.com",
  "businessDisplayName": "Apify",
  "businessTrustScore": 4.7,
  "businessReviewCount": 1234,
  "rating": 5,
  "title": "Best scraping platform I've used",
  "text": "Used Apify for 3 months — saved us 40 hours weekly. The actor ecosystem is unmatched.",
  "language": "en",
  "experiencedDate": "2026-09-10T00:00:00.000Z",
  "publishedDate": "2026-09-12T08:30:00.000Z",
  "reviewerName": "Bob",
  "reviewerCountry": "US",
  "reviewerReviewCount": 3,
  "reviewerIsVerified": true,
  "ownerReplyText": "Thanks Bob — happy to hear it!",
  "ownerReplyDate": "2026-09-13T10:00:00.000Z",
  "url": "https://www.trustpilot.com/reviews/6a1b2c3d4e5f6a7b8c9d0e1f",
  "scrapedAt": "2026-09-20T18:00:00.000Z"
}
```

### Technical details

- Built with **got-scraping** (HTTP-only, no browser) — reads Trustpilot's Next.js `__NEXT_DATA__` pre-rendered JSON
- **No HTML parsing** — extracts `props.pageProps.reviews` and `props.pageProps.businessUnit` directly
- **Residential proxy pre-configured** — Cloudflare rate-limits datacenter IPs on pagination; residential keeps runs reliable
- **Star-filter deep pagination** multiplies effective review depth by ~5× (5 star buckets × ~200 reviews each)
- Automatic backoff on 429 and Cloudflare 403

### Known limits

- **Trustpilot caps ~10 pages (≈200 reviews) per business without filters.** Enable `useStarFilter` to multiply depth via 5 star buckets.
- **`__NEXT_DATA__` structure can shift** between Trustpilot deploys. The actor fails cleanly with a diagnostic log if the path changes.
- **Reviews are personal data** under GDPR. Store only what you need and have a lawful basis.
- **Company profile** is emitted once per company when `includeCompanyProfile=true`.

### FAQ

**Do I need a proxy?** Residential proxy is pre-configured and recommended — Cloudflare rate-limits datacenter IPs quickly during pagination.

**How deep can I go per company?** ~200 reviews without filters, ~1,000 with `useStarFilter=true`. For deeper coverage, schedule recurring runs and dedupe by `reviewId`.

**Does this include company replies?** Yes — `ownerReplyText` and `ownerReplyDate` are captured when the company has replied.

**How do I export data?** After a run, go to Storage → Export as JSON, CSV, Excel.

### Support

Open an issue on the Actor's page for bugs or feature requests.

# Actor input Schema

## `mode` (type: `string`):

What to scrape from Trustpilot.

## `companyDomains` (type: `array`):

Company domains or Trustpilot URLs (e.g. apify.com, https://www.trustpilot.com/review/stripe.com).

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

Keyword to search companies (e.g. 'ecommerce', 'crypto exchange').

## `categorySlug` (type: `string`):

Trustpilot category slug (e.g. 'electronics', 'ecommerce').

## `maxReviewsPerCompany` (type: `integer`):

Hard cap on reviews per company. Pages are fetched only as needed (~20 reviews per page).

## `maxCompaniesPerSearch` (type: `integer`):

Hard cap on companies returned in search or category mode.

## `useStarFilter` (type: `boolean`):

Loop the same company with stars=1..5 to multiply depth beyond Trustpilot's ~200-review window. Disabled by default — enable only for deep historical dumps.

## `includeCompanyProfile` (type: `boolean`):

Attach company display name, trust score, and review count to each review, and emit a separate company record.

## `maxPages` (type: `integer`):

Maximum pagination depth per company per star filter. Effective depth is capped automatically by maxReviewsPerCompany.

## `language` (type: `string`):

Optional ISO language filter (e.g. 'en', 'de'). Leave empty for all languages.

## Actor input object example

```json
{
  "mode": "reviews",
  "companyDomains": [
    "apify.com"
  ],
  "maxReviewsPerCompany": 100,
  "maxCompaniesPerSearch": 50,
  "useStarFilter": false,
  "includeCompanyProfile": true,
  "maxPages": 5
}
```

# 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 = {
    "companyDomains": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aurenic/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 = { "companyDomains": ["apify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("aurenic/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 '{
  "companyDomains": [
    "apify.com"
  ]
}' |
apify call aurenic/trustpilot-scraper --silent --output-dataset

```

## MCP server setup

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