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

Scrapes Trustpilot: businesses from category pages with TrustScore, star rating, review count, location, and contact details, and company pages with the full business profile and its latest customer reviews, ratings, and company replies.

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

## Pricing

from $4.99 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

![banner](generated)

## Trustpilot Scraper

**Businesses and customer reviews from Trustpilot — category listings and company pages as clean JSON.**

Scrapes Trustpilot: businesses from category pages with TrustScore, star rating, review count,
location, and contact details, and company pages with the full business profile and its latest
customer reviews, ratings, and company replies. Point it at any Trustpilot category to list the
businesses in it, ranked as Trustpilot ranks them, or at a company's review page to get its
profile and reviews. Built for reputation monitoring, competitor benchmarking, lead generation,
and review analysis.

### ⚡ Quick start

```json
{
  "startUrls": [
    {
      "url": "https://www.trustpilot.com/categories/electronics_technology"
    }
  ],
  "maxItems": 5
}
```

### 🧩 Input

| Field                | Type    | Required | Default                                                                                     | Description                                                                                                         |
| -------------------- | ------- | -------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `startUrls`          | array   | yes      | —                                                                                           | Trustpilot URLs to scrape. Category pages (`/categories/<category>`) and company review pages (`/review/<domain>`). |
| `maxItems`           | integer | no       | `5`                                                                                         | Maximum number of businesses (from a category) or companies to return per start URL.                                |
| `proxyConfiguration` | object  | no       | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US" }` | Proxy settings. Trustpilot is protected by AWS WAF, so US residential proxies are used by default.                  |

### 📤 Output

Every business is one dataset row. The `itemType` field tells the two shapes apart: `business` for
a business listed on a category page and `company` for a company review page, which carries the
full profile and the reviews shown on the page.

#### Fields

| Field                       | Type    | Description                                                                                                                                                                                 |
| --------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `itemType`                  | string  | `business` or `company`.                                                                                                                                                                    |
| `url`                       | string  | The company's Trustpilot review page.                                                                                                                                                       |
| `businessUnitId`            | string  | Business only. Trustpilot business ID.                                                                                                                                                      |
| `displayName`               | string  | Business only. Company name.                                                                                                                                                                |
| `identifyingName`           | string  | Business only. The company's domain, as Trustpilot identifies it.                                                                                                                           |
| `trustScore`                | number  | Business only. TrustScore, 1 to 5.                                                                                                                                                          |
| `stars`                     | number  | Business only. Star rating shown, in half-star steps.                                                                                                                                       |
| `numberOfReviews`           | number  | Business only. Total review count.                                                                                                                                                          |
| `logoUrl`                   | string  | Business only. Company logo.                                                                                                                                                                |
| `location`                  | object  | Business only. Address, city, postal code, and country.                                                                                                                                     |
| `contact`                   | object  | Business only. Website, email, and phone, as the company published them.                                                                                                                    |
| `categories`                | array   | Business only. Categories the company is listed in.                                                                                                                                         |
| `isRecommendedInCategories` | boolean | Business only. Whether Trustpilot recommends the company in its categories.                                                                                                                 |
| `pageUrl`                   | string  | Company only. Canonical review page URL.                                                                                                                                                    |
| `companyDetails`            | object  | Company only. The full profile: TrustScore, stars, review counts (total and last 12 months), website, contact info, categories with rank, claimed and verification status, consumer alerts. |
| `reviews`                   | array   | Company only. The reviews on the page (20, newest first): rating, title, text, dates, language, the reviewer's display name and country, and the company's reply.                           |

<details><summary>Example output</summary>

```json
{
  "itemType": "business",
  "url": "https://www.trustpilot.com/review/www.bhphotovideo.com",
  "businessUnitId": "46fac7c8000064000501afed",
  "displayName": "B&H Photo-Video",
  "identifyingName": "www.bhphotovideo.com",
  "trustScore": 4.9,
  "stars": 5,
  "numberOfReviews": 331371,
  "location": {
    "address": "420 9th Ave",
    "city": "New York",
    "zipCode": "10001",
    "country": "United States"
  },
  "isRecommendedInCategories": true
}
```

</details>

### 💡 Use cases

- **Reputation monitoring** — track a company's TrustScore, review volume, and latest reviews over time.
- **Competitor benchmarking** — compare TrustScores and review counts across every business in a category.
- **Lead generation** — collect company names, websites, emails, and phone numbers by category.
- **Review analysis** — feed recent reviews, ratings, and company replies into sentiment or support analysis.

### ❓ FAQ

- **Do I need a proxy?** Yes. Trustpilot is protected by AWS WAF, so the Actor runs a real browser on Apify US residential proxies by default; other settings are likely to be blocked.
- **How many reviews do I get per company?** The reviews shown on the company page: the 20 most recent.
- **How many businesses can I get from a category?** `maxItems` caps results per start URL, and the Actor pages through the category automatically.
- **What is the difference between `business` and `company` items?** A business item is a category listing with the headline numbers and contact details. A company item is the full profile from the company page, together with its reviews.
- **Why did a run return fewer items than expected?** The site may have changed its layout or tightened its protection. Open an issue and we will update the Actor.

### 🔗 More scrapers by Anyx

- [Walmart Scraper](https://apify.com/anyxsolutions/walmart-scraper)
- [Google Search Scraper](https://apify.com/anyxsolutions/google-search-scraper)
- [Yellowpages Scraper](https://apify.com/anyxsolutions/yellowpages-scraper)
- [Google Maps Lead Generation](https://apify.com/anyxsolutions/google-maps-lead-generation)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

### 🖼 Image credit

Image credit: [trustpilot.com](https://www.trustpilot.com/)

# Actor input Schema

## `startUrls` (type: `array`):

Trustpilot URLs to scrape. Category pages (for example https://www.trustpilot.com/categories/electronics_technology) and company review pages (https://www.trustpilot.com/review/www.bhphotovideo.com) are both supported.

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

Maximum number of businesses (from a category) or companies to return per start URL. A category page lists 20 businesses, so the default finishes in a single request.

## `proxyConfiguration` (type: `object`):

Apify proxy settings. Trustpilot is protected by AWS WAF, so US residential proxies are used by default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.trustpilot.com/categories/electronics_technology"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.trustpilot.com/categories/electronics_technology"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/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 = { "startUrls": [{ "url": "https://www.trustpilot.com/categories/electronics_technology" }] }

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

```

## MCP server setup

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