# Trustpilot (`canadesk/trustpilot`) Actor

Collect Trustpilot reviews, ratings, reviewer details and business replies across websites.

- **URL**: https://apify.com/canadesk/trustpilot.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Full permissions
- **Stats:** 456 total users, 9 monthly users, 100.0% runs succeeded, 24 bookmarks
- **User rating**: 3.31 out of 5 stars

## Pricing

from $0.35 / 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

Collect customer reviews and business replies from **Trustpilot**. Enter one website or a list and filter the reviews you want to collect.

### Features

| **Feature** | **What you get** |
| :--- | :--- |
| Reviews | Titles, text, star ratings, publication dates and experience dates |
| Reviewers and replies | Available reviewer details, verification labels, business replies and review links |
| Filters | Rating, language, date, keywords, replies and verification |
| Output | Individual reviews or reviews grouped by website |

Available reviews and fields depend on the business, filters and public source response.

### Quick start

```json
{
  "website": ["www.expensify.com", "mejuri.com"],
  "process": "ga",
  "maximum": 40,
  "format": "list"
}
```

Enter company domains, website URLs or Trustpilot company review URLs. Select the Trustpilot country, choose your filters, and run the actor.

### Collection options

`ga` collects reviews using your filters. `gas` searches each rating group; selecting a star rating narrows it to that group. `gd` provides detailed review records, and `gr` uses the compatible structured Review format.

`maximum` limits reviews per website, or per rating group with `gas`. `maxResults` limits reviews across the entire run. `maxcrawl` limits pages per group. Trustpilot may make fewer public pages available than these limits allow.

Use `sort: "recency"` for recent reviews or `"relevance"` for Trustpilot's ordering. Wrapped results are grouped into one row per website with reviews in `data`; recent-first ordering also applies across rating groups in that format.

### Results

Individual records include the original review fields, plus `website`, `link` and `opinion` (Positive, Neutral or Negative, based on the star rating). Available fields vary by review. Missing replies or verification details remain missing.

The actor reads public reviews and does not require your Trustpilot login. If access is blocked, try another proxy or retry later. For support, share the run URL and affected website.

### Pay-per-event billing

Each valid pay-per-event run with at least one input includes a minimum charge of 100 result units, shared across all inputs in that run. Any placeholder rows are clearly marked and contain no scraped data; filter them out when exporting. Each separate run has its own minimum, including scheduled or API runs. Platform usage is included.

#### Unsuccessful lookups

Where listed in the Pricing tab, a handled lookup problem that prevents a run from returning any real results produces one clear error record and a single $0.02 unsuccessful-lookup fee, in addition to any listed start fee.

# Actor input Schema

## `process` (type: `string`):

Choose review collection and output type.

## `website` (type: `array`):

Company domains, website URLs or Trustpilot company review URLs.

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

Default country for Trustpilot.

## `maxResults` (type: `integer`):

Overall review limit across all websites and rating groups.

## `maximum` (type: `integer`):

Maximum reviews per website; in rating-group mode, per rating group. The overall run limit still applies.

## `sort` (type: `string`):

No description

## `daterange` (type: `string`):

Filter for date range.

## `keywords` (type: `string`):

Filter to search for specific keywords.

## `stars` (type: `string`):

Filter for ratings.

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

Filter for review languages.

## `replies` (type: `string`):

Filter for reviews with replies from the business.

## `verified` (type: `string`):

Filter for reviews verified by Trustpilot.

## `format` (type: `string`):

One row per review or reviews grouped by website.

## `delay` (type: `integer`):

Seconds between review requests.

## `maxcrawl` (type: `integer`):

Maximum review pages per website or rating group. Source limits may be lower.

## `proxy` (type: `object`):

Optional proxy for all source requests.

## Actor input object example

```json
{
  "process": "ga",
  "website": [
    "www.expensify.com"
  ],
  "country": "us",
  "maxResults": 10000,
  "maximum": 40,
  "sort": "recency",
  "daterange": "all",
  "keywords": "",
  "stars": "all",
  "language": "all",
  "replies": "all",
  "verified": "all",
  "format": "list",
  "delay": 1,
  "maxcrawl": 100,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "website": [
        "www.expensify.com"
    ],
    "keywords": "",
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/trustpilot").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 = {
    "website": ["www.expensify.com"],
    "keywords": "",
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/trustpilot").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 '{
  "website": [
    "www.expensify.com"
  ],
  "keywords": "",
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call canadesk/trustpilot --silent --output-dataset

```

## MCP server setup

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

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/WO94hO14P98iwotpK/builds/Tn4saB7oDuyoGt5EN/openapi.json
