---
title: "How to Scrape Trustpilot Reviews in 2026 | ScrapeReviews"
description: "Scrape Trustpilot reviews without fighting a WAF: one API call per 20 reviews, cursor pagination, filters by stars, language and date, Python and JS code."
url: "https://scrapereviews.com/blog/how-to-scrape-trustpilot-reviews"
markdown: "https://scrapereviews.com/blog/how-to-scrape-trustpilot-reviews.md"
published: "2026-11-22"
updated: "2026-11-22"
---

# How to scrape Trustpilot reviews (with cURL, Python and JavaScript)

Published 2026-11-22 · Updated 2026-11-22 · By ScrapeReviews

Trustpilot holds hundreds of millions of reviews, and most of them are public: anyone can open a company page and read them. Turning those pages into clean, structured data is another matter. This guide explains why a home-made scraper tends to break, then shows how to get the same data with one HTTP call per page, in cURL, Python and JavaScript.

## Why scraping Trustpilot yourself is hard

A first scraper usually takes an afternoon: request `trustpilot.com/review/<domain>`, parse the embedded JSON, follow `?page=2`. Keeping it alive is the part that costs weeks.

- **The firewall.** Trustpilot sits behind a web application firewall. Datacenter IP addresses, plain HTTP clients and too many requests from one address get challenge pages or blocks. You end up paying for rotating residential IPs and a real browser fingerprint.
- **The 200-review cap.** Anonymous visitors see at most 200 reviews for any given filter. Past page 10 the site simply stops. A company with 40,000 reviews looks like a company with 200 unless you split the list into smaller filters (stars, languages, dates) and stitch the pieces back together without duplicates.
- **Page structure changes.** The data lives in a JSON blob whose keys move from time to time. A renamed field silently turns your ratings into `null` and nobody notices until a report looks wrong.
- **Normalisation.** Dates in several formats, verification labels, company replies, pseudonymous authors, languages: every consumer of the data has to clean the same things again.

None of this is impossible, but it is plumbing. If what you need is the reviews, an API that already does the plumbing is cheaper than maintaining it.

## The reviews endpoint

ScrapeReviews exposes Trustpilot reviews at `GET /v1/companies/{domain}/reviews`, where `{domain}` is the company's domain as it appears on Trustpilot (for example `www.example.com`). You authenticate with the `X-API-Key` header: [create a free account](https://scrapereviews.com/auth/sign-up) and copy a key from the dashboard, under API keys. The full reference is on [the reviews endpoint page](https://scrapereviews.com/docs/api/reviews.md) and the product overview is on [the Trustpilot reviews API page](https://scrapereviews.com/trustpilot-reviews-api.md).

The first call returns up to 20 reviews, newest first:

```bash title="cURL"
curl "https://api.scrapereviews.com/v1/companies/www.example.com/reviews?stars=1,2&language=en&limit=20" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python title="Python"
import requests

resp = requests.get(
    "https://api.scrapereviews.com/v1/companies/www.example.com/reviews",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"stars": "1,2", "language": "en", "limit": 20},
    timeout=60,
)
resp.raise_for_status()
page = resp.json()
for review in page["data"]:
    print(review["rating"], review["published_at"], review["title"])
```

```javascript title="JavaScript"
const params = new URLSearchParams({ stars: "1,2", language: "en", limit: "20" });
const resp = await fetch("https://api.scrapereviews.com/v1/companies/www.example.com/reviews?" + params, {
  headers: { "X-API-Key": process.env.SCRAPEREVIEWS_API_KEY },
});
if (!resp.ok) throw new Error((await resp.json()).detail.message);
const page = await resp.json();
for (const review of page.data) console.log(review.rating, review.published_at, review.title);
```

The response has three parts: `company` (id, domain, name, TrustScore, review count and Trustpilot URL), `data` (the reviews) and `meta` (pagination and billing). A shortened example:

```json
{
  "company": { "domain": "www.example.com", "name": "Example", "trust_score": 4.2, "review_count": 18342 },
  "data": [
    {
      "id": "6745f0c2a8b1e3d4f5a6b7c8",
      "rating": 2,
      "title": "Slow delivery",
      "text": "The parcel arrived two weeks late...",
      "language": "en",
      "published_at": "2026-11-27T09:14:03Z",
      "experienced_at": "2026-11-20T00:00:00Z",
      "is_verified": true,
      "likes": 3,
      "author": { "id": "u_8f3a1c", "country": "GB", "review_count": 4, "is_verified": false },
      "reply": { "text": "Sorry to hear that...", "published_at": "2026-11-28T10:02:11Z", "updated_at": null },
      "url": "https://www.trustpilot.com/reviews/6745f0c2a8b1e3d4f5a6b7c8"
    }
  ],
  "meta": { "count": 20, "total": 912, "has_more": true, "next_cursor": "eyJ...", "complete": true, "credits_used": 1, "cache_hit": false }
}
```

Authors come back as a stable pseudonym (`u_...`), not a name: you can count repeat reviewers without storing personal data.

## Filters

Every filter is a query parameter of the same route, and they combine:

| Parameter | What it does |
|---|---|
| `stars` | Comma-separated ratings, e.g. `1,2` for the negative reviews only |
| `language` | `all` (default) or an ISO 639-1 code such as `en` or `de` |
| `since`, `until` | Published on or after / on or before a date (`YYYY-MM-DD` or ISO 8601) |
| `verified` | `true` keeps only verified reviews |
| `with_reply` | `true` keeps only reviews the company answered |
| `search` | Full-text filter, up to 100 characters |
| `sort` | `recent` (default) or `relevant` |
| `limit` | Reviews per page, 1 to 20 |

A few examples of what that buys you: `stars=1&with_reply=true` shows how a company handles its worst reviews; `since=2026-11-01` gives you only what is new since your last run; `search=refund` finds every review that mentions refunds.

## Pagination: follow the cursor until it is null

Pagination is cursor-based. Each response carries `meta.next_cursor`; pass it back as `cursor` with **the same filters** to get the next page. When `next_cursor` is `null`, you have everything. Two details matter:

- A page can hold fewer reviews than `limit` while `has_more` is still true, because pages are assembled from several slices. Do not stop on a short page; stop on a null cursor.
- Cursors are signed. A cursor that was edited, or reused with different filters, returns `422 invalid_cursor`.

```python
import requests

def all_reviews(domain, **filters):
    url = f"https://api.scrapereviews.com/v1/companies/{domain}/reviews"
    params = {"limit": 20, **filters}
    while True:
        resp = requests.get(url, headers={"X-API-Key": "YOUR_API_KEY"}, params=params, timeout=60)
        resp.raise_for_status()
        page = resp.json()
        yield from page["data"]
        cursor = page["meta"]["next_cursor"]
        if not cursor:
            return
        params["cursor"] = cursor

for review in all_reviews("www.example.com", language="en", since="2026-01-01"):
    print(review["published_at"], review["rating"])
```

## How the 200-review cap is handled

Behind that loop, the API does the slicing a hand-made scraper would have to do: it splits the list by star rating, then by language, so each slice stays under the 200 reviews Trustpilot shows per filter. For most companies the result is the complete list.

When a single slice is still larger than 200 (say, 5-star English reviews of a very large brand), the API returns the newest 200 of that slice plus the most relevant ones, and sets `meta.complete` to `false`. That flag is your signal: narrow the request with `since` and `until` windows to reach the rest.

With `sort=recent`, the first 200 reviews are the newest overall. After those, results come grouped by star rating (5 to 1) and language, newest first within each group. If you need a strictly chronological feed, sort by `published_at` on your side once you have the pages.

## What it costs

Each successful call costs one credit, whatever the number of reviews on the page; failed calls cost nothing. A page that comes back with zero reviews but a `next_cursor` is also free (`meta.credits_used` is 0). Pricing is $8 per 1,000 calls, so with 20 reviews per page:

- 1,000 reviews: 50 calls, about $0.40
- 10,000 reviews: 500 calls, about $4
- A daily check of new reviews with `since`: usually one call per company

The first 30 calls each month are free, enough to try everything in this article. Details are on [the pricing page](https://scrapereviews.com/pricing.md).

## The SDKs do the loop for you

If you would rather not write the pagination loop, the official SDKs have an iterator. In Python (`pip install scrapereviews-sdk`):

```python
from scrapereviews import ScrapeReviews

client = ScrapeReviews()  # reads SCRAPEREVIEWS_API_KEY

for review in client.companies.iter_reviews("www.example.com", stars=[1, 2], language="en", max_reviews=500):
    print(review.rating, review.published_at, review.title)

print("credits used:", client.credits_used)
```

In JavaScript or TypeScript (`npm install scrapereviews`), `iterReviews` is an async generator with the same filters:

```typescript
import { ScrapeReviews } from "scrapereviews";

const client = new ScrapeReviews({ apiKey: process.env.SCRAPEREVIEWS_API_KEY });
for await (const review of client.companies.iterReviews("www.example.com", { stars: [1, 2], maxReviews: 500 })) {
  console.log(review.rating, review.published_at, review.title);
}
```

Both stop when the cursor runs out or `max_reviews` is reached, and each page is billed as it is fetched, so breaking out of the loop early spends less. See [the SDK docs](https://scrapereviews.com/docs/sdks.md) for installation and error classes.

## Errors worth handling

The ones you will meet in practice: `404 company_not_found` (check the domain on Trustpilot), `429 rate_limit_exceeded` (wait for the `Retry-After` header), `402 insufficient_credits`, and `503 upstream_blocked` or `504 upstream_timeout`, which are temporary and free, so retry with a back-off. Every error body has the same shape, `{"detail": {"error": "...", "message": "..."}}`. The full list is in [the errors reference](https://scrapereviews.com/docs/errors.md).

## Next steps

Once the reviews flow in, the usual next moves are to [export them to CSV](https://scrapereviews.com/blog/export-trustpilot-reviews-to-csv.md) for a spreadsheet or to [run a sentiment analysis in Python](https://scrapereviews.com/blog/review-sentiment-analysis-python.md). If you are weighing other options first, read [our comparison of Trustpilot API alternatives](https://scrapereviews.com/blog/trustpilot-api-alternatives.md), and for the legal side, [whether it is legal to scrape reviews](https://scrapereviews.com/blog/is-it-legal-to-scrape-reviews.md).

ScrapeReviews is an independent service, not affiliated with Trustpilot. [Sign up](https://scrapereviews.com/auth/sign-up) to get 30 free calls a month, no card required, and keep [the documentation](https://scrapereviews.com/docs.md) at hand.

## Frequently asked questions

### Can I get every review of a company on Trustpilot?

Trustpilot shows anonymous visitors at most 200 reviews per filter. The API splits the request by star rating and then by language, so most companies come back complete. When a slice still holds more than 200 reviews, the response says so with meta.complete set to false.

### How much does it cost to scrape 1,000 Trustpilot reviews?

A page holds up to 20 reviews and costs one credit, so 1,000 reviews take 50 calls. At $8 per 1,000 calls that is about $0.40, and the first 30 calls of every month are free.

### Do I need a Trustpilot business account to use this API?

No. ScrapeReviews is an independent service, not affiliated with Trustpilot. It reads the public review pages, so all you need is an API key from your dashboard.

### Why did a page return fewer reviews than the limit I asked for?

Pages are built from several slices of the review list, so one page can hold fewer reviews than the limit while more are still available. Keep requesting with the next cursor until it is null.

## Related guides

- [How to export Trustpilot reviews to CSV (Python, pandas and Node.js)](https://scrapereviews.com/blog/export-trustpilot-reviews-to-csv.md): Export all Trustpilot reviews of a company to a CSV that opens cleanly in Excel and Google Sheets, with Python, pandas or Node.js, and keep it up to date.
- [Trustpilot API alternatives: an honest comparison](https://scrapereviews.com/blog/trustpilot-api-alternatives.md): Trustpilot's official APIs, a DIY scraper, generic scraping platforms or a dedicated reviews API: what each gives you, what it costs and when to pick it.
- [Customer review sentiment analysis in Python: from star ratings to aspects](https://scrapereviews.com/blog/review-sentiment-analysis-python.md): Analyse customer review sentiment in Python: a star-rating baseline, VADER, a transformer model, then an LLM that extracts aspects. With code and costs.
- [Is it legal to scrape reviews? A practical guide to the rules](https://scrapereviews.com/blog/is-it-legal-to-scrape-reviews.md): Is scraping reviews legal? What terms of service, GDPR, database rights, copyright and US case law say, and a checklist for using review data responsibly.
