# Trustpilot Competitor Analyzer (`datacortex/trustpilot-competitor-analyzer`) Actor

Drop in Trustpilot URLs or company domains. Get back review themes, reply quality scoring, sentiment trends, and a head-to-head ranking of competitors. AI-summarized — no setup, no API keys.

- **URL**: https://apify.com/datacortex/trustpilot-competitor-analyzer.md
- **Developed by:** [datacortex](https://apify.com/datacortex) (community)
- **Categories:** E-commerce, Automation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $250.00 / 1,000 business analyzeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/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 Competitor Analyzer

Drop in Trustpilot URLs or company domains. Get back review themes, reply quality scoring, sentiment trends, and a head-to-head ranking of competitors — AI-summarized, no setup, no API keys.

Built for B2B SaaS founders, marketing/CX teams, agencies, and analysts who need competitor reputation benchmarks without paying $69-$350/month for ReviewTrackers or Birdeye.

### What this actor does

For each business domain you provide, this actor:

1. Scrapes recent Trustpilot reviews (up to 5,000 per business)
2. Computes a 0–100 reputation health score weighted toward replies-on-negative-reviews — the actual lever for reputation management
3. Surfaces recurring complaint and praise themes from real review text
4. Adds a one-paragraph AI executive briefing per business
5. When you analyze multiple businesses, ranks them head-to-head on every metric with a one-line headline (included free with the run)

### Why not just use a Trustpilot scraper?

Most "Trustpilot scrapers" give you raw reviews and stop. You still have to do the analysis yourself — tag complaints, score reply quality, normalize across competitors. This actor does that work and returns ready-to-use intelligence.

Compared to review-monitoring SaaS (ReviewTrackers, Birdeye, etc.), you pay per analysis instead of $69–$350/month. A monthly check of your top 5 competitors costs ~$16/year at current pay-per-event rates.

### Input

```json
{
  "domains": [
    "stripe.com",
    "paypal.com",
    "wise.com"
  ],
  "max_reviews_per_business": 200
}
````

| Field | Type | Description |
|---|---|---|
| `domains` | `string[]` | Trustpilot URLs (`https://www.trustpilot.com/review/stripe.com`) or bare domains (`stripe.com`). 1–50 per run. |
| `max_reviews_per_business` | `integer` | How many recent reviews to analyze per business. 20–5000, default 200. |

### Output

Each business produces one `business` item, plus one `comparison` item per run.

**Business item:**

```json
{
  "type": "business",
  "metrics": {
    "domain": "stripe.com",
    "display_name": "Stripe",
    "trust_score": 4.2,
    "health_score": 72.4,
    "rating_distribution": { "negative_pct": 0.18, "positive_pct": 0.74 },
    "reply_metrics": {
      "reply_rate": 0.85,
      "reply_rate_on_negative": 0.92,
      "reply_quality_score": 0.78,
      "median_reply_days": 1.2
    },
    "trend_metrics": { "trend_30d_vs_90d": -0.15 },
    "trust_signals": { "verified_pct": 0.91, "top_countries": [["US", 78]] }
  },
  "themes": {
    "top_phrases_negative": [
      { "text": "customer support", "count": 12, "avg_rating": 1.4 },
      { "text": "hidden fees", "count": 7, "avg_rating": 1.7 }
    ],
    "top_phrases_positive": [
      { "text": "easy to integrate", "count": 18, "avg_rating": 4.9 }
    ],
    "summary_overall": "Stripe scores well on reply quality and verified-review share. Recent reviews trend slightly negative, driven primarily by customer-support complaints (12 of 50 negative reviews mention this). The same support quality customers praise in some reviews appears as the top complaint in others — a service-tier gap is the actionable lead."
  }
}
```

**Comparison item (one per run):**

```json
{
  "type": "comparison",
  "headline": "stripe.com leads on overall health (72.4); paypal.com lags on reply quality (0.31)",
  "businesses_analyzed": ["stripe.com", "paypal.com", "wise.com"],
  "rankings": [
    {
      "metric": "Overall health score (0-100)",
      "leader": "stripe.com",
      "laggard": "paypal.com",
      "entries": [ /* all businesses ranked, with values */ ]
    }
    /* eight more rankings: reply quality, sentiment trend, % verified, etc. */
  ]
}
```

For failed domains, the item contains `error` and `error_message` fields instead.

### Use cases

- **Competitive benchmarking** — Where do you stand against your top 5 competitors on reputation?
- **Pre-investment due diligence** — Fast reputation audit on prospects, portfolio companies, or acquisition targets
- **Marketing & CX teams** — Monthly reputation check across your industry
- **Sales enablement** — "Here's why customers leave \[competitor] in their own words"
- **Agency client reports** — Drop the JSON into a dashboard; refresh monthly

### Performance

- Typical run: ~1-2 minutes per business analyzed (real-browser scrape with full pagination)
- Pages 2+ use Trustpilot's internal JSON API (5–10× faster than HTML scraping)
- \~30 fields per review extracted, including verified status, language, business reply, and consumer country
- Apify residential proxy rotation per business raises success rate against Cloudflare; some businesses with very aggressive bot protection may not always succeed on first try — failures are logged with details and not charged.

### Pricing

Pay-per-event. No subscription.

| Event | Price | When |
|---|---|---|
| Actor start | $0.10 | Once per run |
| Business analyzed | $0.25 | Per business successfully scraped + analyzed (includes review scrape, metrics, themes, AI summary) |

The head-to-head comparison report is included free when you analyze 2+ businesses.

| Run | Cost |
|---|---|
| 1 business | $0.35 |
| 3 businesses | $0.85 |
| 5 businesses | $1.35 |
| 10 businesses | $2.60 |

A monthly run of your top 5 competitors costs ~$16/year. Failed analyses are not charged.

Compared to ReviewTrackers ($69+/month) or Birdeye ($350+/month), you pay per analysis instead of a subscription.

### Limitations

- Public Trustpilot pages only — no login walls bypassed
- English-tuned phrase extraction; the AI briefing handles other languages
- One run analyzes 1–50 businesses; larger batches need multiple runs

### Author

Built and maintained by [DataCortex IQ](https://datacortex.in) — an AI engineering studio specializing in RAG, voice AI, and applied ML for growth-stage companies.

Questions or feedback: open an issue on the [GitHub repo](https://github.com/irfanalidv/trustpilot-competitor-analyzer).

# Actor input Schema

## `domains` (type: `array`):

One per line. Either a full Trustpilot URL like 'https://www.trustpilot.com/review/stripe.com' or just the company domain like 'stripe.com'. Add multiple to compare competitors.

## `max_reviews_per_business` (type: `integer`):

How many recent reviews to analyze per business. More reviews = stronger themes, slightly higher cost.

## Actor input object example

```json
{
  "domains": [
    "wise.com"
  ],
  "max_reviews_per_business": 40
}
```

# 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 = {
    "domains": [
        "wise.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacortex/trustpilot-competitor-analyzer").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 = { "domains": ["wise.com"] }

# Run the Actor and wait for it to finish
run = client.actor("datacortex/trustpilot-competitor-analyzer").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 '{
  "domains": [
    "wise.com"
  ]
}' |
apify call datacortex/trustpilot-competitor-analyzer --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trustpilot Competitor Analyzer",
        "description": "Drop in Trustpilot URLs or company domains. Get back review themes, reply quality scoring, sentiment trends, and a head-to-head ranking of competitors. AI-summarized — no setup, no API keys.",
        "version": "0.0",
        "x-build-id": "3QhPbEN9WPR0fdKQQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datacortex~trustpilot-competitor-analyzer/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datacortex-trustpilot-competitor-analyzer",
                "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/datacortex~trustpilot-competitor-analyzer/runs": {
            "post": {
                "operationId": "runs-sync-datacortex-trustpilot-competitor-analyzer",
                "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/datacortex~trustpilot-competitor-analyzer/run-sync": {
            "post": {
                "operationId": "run-sync-datacortex-trustpilot-competitor-analyzer",
                "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": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Trustpilot URLs or company domains",
                        "minItems": 1,
                        "maxItems": 50,
                        "uniqueItems": true,
                        "type": "array",
                        "description": "One per line. Either a full Trustpilot URL like 'https://www.trustpilot.com/review/stripe.com' or just the company domain like 'stripe.com'. Add multiple to compare competitors.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "max_reviews_per_business": {
                        "title": "Reviews per business",
                        "minimum": 20,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "How many recent reviews to analyze per business. More reviews = stronger themes, slightly higher cost.",
                        "default": 40
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
