# Trustpilot API (`epctex/trustpilot-api`) Actor

Trustpilot data over a simple HTTP API: get company profiles and customer reviews by company slug, such as www.turkishairlines.com. Always-on Standby Actor with JSON responses in seconds. Pay per successful request, with no Trustpilot account or API key needed.

- **URL**: https://apify.com/epctex/trustpilot-api.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 company details

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

## Trustpilot API

Trustpilot API is an Apify actor that extracts company profiles and customer reviews from Trustpilot.com by company slug (for example `www.turkishairlines.com`). Pricing ranges from $0.002 to $0.01 per successful request, depending on the endpoint called.

Trustpilot API exposes 2 endpoints, accepts up to 4 path/query parameters per endpoint, and bills one pay-per-event charge per successful request — the event depends on which endpoint you call — with no subscription and no monthly minimum on paid plans.

### How It Works

Trustpilot API runs as an [Apify Standby Actor](https://docs.apify.com/platform/actors/running/standby): an always-on HTTP server, not a classic Actor run. There is no run to start and no dataset to poll — you send a plain `GET` request to an endpoint and the JSON comes back in the response itself.

| | Classic dataset Actor | Trustpilot API (Standby) |
| --- | --- | --- |
| How you call it | Start a run, wait, then read the dataset | One `GET` request |
| Result | Items accumulate in a dataset | JSON in the HTTP response, synchronously |
| Billing | Per run or per dataset item | Per successful request, by endpoint |

Authenticate with your Apify API token, either as an `Authorization: Bearer <token>` header or a `?token=<token>` query parameter. The token is only used to identify and bill the caller — it is **never forwarded** to the upstream data service.

### Who Uses Trustpilot API?

- **Brand and reputation monitoring teams** read a company's `trustScore`, `stars` and `numberOfReviews` (`/company/{slug}`) to track how customers rate their own brand or a competitor over time.
- **Customer-experience and support teams** pull a company's reviews (`/company/{slug}/reviews`) and filter by `stars` or `lang` to find the complaints or praise that matter most.
- **Market and competitor researchers** compare companies through their `categories`, `isClaimed` and verification flags (`verifiedByGoogle`, `verifiedPaymentMethod`, `verifiedUserIdentity`).
- **Sentiment-analysis pipelines** feed review `title`, `body` and `rating` into text-analysis or LLM workflows.
- **AI agents and chatbots** call it directly as a tool: plain JSON over HTTP with a published OpenAPI spec, so no Trustpilot account is required.

### Endpoints & Parameters

All endpoints are `GET`. Base URL: `https://epctex--trustpilot-api.apify.actor` — see the note under [Request Example](#request-example).

#### Companies

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/company/{slug}` | `slug` | string (path) | Company slug, e.g. `www.turkishairlines.com` | required |

#### Reviews

| Endpoint | Field | Type | Description | Default |
| --- | --- | --- | --- | --- |
| `/company/{slug}/reviews` | `slug` | string (path) | Company slug, e.g. `www.turkishairlines.com` | required |
| | `page` | string | Page for the pagination of the reviews results, e.g. `2` | — |
| | `lang` | string | Language filter for reviews, ISO language code such as `en` or `en-us` (pattern `^[a-z]{2,3}(-[a-z]{2,3})?$`) | — |
| | `stars` | string | Filter reviews by star rating, `1` to `5` | — |

`page`, `lang` and `stars` are optional; omit them to get the first page of unfiltered reviews.

### Request Example

> **Standby base URL:** Apify Standby actors are reachable at `https://{apify-username}--{actor-name}.apify.actor`. This actor is published under the epctex account, so its Standby base URL is `https://epctex--trustpilot-api.apify.actor`, used in the examples below.

Get a company's profile:

```bash
curl "https://epctex--trustpilot-api.apify.actor/company/www.turkishairlines.com" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `company-detail` ($0.002) on success.

Get 5-star English reviews, page 2:

```bash
curl -G "https://epctex--trustpilot-api.apify.actor/company/www.turkishairlines.com/reviews" \
  --data-urlencode "page=2" \
  --data-urlencode "lang=en" \
  --data-urlencode "stars=5" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Charges `company-reviews` ($0.01) on success.

### Pricing Model

Trustpilot API bills one pay-per-event charge per successful request, based on the endpoint called — regardless of how many reviews the response contains. A request charges only the called endpoint's event, once.

| Endpoint | Event | Price |
| --- | --- | --- |
| `/company/{slug}` | `company-detail` | $0.002 |
| `/company/{slug}/reviews` | `company-reviews` | $0.01 |

| Status | Meaning | Charged? |
| --- | --- | --- |
| `200` | Successful response, contains `data` | Yes — the called endpoint's event |
| `400` | Bad request — a param failed validation | No |
| `403` | Standby access disabled, or your access was restricted by the developer | No |
| `404` | Endpoint not matched, or nothing found upstream | No |
| `429` | Monthly free-request limit reached | No |
| `502` | Upstream (INFRA) request failed | No |
| `503` | Plan/quota could not be checked right now | No |

#### Cost examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| Look up 1 company profile | 1 | $0.002 |
| Fetch 1 page of a company's reviews | 1 | $0.01 |
| Look up 1 company, then its first page of reviews | 2 | $0.002 + $0.01 = $0.012 |
| Pull 10 pages of a company's reviews | 10 | $0.10 |
| 100 company profile lookups | 100 | $0.20 |
| 1,000 company profile lookups | 1,000 | $2.00 |
| 1,000 pages of reviews | 1,000 | $10.00 |

**Cost optimization tips:** don't retry on `400`/`403`/`404`/`429` — they're not charged but they also won't succeed on retry without changing the request; cache company profiles you don't expect to change between calls instead of re-fetching them; reviews are billed per page, not per review, so request only the pages you need and use `lang` and `stars` to narrow results.

#### Demo Mode

Apify Free-plan users can try Trustpilot API without a subscription, capped at **10 requests per calendar month**. Once that limit is used up, every call answers `429` ("You have used all free requests for this month. Upgrade your Apify plan to keep going.") until the next month. A paid Apify plan removes the monthly cap entirely.

### Output Example

Responses are wrapped in `{ "status", "message", "data" }`.

A company (`GET /company/{slug}`):

```json
{
  "status": 200,
  "message": "OK",
  "data": {
    "id": "5061d969e1ff5d020000006c",
    "url": "https://www.trustpilot.com/review/www.turkishairlines.com",
    "slug": "www.turkishairlines.com",
    "title": "Turkish Airlines",
    "image": "https://s3-eu-west-1.amazonaws.com/tpd/screenshots/4be42555000064000508cfb8/198x149.png",
    "stars": 1.4,
    "trustScore": 1.4,
    "numberOfReviews": 28271,
    "websiteUrl": "http://www.turkishairlines.com",
    "categories": ["Travel Agency"],
    "verifiedByGoogle": false,
    "verifiedPaymentMethod": false,
    "verifiedUserIdentity": false,
    "isClaimed": false,
    "isClosed": false,
    "isTemporarilyClosed": false,
    "hasSubscription": false,
    "isUsingPaidFeatures": false
  }
}
```

Reviews (`GET /company/{slug}/reviews`, `data` is an array of reviews):

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": "5061d969e1ff5d020000142d",
      "user": { "name": "Riley Bettin", "countryCode": "NO", "id": "64635b59c6cc6b0012396790" },
      "experiencedDate": "2022-04-29T18:30:01.569Z",
      "updatedDate": "2022-04-29T18:30:01.569Z",
      "publishedDate": "2022-04-29T18:30:01.569Z",
      "title": "My Life Would Be Significantly",
      "body": "My Life Would Be Significantly More Difficult Without Airtable",
      "rating": 1
    }
  ]
}
```

An error, e.g. a failed validation (`400`, not charged):

```json
{
  "status": 400,
  "message": "Bad request"
}
```

### Limitations

- **Two endpoints only.** You can read a company by slug and its reviews; there is no endpoint to search for companies or browse categories.
- **You need the company slug.** Both endpoints take the slug used on Trustpilot (e.g. `www.turkishairlines.com`), not a free-text company name.
- **Reviews are paginated by `page` only.** Pass `page` to move through results; each page is a separate, separately-charged request.
- **`lang` and `stars` are validated.** `lang` must be a lowercase ISO language code such as `en` or `en-us`, and `stars` must be `1` to `5`; anything else returns `400` before any quota is used.
- **Per-endpoint pricing, not per-field pricing.** Each endpoint charges a fixed event regardless of how many reviews a page contains.

### Which Trustpilot API Questions Come Up Most Often?

#### Does Trustpilot API need a Trustpilot account or API key?

No. You only need an Apify API token. Trustpilot API never asks you to log in to Trustpilot.

#### How much does it cost?

It depends on the endpoint: $0.002 for a company profile and $0.01 for a page of reviews. Failed, invalid, rejected or not-found responses are never charged, and a request never charges more than one event.

#### Am I charged per review, or per request?

Per request. A page of reviews costs the same however many reviews it contains.

#### How do I get more than one page of reviews?

Pass the `page` query parameter on `/company/{slug}/reviews`, for example `page=2`. Each page is a separate, separately-charged request.

#### What happens when I hit the free-plan limit?

Every call returns `429` with "You have used all free requests for this month. Upgrade your Apify plan to keep going." until the next calendar month, or until you move to a paid Apify plan.

#### Why did my request return `403`?

Either Standby access isn't available on your current Apify plan, or your access to this Actor has been specifically restricted by its developer.

#### Can I retry a `502` or `503`?

Yes. `502` means the request to the upstream data service failed; `503` means your plan/quota couldn't be checked. Neither is charged, and both are safe to retry after a short delay.

#### Can I use this from an AI agent or bot?

Yes. It's a plain HTTP JSON API with a published OpenAPI spec, so it fits LLM tool calls, bots, backends, and any no-code tool that can make HTTP requests.

### Contact

Trustpilot API is published by epctex. Visit [epctex.com](https://epctex.com) to see all available products. For custom integrations, reach out through the chat box on epctex.com. For support, contact business@epctex.com.

# Actor input Schema

## Actor input object example

```json
{}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/trustpilot-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("epctex/trustpilot-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 '{}' |
apify call epctex/trustpilot-api --silent --output-dataset

```

## MCP server setup

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