# Trustpilot Scraper — Company Profiles, Search & Categories (`khadinakbar/trustpilot-all-in-one-scraper`) Actor

Scrape Trustpilot company profiles, search results, and category leaderboards. Auto-detects mode from a domain, URL, search query, or category. Returns TrustScore, rating, review count, claimed status, website, country, and categories. MCP-ready for Claude & ChatGPT.

- **URL**: https://apify.com/khadinakbar/trustpilot-all-in-one-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Lead generation, MCP servers, Agents
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 company result returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 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 — Company Profiles, Search & Categories

Extract **company-level Trustpilot data** at scale: full company profiles, search results, and category leaderboards. One actor, three modes, auto-detected from whatever you paste in. Built for competitor research, lead generation, market mapping, and AI agents.

> Need individual **review text** (rating, reviewer, reply, sentiment)? Use the companion [Trustpilot Reviews Scraper](https://apify.com/khadinakbar/trustpilot-reviews-scraper). This actor returns **companies**, not reviews.

### What you get

| Field | Description |
|-------|-------------|
| `resultType` | `profile`, `search`, or `category` |
| `companyName` | Display name on Trustpilot |
| `domain` | Company domain / identifying name (e.g. `apple.com`) |
| `trustpilotUrl` | Canonical Trustpilot review page |
| `websiteUrl` | Company's own website |
| `trustScore` | TrustScore (0–5, one decimal) |
| `stars` | Displayed star bucket (1–5) |
| `reviewCount` | Total reviews |
| `ratingDistribution` | Counts per star bucket (profile mode) |
| `categories` | Trustpilot categories the company is listed under |
| `categorySlug` | Category slug (category mode) |
| `isClaimed` / `isVerified` | Claimed / verified business flags |
| `country` / `city` / `address` / `postalCode` | Location, when published |
| `phone` / `email` | Contact details, when published |
| `logoUrl` | Company logo image |
| `rank` | Position in a search/category listing |
| `scraped_at` / `source_url` | Provenance |

### When to use it

- **Competitor research** — pull TrustScore, review volume, and claimed status for a list of rival domains in one run.
- **Market mapping** — scrape a whole category leaderboard (`/categories/bank`, `/categories/vpn`) and rank players by TrustScore.
- **Lead generation** — find companies in a niche + country, with website and contact details where published.
- **AI agents** — a clean, flat JSON tool that answers "how is company X rated on Trustpilot" or "who are the top-rated companies in category Y".

### Price

Pay-per-event:

- **Actor start:** $0.00005 (scaled by RAM)
- **Company result returned:** **$0.005** per record — a profile, a search hit, or a category entry.

A 50-company category leaderboard costs about **$0.25**. A single profile costs **$0.005**. Pay-Per-Usage (compute + proxy) is also available for very large jobs.

### Input

Paste any mix of domains, Trustpilot URLs, search terms, or categories into `queries`. Each item is auto-detected:

| You enter | Detected mode | What you get |
|-----------|---------------|--------------|
| `apple.com` | profile | One company profile |
| `https://www.trustpilot.com/review/netflix.com` | profile | One company profile |
| `online banks` | search | Companies matching the search |
| `/categories/bank` | category | The category leaderboard |
| `https://www.trustpilot.com/categories/jewelry_store` | category | The category leaderboard |

Set `mode` to `profile`, `search`, or `category` to force one interpretation. Use `country` (e.g. `GB`, `US`, `DE`) to scope search and category results. Use `maxResultsPerQuery` to cap how many companies each listing returns.

#### Example input

```json
{
  "queries": [
    "stripe.com",
    "online banking",
    "/categories/jewelry_store"
  ],
  "mode": "auto",
  "country": "US",
  "maxResultsPerQuery": 50
}
````

### Use via API

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('khadinakbar/trustpilot-all-in-one-scraper').call({
    queries: ['apple.com', '/categories/bank'],
    mode: 'auto',
    maxResultsPerQuery: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("khadinakbar/trustpilot-all-in-one-scraper").call(run_input={
    "queries": ["apple.com", "/categories/bank"],
    "mode": "auto",
    "maxResultsPerQuery": 50,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### Use with AI agents (MCP)

This actor is MCP-ready and exposed through the [Apify MCP server](https://mcp.apify.com) as `apify--trustpilot-all-in-one-scraper`. Claude, ChatGPT, and other MCP clients can call it directly with a domain, search term, or category and receive flat, structured company records.

### How it works

Trustpilot fronts its site with Cloudflare and blocks datacenter IPs at the TLS-fingerprint level. This actor uses a real Chromium browser (PlaywrightCrawler) with Crawlee fingerprint spoofing, a Cloudflare-challenge handler, consent-cookie injection, and Apify **Residential** proxies. Company data is read from the page's embedded `__NEXT_DATA__` JSON, so output is structured and consistent rather than scraped from brittle CSS selectors.

### FAQ

**Does it return review text?** No — this actor returns company-level data. For reviews, use the [Trustpilot Reviews Scraper](https://apify.com/khadinakbar/trustpilot-reviews-scraper).

**Why must I use residential proxies?** Trustpilot blocks datacenter IPs. The default residential configuration is required; datacenter proxies will fail.

**Can I scrape a whole category?** Yes. Enter `/categories/<slug>` (e.g. `/categories/bank`) and set `maxResultsPerQuery` to how many companies you want. Add `country` to scope by market.

**What if a company isn't on Trustpilot?** That query is skipped cleanly and logged; the run continues with the rest.

**How are costs capped?** The run prints its maximum cost before scraping and never charges beyond `maxResultsPerQuery` per query.

### Legal

This actor scrapes only publicly available data from Trustpilot. You are responsible for using the output in compliance with Trustpilot's Terms of Service, applicable data-protection laws (including GDPR/CCPA where relevant), and any contractual obligations. Do not use scraped personal data for unlawful purposes. This actor is not affiliated with or endorsed by Trustpilot.

# Actor input Schema

## `queries` (type: `array`):

What to scrape, one item per line. Each item is auto-detected: a domain or Trustpilot review URL (e.g. 'apple.com' or 'https://www.trustpilot.com/review/apple.com') becomes a company PROFILE; a Trustpilot category URL or '/categories/<slug>' (e.g. '/categories/bank') becomes a CATEGORY leaderboard; anything else (e.g. 'best online banks') becomes a SEARCH. Mix freely — set the 'mode' field to force one interpretation. NOT for individual review text — use the trustpilot-reviews-scraper actor for that.

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

How to interpret every item in 'queries'. 'auto' (default) detects profile vs category vs search per item. 'profile' forces each item to be treated as a company domain/URL. 'search' forces free-text company search. 'category' forces each item to be a category slug or category URL.

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

Two-letter ISO country code used to scope SEARCH and CATEGORY results to a Trustpilot country domain (e.g. 'US', 'GB', 'DE', 'FR', 'AU'). Leave empty for the global trustpilot.com. Ignored for PROFILE mode, which always resolves the company's canonical page. Example: 'GB' returns UK category leaderboards.

## `maxResultsPerQuery` (type: `integer`):

Maximum company records to return for each item in 'queries'. For PROFILE this is always 1 (a single company). For SEARCH and CATEGORY it caps how many listed companies are returned and paginates accordingly. Defaults to 50; set higher for full leaderboards. Hard cap 1000 per query to protect your budget.

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

Proxy used to reach Trustpilot. Defaults to Apify Residential proxies, which are REQUIRED — Trustpilot fronts with Cloudflare and blocks datacenter IPs at the TLS-fingerprint level. Leave as default unless you have a specific residential pool. Datacenter proxies will fail.

## Actor input object example

```json
{
  "queries": [
    "stripe.com",
    "https://www.trustpilot.com/categories/jewelry_store",
    "vpn services"
  ],
  "mode": "auto",
  "country": "GB",
  "maxResultsPerQuery": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All extracted Trustpilot company records as structured JSON

# 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 = {
    "queries": [
        "apple.com",
        "/categories/bank",
        "online banking"
    ],
    "mode": "auto",
    "maxResultsPerQuery": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/trustpilot-all-in-one-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 = {
    "queries": [
        "apple.com",
        "/categories/bank",
        "online banking",
    ],
    "mode": "auto",
    "maxResultsPerQuery": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/trustpilot-all-in-one-scraper").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 '{
  "queries": [
    "apple.com",
    "/categories/bank",
    "online banking"
  ],
  "mode": "auto",
  "maxResultsPerQuery": 50
}' |
apify call khadinakbar/trustpilot-all-in-one-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trustpilot Scraper — Company Profiles, Search & Categories",
        "description": "Scrape Trustpilot company profiles, search results, and category leaderboards. Auto-detects mode from a domain, URL, search query, or category. Returns TrustScore, rating, review count, claimed status, website, country, and categories. MCP-ready for Claude & ChatGPT.",
        "version": "1.0",
        "x-build-id": "5uXRfLufHbgavv1Mg"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/khadinakbar~trustpilot-all-in-one-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-khadinakbar-trustpilot-all-in-one-scraper",
                "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/khadinakbar~trustpilot-all-in-one-scraper/runs": {
            "post": {
                "operationId": "runs-sync-khadinakbar-trustpilot-all-in-one-scraper",
                "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/khadinakbar~trustpilot-all-in-one-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-khadinakbar-trustpilot-all-in-one-scraper",
                "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": [
                    "queries"
                ],
                "properties": {
                    "queries": {
                        "title": "Queries (domains, URLs, search terms, or categories)",
                        "type": "array",
                        "description": "What to scrape, one item per line. Each item is auto-detected: a domain or Trustpilot review URL (e.g. 'apple.com' or 'https://www.trustpilot.com/review/apple.com') becomes a company PROFILE; a Trustpilot category URL or '/categories/<slug>' (e.g. '/categories/bank') becomes a CATEGORY leaderboard; anything else (e.g. 'best online banks') becomes a SEARCH. Mix freely — set the 'mode' field to force one interpretation. NOT for individual review text — use the trustpilot-reviews-scraper actor for that.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "auto",
                            "profile",
                            "search",
                            "category"
                        ],
                        "type": "string",
                        "description": "How to interpret every item in 'queries'. 'auto' (default) detects profile vs category vs search per item. 'profile' forces each item to be treated as a company domain/URL. 'search' forces free-text company search. 'category' forces each item to be a category slug or category URL.",
                        "default": "auto"
                    },
                    "country": {
                        "title": "Country (for search & category)",
                        "type": "string",
                        "description": "Two-letter ISO country code used to scope SEARCH and CATEGORY results to a Trustpilot country domain (e.g. 'US', 'GB', 'DE', 'FR', 'AU'). Leave empty for the global trustpilot.com. Ignored for PROFILE mode, which always resolves the company's canonical page. Example: 'GB' returns UK category leaderboards.",
                        "default": ""
                    },
                    "maxResultsPerQuery": {
                        "title": "Max results per query",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum company records to return for each item in 'queries'. For PROFILE this is always 1 (a single company). For SEARCH and CATEGORY it caps how many listed companies are returned and paginates accordingly. Defaults to 50; set higher for full leaderboards. Hard cap 1000 per query to protect your budget.",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy used to reach Trustpilot. Defaults to Apify Residential proxies, which are REQUIRED — Trustpilot fronts with Cloudflare and blocks datacenter IPs at the TLS-fingerprint level. Leave as default unless you have a specific residential pool. Datacenter proxies will fail.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
