# Trustpilot Reviews API - Reviews, Ratings & Company Replies (`stas_k/trustpilot-reviews-api`) Actor

Trustpilot hands an anonymous reader 200 reviews and a login page, so most scrapers sell a capped list without saying so. This one reads the real page in a live browser, walks every star filter, adds company replies, and never charges for a blocked page.

- **URL**: https://apify.com/stas_k/trustpilot-reviews-api.md
- **Developed by:** [Stas K](https://apify.com/stas_k) (community)
- **Categories:** Lead generation, SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.40 / 1,000 reviews

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 Reviews API

Company domains in, a row per Trustpilot review out. Rating, title, text, language, author and
country, publication and experience dates, the company's public reply with its date, the company's
TrustScore and its total review count, all from the public listing, without a Trustpilot account
and without a third-party key.

### What it really does about the 200 review wall

Every Trustpilot scraper hits the same thing: an anonymous visitor gets **10 pages of 20 reviews per
listing**, and page 11 is not an empty list - it is Trustpilot's login page (`/users/connect`), the
same wall wearing a different hat. Measured here on 2026-11-11, page by page, on a company with
50 290 reviews, both on a plain listing and on a star listing. The actor therefore never asks for page
11: past page 10 the reviews are not reachable without an account, and a login page is never sold as
an empty company.

One detail decides how deep a run can go, and it is subtle enough that two measurements of the same
site disagreed: **the first page of a star listing behaves differently depending on how the address is
written**. Measured here on 2026-11-11, same company, same minute:

| Address asked for | What came back |
| --- | --- |
| `?sort=recency` | 20 reviews, mixed ratings, `hasActiveFilters: false` |
| `?sort=recency&stars=1` | 20 reviews, every one rating 1, `hasActiveFilters: true` |
| `?sort=recency&stars=1&page=1` | 20 reviews, mixed ratings, `hasActiveFilters: false` |
| `?sort=recency&stars=1&page=2` | 20 reviews, every one rating 1 |
| `?sort=recency&stars=1&page=10` | 20 reviews, every one rating 1 |

So with an explicit `page=1` the filter is ignored, and without it the page is filtered. That is a
server quirk, not a rule to build a product on, so this actor never relies on it: it reads the newest
page once without any filter, and reads every star bucket from page 2, where the filter is confirmed
by two independent measurements. Every row from a bucket also passes one check before it is written:
if a star listing ever answers a rating it does not carry, the row is dropped and the run says so
instead of selling it.

That gives **20 + 5 x 9 x 20 = 920 reviews per company** when all five buckets are asked for, and 180
reviews when one bucket is asked for. 920 is what this actor promises and what `maxReviewsPerCompany`
allows. Skipping page 1 of every bucket costs you a hundred reviews, and it buys a promise that
cannot quietly turn into an unfiltered list.

Two consequences stated plainly, because a buyer deserves them in words:

- the twenty reviews from the newest page carry `starBucket: null` and `starSource: "newest"`, since
  no star filter was active for them;
- every other row carries its `starBucket` from 1 to 5 and `starSource: "star-filter"`, and never a
  rating other than its bucket.

### How it passes the wall

Not with a proxy and not with your key. Measured from our Frankfurt VPS on the same address:

| How the request was made | What Trustpilot answered |
| --- | --- |
| plain HTTP client with full Chrome headers | 403, a 991 byte "Verifying Connection" page |
| Chromium `--headless` | the wall passes, then a 430 byte "identified as coming from a bot" |
| **Chromium headful under Xvfb** | the real listing, 878 981 bytes, 50 289 reviews |

So the actor runs a real browser window on a virtual display inside its own container. Every run
reports `browserMode` in the summary: `headful` is the mode that works, and if a platform change ever
forces `headless`, the summary says so instead of pretending.

### Price and what is free

**$0.0004 per review delivered**, one charge per row that reached the dataset, and the lowest
spending limit you can set per run is $0.05. For comparison, the two leaders of this niche charge
$0.000575 and from $0.00065 per review plus a start fee, and neither of them is cheaper than this
actor for the same page.

Free, with the reason written into the row:

- a line that is not a domain, a repeated line, a company beyond `maxCompanies`;
- a `stars` value that is not a rating from 1 to 5, refused before one request is made;
- a domain Trustpilot has no profile for (HTTP 404);
- a bot wall or an HTTP error instead of the listing;
- a profile that is open but has no reviews in the pages asked;
- reviews that your own `publishedAfter` or `language` filter excluded;
- **reviews that were read and not delivered** because the run ran out of time, hit the spending cap
  or stopped after a charge error: each one comes back as its own row with the reason, never lost;
- a company the run never reached.

Nothing is charged for a review you cannot see in the dataset.

### Where the money goes when something fails

One SDK call writes the row and charges for it, so the two cannot drift apart. If the spending cap
arrives mid-batch, the SDK writes exactly the reviews it charged for and the rest come back as free
`NOT_CHECKED_CAP` rows: the buyer sees what they paid for and what they did not. If a charge cannot
be confirmed at all, the run stops.

That last case is split in two, because the two halves are different money:

- `deliveredUncharged`: the dataset counter shows this batch landed, so those rows are in the dataset
  and were not paid for. The buyer has them for free and the summary says so;
- `chargeUncertain`: the counter does not show them and they are not in the dataset either. The summary
  names the size of that batch, because repeating it could hand you two rows for one review.

### Input

- `companies`: domains, urls or profile addresses, one per line.
- `maxReviewsPerCompany`: 200 by default, 920 maximum (the measured ceiling of an anonymous run).
- `maxPagesPerCompany`: 10 by default, 10 maximum (that is the platform's own wall).
- `stars`: which star listings to read; empty means all five, `[1, 2]` reads the worst reviews only.
  The star filter takes effect from page 2 of the listing, so a filtered run starts there.
- `publishedAfter`: an ISO date; older reviews are read and dropped without a charge.
- `language`: a two letter code; other languages are read and dropped without a charge.
- `maxCompanies`: 5 by default, a fresh navigation per company.
- `includeReplies`: keep the company's public answer and its date.

### Summary

`companiesRequested` always equals `companiesAttempted` plus `companiesNotAttempted`, and that second
number counts the invalid lines, the duplicates, the lines beyond `maxCompanies` and the companies the
run never reached. Every attempted company ends in exactly one of `companiesRead`,
`companiesNotFound`, `companiesBlocked`, `companiesNoReviews`, `companiesFilteredOut`,
`companiesFailed`. `companiesPartial` marks a company whose reviews were read and then the listing
stopped answering. `reviewsDelivered` counts the rows written, `chargedEvents` is the money really
taken, `reviewsFiltered` and `reviewsLimited` were read and not charged, and `reviewsLimited` splits
into `reviewsCapped`, `reviewsStopped` and `reviewsUncertain`. `pagePlan` shows the pages the run
intended to read, so a shallow run is visible instead of silent. `reviewsBucketMismatch` counts reviews
that a star listing answered with a rating it does not carry: they are dropped, never charged, and the
company gets its own row naming the reason. `counterMismatch` is true when `reviewsUnique` does not
equal delivered plus filtered plus limited plus uncertain, or when the companies do not add up, so a
wrong count is never silent.

`stopReason` is empty on a complete run. Otherwise it names the real reason: `deadline` (the platform's
time budget ran out), `spending-cap` (the buyer's own ceiling), `charge-limit` (the hourly charge limit)
or `billing-price-unknown` (the event price could not be read: nothing is delivered and nothing is
charged).

### What this actor does not do

- It does not create, edit or delete anything on Trustpilot. It reads public pages.
- It does not log in, does not use your account, and does not touch private data.
- It does not promise "unlimited": the measured ceiling is 920 reviews per company per run, and page
  11 of any listing sends the reader to Trustpilot's login page instead of a list.
- It does not read the first page of a star listing, because that page ignores the star filter when
  the address carries `page=1`: the filter is confirmed from page 2 on.
- It does not read reviews older than what those pages hold in one run; for history, run it on a
  schedule with `publishedAfter`.
- It does not translate, summarise or score the reviews. The text is delivered as written.
- It does not bypass a captcha by solving it: it starts a real browser window, which is what a
  normal visitor has.

# Actor input Schema

## `companies` (type: `array`):

One company per line: a domain like amazon.com, a full url, or a Trustpilot profile address. A line that repeats is free, a line that is not a domain comes back as its own free row with the reason.

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

Reviews are sold per row, so this is the ceiling that protects your budget. An anonymous run reaches at most 920 reviews per company: 20 from the newest page plus five star listings of nine filtered pages each. 920 is the maximum, not a phrase.

## `maxPagesPerCompany` (type: `integer`):

Trustpilot serves an anonymous visitor at most 10 pages per listing (page 11 answers with an empty list), so 10 is both the default and the maximum. A star listing is read from page 2, because its first page ignores the filter. Lower it to trade depth for speed.

## `stars` (type: `array`):

Which star listings to read. Empty means all five, and each of them has nine filtered pages of its own: that is what lifts the 200 review wall. \[1] reads only the worst reviews, which is the usual way to hear the real complaint. A star listing is read from page 2: its first page ignores the filter when the address carries page=1, so every row here carries the bucket it really came from.

## `publishedAfter` (type: `string`):

An ISO date, for example 2026-11-01. Older reviews are read and then dropped, and the row that reports the company counts them, so an incremental run is not charged for what it skips.

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

A two letter language code, for example en. Empty means every language. Reviews in other languages are read and dropped without a charge.

## `maxCompanies` (type: `integer`):

Every company costs a fresh browser navigation, so this is the other budget ceiling. Companies beyond it come back free with status NOT_CHECKED_LIMIT.

## `includeReplies` (type: `boolean`):

On, each review carries the company's public reply and its date when one exists. Turn it off for a leaner dataset.

## Actor input object example

```json
{
  "companies": [
    "amazon.com",
    "revolut.com"
  ],
  "maxReviewsPerCompany": 200,
  "maxPagesPerCompany": 10,
  "stars": [
    "1",
    "2"
  ],
  "maxCompanies": 5,
  "includeReplies": true
}
```

# Actor output Schema

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

One row per review. status is OK when the row carries a review, FILTERED_OUT when the reviews were read but your own publishedAfter or language removed all of them (free), NO_REVIEWS when the profile is open and the pages asked had nothing (free), or NOT_CHECKED\_\* with the reason in plain words: INVALID (the line is not a domain, or the stars filter is not a rating from 1 to 5), DUPLICATE (the same company came earlier), LIMIT (beyond maxCompanies), NOT_FOUND (Trustpilot has no profile at that domain, HTTP 404), BLOCKED_PAGE (a bot wall answered instead of the listing), HTTP_ERROR (4xx or 5xx), and TIME, CAP, BILLING or ERROR when the run stopped. TIME, CAP and ERROR also mark reviews that were read and not delivered, because a read review is never dropped in silence. A review row carries: company (the Trustpilot identifying name), companyDisplayName, companyTrustScore, companyReviewsTotal, reviewId, url, rating, title, text, language, author, authorCountry, authorReviews, verified, publishedDate, experiencedDate, companyReply and companyReplyDate, starBucket (1 to 5, or null for the newest unfiltered page), starSource (newest or star-filter), input and inputIndex (the line it belongs to). billable is a claim about the price list; the money actually taken is chargedEvents in the summary.

## `summary` (type: `string`):

Run summary. companiesRequested always equals companiesAttempted plus companiesNotAttempted (invalid, duplicate, limited, skipped before the run reached them). Companies that were attempted end in exactly one of companiesRead, companiesNotFound, companiesBlocked, companiesNoReviews, companiesFilteredOut, companiesFailed; companiesPartial marks a company whose reviews were read and then the listing stopped answering. reviewsSeen counts every review the pages carried, reviewsUnique drops the repeats between pages and star buckets, reviewsDelivered counts the rows written, and chargedEvents is the money really taken. reviewsFiltered and reviewsLimited were read and not charged; reviewsLimited splits into reviewsCapped, reviewsStopped and reviewsUncertain. deliveredUncharged is a batch that is in the dataset and was not paid for, chargeUncertain is a batch whose fate is unknown: it may be in the dataset and it may be uncharged. byStatus splits the rows by status. pagesFetched and pagePlan show the pages read and the pages intended. browserMode (headful under Xvfb is the mode that passes the wall), pricingEventPriced, billingActive and pricingNote say how the run stood with the price; null there means the price could not be read, not that billing is off. starBuckets, starBucketsFromPage, maxReviewsPerCompany, maxPagesPerCompany, maxCompanies, publishedAfter and language echo the settings actually applied. reviewsBucketMismatch counts reviews that a star listing answered with a rating it does not carry: they are dropped, never charged, and the company gets its own row naming the reason. counterMismatch is true when the numbers above do not add up, so a wrong count is never silent. stopReason names why the run stopped early, and an empty stopReason means it finished the list.

# 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 = {
    "companies": [
        "amazon.com",
        "revolut.com"
    ],
    "stars": [
        "1",
        "2"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("stas_k/trustpilot-reviews-api").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 = {
    "companies": [
        "amazon.com",
        "revolut.com",
    ],
    "stars": [
        "1",
        "2",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("stas_k/trustpilot-reviews-api").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 '{
  "companies": [
    "amazon.com",
    "revolut.com"
  ],
  "stars": [
    "1",
    "2"
  ]
}' |
apify call stas_k/trustpilot-reviews-api --silent --output-dataset

```

## MCP server setup

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

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/9eqz8WUhPIXLTZOT3/builds/QNLsKBWYvYRnnbJif/openapi.json
