# Trustpilot Scraper Pro (`coder_zoro/trustpilot-scraper-pro`) Actor

Trustpilot Scraper Pro is a powerful Apify actor that extracts detailed business information and customer reviews from Trustpilot. Choose between two modes: scrape company data (name, rating, contact, etc.) or collect reviews with filters.

- **URL**: https://apify.com/coder\_zoro/trustpilot-scraper-pro.md
- **Developed by:** [Zoro](https://apify.com/coder_zoro) (community)
- **Categories:** Automation, E-commerce, SEO tools
- **Stats:** 206 total users, 1 monthly users, 98.0% runs succeeded, 17 bookmarks
- **User rating**: 4.73 out of 5 stars

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## 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 Scraper Pro
![Scrape Trustpilot](https://i.imgur.com/63QK0tK.jpg)

A powerful and flexible Apify actor that lets you **scrape company information and reviews from Trustpilot**. Designed for automation, lead generation, reputation monitoring, and business intelligence.

---

### Features

- 🔍 **Company Info Scraper** — Get business details like name, address, rating, contact info, verification status, categories, etc.
- ✍️ **Review Scraper** — Extract recent reviews with filtering (by stars, sort order, page range).
- 📦 Pushes structured data to Apify dataset.

---

### Modes

| Mode           | Description                                    |
|----------------|------------------------------------------------|
| `company_info` | Scrapes details about one or more companies    |
| `reviews`      | Scrapes reviews from a specific company page   |

---

### Input Examples

#### 1. Company Info Mode

```json
{
  "mode": "company_info",
  "companyUrls": [
    "https://www.trustpilot.com/review/www.google.com",
    "https://www.trustpilot.com/review/www.facebook.com"
  ]
}
````

#### 2. Reviews Mode

```json
{
  "mode": "reviews",
  "companyUrl": "https://www.trustpilot.com/review/www.apple.com",
  "sort": "relevance",
  "stars": "5",
  "pageMin": 1,
  "pageMax": 3
}
```

***

### Output Format

#### For `company_info` mode:

```json
{
  "name": "Google",
  "verified": true,
  "claimed": true,
  "reviews": 10500,
  "rating": 4.2,
  "address": "1600 Amphitheatre Parkway",
  "city": "Mountain View",
  "zipcode": "94043",
  "country": "United States",
  "email": "support@google.com",
  "phone": "+1 650-253-0000",
  "website": "https://www.google.com",
  "category": "Internet services",
  "recent_review_date": "2024-12-01",
  "recent_review_title": "Great service!",
  "recent_review_text": "Loved the product and support team.",
  "recent_reviewer_name": "John D.",
  "recent_review_rating": 5,
  "trustpilot_url": "https://www.trustpilot.com/review/www.google.com",
  "one_star_count": 100,
  "two_star_count": 50,
  "three_star_count": 200,
  "four_star_count": 800,
  "five_star_count": 9350
}
```

***

#### For `reviews` mode:

```json
{
  "title": "Excellent Support!",
  "text": "Quick and helpful service when I needed it.",
  "rating": 5,
  "date": "2024-11-30",
  "reviewer": "Alice W.",
  "page": 1
}
```

***

### Output Download

- Apify Dataset → Export as:
  - `.json`
  - `.csv`
  - `.xlsx`
  - `.xml`
- Or download via Apify API.

***

### Use Cases

- ✅ Lead generation for marketing and sales
- ✅ Competitor monitoring and market research
- ✅ Reputation and sentiment analysis
- ✅ Business directory creation
- ✅ SEO intelligence and profile audits

***

### ⚙️ How It Works

1. Select a mode: `company_info` or `reviews`
2. Provide input as shown in the examples
3. The actor fetches and parses Trustpilot data
4. Results are saved in Apify dataset

***

### 📌 Notes

- URLs must start with `https://www.trustpilot.com/review/`
- If you input a raw domain like `facebook.com`, the actor will auto-format it correctly.
- Review scraping supports filtering by:
  - Stars: `1` to `5` or `all`
  - Sort: `"relevance"` or `"newest"`
  - Pagination: Specify `pageMin` and `pageMax`

***

For feature requests or issues, please open a GitHub Issue or contact via Apify.

***

### 📈 Tags

`trustpilot` `review scraper` `lead generation` `seo tool` `automation` `data extractor` `business scraper` `review monitoring` `company info`

***

# Actor input Schema

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

Choose what to scrape: Company Info or Reviews.

## `companyUrls` (type: `array`):

List of Trustpilot company profile URLs to extract company information from.

## `companyUrl` (type: `string`):

The Trustpilot company review page URL from which reviews will be extracted.

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

Sorting method for reviews: relevance or recency.

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

Filter reviews by star rating (1–5) or select 'all'.

## `pageMin` (type: `integer`):

The first page number to start scraping reviews from.

## `pageMax` (type: `integer`):

The last page number to stop scraping reviews at.

## Actor input object example

```json
{
  "mode": "company_info",
  "companyUrls": [
    "https://www.trustpilot.com/review/www.google.com"
  ],
  "companyUrl": "https://www.trustpilot.com/review/www.google.com",
  "sort": "relevance",
  "stars": "all",
  "pageMin": 1,
  "pageMax": 2
}
```

# 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 = {
    "mode": "company_info",
    "companyUrls": [
        "https://www.trustpilot.com/review/www.google.com"
    ],
    "companyUrl": "https://www.trustpilot.com/review/www.google.com",
    "stars": "all",
    "pageMin": 1,
    "pageMax": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("coder_zoro/trustpilot-scraper-pro").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 = {
    "mode": "company_info",
    "companyUrls": ["https://www.trustpilot.com/review/www.google.com"],
    "companyUrl": "https://www.trustpilot.com/review/www.google.com",
    "stars": "all",
    "pageMin": 1,
    "pageMax": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("coder_zoro/trustpilot-scraper-pro").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 '{
  "mode": "company_info",
  "companyUrls": [
    "https://www.trustpilot.com/review/www.google.com"
  ],
  "companyUrl": "https://www.trustpilot.com/review/www.google.com",
  "stars": "all",
  "pageMin": 1,
  "pageMax": 2
}' |
apify call coder_zoro/trustpilot-scraper-pro --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trustpilot Scraper Pro",
        "description": "Trustpilot Scraper Pro is a powerful Apify actor that extracts detailed business information and customer reviews from Trustpilot. Choose between two modes: scrape company data (name, rating, contact, etc.) or collect reviews with filters.",
        "version": "0.0",
        "x-build-id": "kzqC2rEKnBwqRHmw1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/coder_zoro~trustpilot-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-coder_zoro-trustpilot-scraper-pro",
                "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/coder_zoro~trustpilot-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-coder_zoro-trustpilot-scraper-pro",
                "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/coder_zoro~trustpilot-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-coder_zoro-trustpilot-scraper-pro",
                "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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scrape Mode",
                        "enum": [
                            "company_info",
                            "reviews"
                        ],
                        "type": "string",
                        "description": "Choose what to scrape: Company Info or Reviews."
                    },
                    "companyUrls": {
                        "title": "Company URLs (for company_info)",
                        "type": "array",
                        "description": "List of Trustpilot company profile URLs to extract company information from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "companyUrl": {
                        "title": "Single Company URL (for reviews)",
                        "type": "string",
                        "description": "The Trustpilot company review page URL from which reviews will be extracted."
                    },
                    "sort": {
                        "title": "Sort by (only for reviews)",
                        "enum": [
                            "relevance",
                            "recency"
                        ],
                        "type": "string",
                        "description": "Sorting method for reviews: relevance or recency.",
                        "default": "relevance"
                    },
                    "stars": {
                        "title": "Star filter (only for reviews)",
                        "enum": [
                            "1",
                            "2",
                            "3",
                            "4",
                            "5",
                            "all"
                        ],
                        "type": "string",
                        "description": "Filter reviews by star rating (1–5) or select 'all'."
                    },
                    "pageMin": {
                        "title": "Start page (only for reviews)",
                        "type": "integer",
                        "description": "The first page number to start scraping reviews from."
                    },
                    "pageMax": {
                        "title": "End page (only for reviews)",
                        "type": "integer",
                        "description": "The last page number to stop scraping reviews at."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
