• Trustpilot
  • Monitoring

Competitor review monitoring: track rivals on Trustpilot with Python

Track competitors on Trustpilot: rating trend, review volume, reply rate and complaint themes, with a Python script that alerts you when something drops.

By ScrapeReviews · · 5 min read

Your competitors' reviews are the cheapest market research you will ever get. Every week, their customers write down in public what annoys them, what they love, and why they would switch. Most teams read them by hand once a quarter, if at all. This guide shows how to turn that into a small, automatic competitor review monitoring job: a Python script that snapshots several Trustpilot profiles every day, reads only the new reviews, and tells you when something moves.

What is worth tracking

A competitor's review page holds more signal than its star rating. These are the numbers that actually change decisions:

  • Rating trend. The TrustScore moves slowly, so a drop of 0.1 or 0.2 in a few weeks is significant: it usually means a delivery problem, a price change or a broken release.
  • Review volume. A sudden rise in reviews per day is either a campaign (the company started inviting customers) or a crisis. The star mix of the new reviews tells you which.
  • Star distribution. The share of one-star reviews matters more than the average: a company can keep a 4.2 while its one-star share doubles.
  • Reply behaviour. How fast and how often a competitor answers negative reviews shows how much they invest in customer service.
  • Complaint themes. Words that keep coming back in the one- and two-star reviews ("refund", "delivery", "support", "cancel") are the gaps you can sell against.

The Trustpilot Company API gives the first four in one call, and the Trustpilot Reviews API gives the reviews themselves, with filters on stars, dates and language.

The two calls you need

The company profile, GET /v1/companies/{domain}, returns trust_score, stars, review_count, review_count_last_12_months, star_distribution (counts for one to five) and reply_behavior with reply_rate, average_days_to_reply, negative_reviews_count and negative_reviews_with_reply_count. One call, one credit.

The reviews, GET /v1/companies/{domain}/reviews, take since (a date), stars (for example 1,2), language, sort and limit (up to 20 per call). Each response has meta.next_cursor: pass it as cursor to read the next page, until it is null.

curl "https://api.scrapereviews.com/v1/companies/www.monzo.com" \
  -H "X-API-Key: $SCRAPEREVIEWS_API_KEY"

curl "https://api.scrapereviews.com/v1/companies/www.monzo.com/reviews?stars=1,2&since=2026-11-01&limit=20" \
  -H "X-API-Key: $SCRAPEREVIEWS_API_KEY"

You get an API key from the dashboard after signing up; the authentication docs list both accepted headers.

A daily monitoring script

The script below keeps one JSON file per run in a snapshots/ folder. Each run it reads every competitor's profile, reads the reviews published since the previous run, compares with the last snapshot and prints alerts. Swap the print for a Slack webhook or an email when you are happy with the thresholds.

import datetime as dt
import json
import os
import pathlib
from collections import Counter

import requests

API = "https://api.scrapereviews.com"
HEADERS = {"X-API-Key": os.environ["SCRAPEREVIEWS_API_KEY"]}
COMPETITORS = ["www.monzo.com", "revolut.com", "wise.com"]
SNAPSHOTS = pathlib.Path("snapshots")
THEMES = ["refund", "delivery", "support", "cancel", "fees", "app", "account", "scam"]


def get(path, **params):
    response = requests.get(API + path, params=params, headers=HEADERS, timeout=60)
    response.raise_for_status()
    return response.json()


def new_reviews(domain, since):
    """Every review published on or after since, newest first, following the cursor."""
    reviews, cursor = [], None
    while True:
        params = {"since": since, "sort": "recent", "limit": 20}
        if cursor:
            params["cursor"] = cursor
        page = get(f"/v1/companies/{domain}/reviews", **params)
        reviews += page["data"]
        cursor = page["meta"]["next_cursor"]
        if not cursor:
            return reviews


def snapshot(domain, since):
    company = get(f"/v1/companies/{domain}")["data"]
    reviews = new_reviews(domain, since)
    negative = [r for r in reviews if r["rating"] <= 2]
    words = Counter(
        theme for r in negative for theme in THEMES if theme in f"{r['title']} {r['text']}".lower()
    )
    distribution = company["star_distribution"]
    total = sum(distribution.values()) or 1
    return {
        "trust_score": company["trust_score"],
        "review_count": company["review_count"],
        "one_star_share": round(distribution["one"] / total, 3),
        "reply_rate": (company["reply_behavior"] or {}).get("reply_rate"),
        "new_reviews": len(reviews),
        "new_negative": len(negative),
        "themes": dict(words.most_common(5)),
    }


def alerts(domain, now, before):
    out = []
    if before and now["trust_score"] is not None and before["trust_score"] is not None:
        if now["trust_score"] <= before["trust_score"] - 0.1:
            out.append(f"TrustScore {before['trust_score']} -> {now['trust_score']}")
    if before and now["one_star_share"] >= before["one_star_share"] + 0.02:
        out.append(f"one-star share {before['one_star_share']:.1%} -> {now['one_star_share']:.1%}")
    if now["new_reviews"] and now["new_negative"] / now["new_reviews"] > 0.5:
        out.append(f"{now['new_negative']} of {now['new_reviews']} new reviews are 1-2 stars")
    return [f"{domain}: {a}" for a in out]


def main():
    SNAPSHOTS.mkdir(exist_ok=True)
    runs = sorted(SNAPSHOTS.glob("*.json"))
    previous = json.loads(runs[-1].read_text()) if runs else {}
    today = dt.date.today()
    since = previous.get("date") or (today - dt.timedelta(days=7)).isoformat()
    current = {"date": today.isoformat(), "companies": {}}
    for domain in COMPETITORS:
        now = snapshot(domain, since)
        current["companies"][domain] = now
        for alert in alerts(domain, now, previous.get("companies", {}).get(domain)):
            print("ALERT", alert)
        print(domain, now)
    (SNAPSHOTS / f"{today.isoformat()}.json").write_text(json.dumps(current, indent=2))


if __name__ == "__main__":
    main()

A few choices in this script are deliberate:

  • since is the date of the previous run. The first run looks back seven days; after that each run reads only what is new, which keeps the cost proportional to the competitors' activity. A review published on the day of the previous run is read twice, so deduplicate by id if you store the reviews themselves.
  • The cursor loop stops on next_cursor being null, not on an empty page. A page can hold fewer reviews than limit while more follow, and a page that comes back empty only because the crawler moved on is not billed.
  • The one-star share comes from star_distribution, the counts of the whole profile, so it is stable from day to day; the share of negative reviews among today's new ones is the faster, noisier signal. Using both catches slow drifts and sudden waves.
  • Themes are simple keyword counts. They are good enough to see that "refund" doubled this week. For real topic extraction, feed the negative reviews to a model, as shown in sentiment analysis of reviews with Python and LLMs.

Scheduling it

Run it once a day with cron (or a scheduled CI job, or a small cloud function). This line runs it every day at 07:15, with the key in the environment:

15 7 * * * cd /opt/review-monitor && SCRAPEREVIEWS_API_KEY=sr_your_key python3 monitor.py >> monitor.log 2>&1

Keep the snapshot files: after a few months they become a time series you can chart, and the history of a competitor's TrustScore and one-star share around their launches and price changes is often more useful than the daily alerts.

What it costs

Each run makes one call per competitor for the profile, plus one call per page of up to 20 new reviews. Calls are billed 1 credit each, whatever the number of results, and failed calls are free.

CompetitorsNew reviews per day eachCalls per dayCalls per month
3106about 180
54015about 450
1010060about 1,800

At $8 per 1,000 calls, even the largest row costs about $14.40 a month, and a small setup fits in the 30 free calls you get every month. The pricing page has the credit packs.

Beyond Trustpilot

Trustpilot covers online shops, banks, travel and services, but your competitors may be reviewed elsewhere. The same snapshot-and-alert logic works with the other sources of the API, which share one review model (rating, rating_scale, text, published_at, owner_reply):

  • B2B software: G2 and Capterra, where the reviews carry pros, cons and the reviewer's company size.
  • Mobile apps: the App Store and Google Play, per country.
  • Hotels and restaurants: Booking.com, Tripadvisor and Yelp.

If you have not read reviews through an API before, how to scrape Trustpilot reviews explains the filters and the 200-review limit of Trustpilot's own pages in detail.

Start monitoring

Create a free account to get 30 free calls a month, no card required, then copy the script above and add your competitors. Every endpoint and field is in the API reference. The API is independent and not affiliated with Trustpilot.

Frequently asked questions

How often should I check competitor reviews?
Daily is enough for most markets. A daily run reads only the reviews published since the previous run, so it costs a handful of calls per competitor, and a sudden wave of one-star reviews is still caught within a day.
How many credits does monitoring five competitors cost?
One call for each company profile plus one call per 20 new reviews. Five competitors that each get 40 reviews a day cost about 15 calls a day, roughly 450 calls a month.
Can I monitor competitors that are not on Trustpilot?
Yes. Software vendors are usually reviewed on G2 and Capterra, mobile apps on the App Store and Google Play, hotels on Booking.com and Tripadvisor. The same snapshot and alert logic works with those sources through their own endpoints.
Does the competitor know I am monitoring their reviews?
No. The data comes from their public Trustpilot page, the same page any visitor can read, and nothing is posted or sent to the company.

Get the reviews, skip the scraper

30 free calls every month, no credit card. One API key for Trustpilot, the App Store, Google Play, Tripadvisor, Booking.com, Yelp, G2 and Capterra.