---
title: "Trustpilot Scraper or API: Ratings and Review History"
description: "A Trustpilot scraper vs a 1-credit company-reviews call: the recorded Amazon response, its star breakdown, and 2,340 pages × 1 credit for a full history."
url: https://perceptlayer.com/blog/trustpilot-scraper-vs-api
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Trustpilot Scraper or API: Ratings and Review History

30 Oct 2026 Perceptlayer 7 min read

A Trustpilot scraper is code that opens a company's review pages, pages through them, and pulls the TrustScore, the star counts and each review's text, rating and dates out of the HTML. You keep the fetcher, parser and pager working yourself. The alternative is `GET /v1/trustpilot/company-reviews`, which returns the company profile, its rating breakdown and a page of reviews as JSON for 1 credit a call. This post uses a recorded call for amazon.com to show what each route costs, when you need the reviews at all, and which fits which job.

## Key takeaways

-   One recorded call to `/v1/trustpilot/company-reviews` with `company_domain=amazon.com` returned the company's `trustScore` (1.5), `numberOfReviews` (49830), `numberOfReviewsLast12Months` (9156) and a star breakdown in `filters.reviewStatistics.ratings`.
-   For reputation tracking you often don't need individual reviews: that breakdown says 33,636 of 49,830 reviews are one star, 67.5%, in a single call.
-   The same response reports `totalPages: 2340` at `perPage: 20`, so reading the full history at that page size is 2,340 calls × 1 credit = 2,340 credits.
-   Each review has `id`, `rating`, `title`, `text`, `language`, `dates.publishedDate`, `dates.experiencedDate` and a verification label; the `consumer` object holds the reviewer's name and image, so drop it.
-   Watching 100 companies once a day is 100 calls × 1 credit = 100 credits a day, or 3,000 over 30 days, inside the Starter pack's 10,000.

## What would a Trustpilot scraper have to collect?

A Trustpilot scraper has three collection jobs: the company profile with its score and counts, the review list across however many pages it runs to, and the reviews in every language the company receives. Each needs a parser you maintain, and the review list needs paging logic that survives thousands of pages without gaps or repeats.

The profile is the easy part: one page, a handful of numbers. The review list is where scrapers get expensive. A large company has tens of thousands of reviews, so a full read is thousands of page loads, each one a chance for a timeout, a changed layout or a partial page. You also need to know which page you stopped on, so a failed run can resume rather than restart.

Languages add a third layer. A global company's reviews arrive in many languages, and the recorded Amazon response contains reviews in German and English on the same page. Then come the parts every scraper has: pacing, retries, monitoring for silent failures, and storage that leaves reviewers' personal details out. Read Trustpilot's terms before you build a collector, and don't work around blocks or challenges if you meet them.

## Do you need the reviews, or just the numbers?

Many Trustpilot jobs only need the aggregate numbers, and those come back in one call without paging. A reputation dashboard, a vendor risk check or a competitor benchmark wants the score, the volume, the recent volume and the star split. The company-reviews response carries all four next to the first page of reviews.

The request from the recording:

```bash
curl "https://api.perceptlayer.com/v1/trustpilot/company-reviews?company_domain=amazon.com&languages=all" \
  -H "X-API-Key: $API_KEY"
```

The company block and the statistics, trimmed:

```json
{
  "pageUrl": "https://www.trustpilot.com/review/www.amazon.com?languages=all",
  "businessUnit": {
    "id": "46ad346800006400050092d0",
    "displayName": "Amazon",
    "identifyingName": "www.amazon.com",
    "numberOfReviews": 49830,
    "numberOfReviewsLast12Months": 9156,
    "trustScore": 1.5,
    …
    "isClaimed": true,
    …
    "countryCode": "GB",
    …
    "activity": {
      …
      "replyBehavior": {
        "averageDaysToReply": 0,
        "negativeReviewsWithRepliesCount": 0,
        "replyPercentage": 0,
        "totalNegativeReviewsCount": 7932
      },
      …
    },
    …
  },
  …
  "filters": {
    …
    "pagination": {
      "currentPage": 1,
      "totalPages": 2340,
      "totalResults": 46782,
      "perPage": 20
    },
    …
    "reviewStatistics": {
      …
      "ratings": {
        "total": 49830,
        "one": 33636,
        "two": 3004,
        "three": 1869,
        "four": 2423,
        "five": 8898
      }
    }
  },
  …
}
```

From those fields alone you can compute what most reputation reports show:

| Metric | Field | Amazon, recorded |
| --- | --- | --- |
| Score | `businessUnit.trustScore` | 1.5 |
| All-time volume | `businessUnit.numberOfReviews` | 49,830 |
| Last 12 months | `businessUnit.numberOfReviewsLast12Months` | 9,156 |
| One-star share | `ratings.one` ÷ `ratings.total` | 33,636 ÷ 49,830 = 67.5% |
| Five-star share | `ratings.five` ÷ `ratings.total` | 8,898 ÷ 49,830 = 17.9% |
| Negative reviews with replies | `replyBehavior.negativeReviewsWithRepliesCount` of `totalNegativeReviewsCount` | 0 of 7,932 |

Two counts need care. `ratings.total` and `numberOfReviews` are both 49,830, but `pagination.totalResults` is 46,782. The response doesn't explain the gap, so use the star counts for shares, and `totalResults` for planning how many pages exist.

## What does a single review look like?

Each review is a flat record of what was said, when, and how it was collected, plus a `consumer` object about the person. Keep the first part. In the recording, `consumer` holds a display name, an image URL, a country and the person's review count, none of which a reputation analysis needs. One review from the recording, with `consumer` cut:

```json
{
  "id": "6adaa27868a81eadd98e9c53",
  "filtered": false,
  "isPending": false,
  "text": "Disgusting company run by disgusting and greedy people ",
  "rating": 1,
  "labels": {
    "verification": {
      "isVerified": false,
      …
      "reviewSourceName": "Organic",
      "verificationSource": "invitation",
      "verificationLevel": "not-verified",
      …
    }
  },
  "title": "Disgusting company run by disgusting…",
  "likes": 0,
  "source": "Organic",
  "dates": {
    "experiencedDate": "2026-10-22T00:00:00.000Z",
    "publishedDate": "2026-10-23T01:55:36.000Z"
  },
  …
  "language": "en",
  "isVerified": false
}
```

Note the two dates. `experiencedDate` is a day, `publishedDate` a full timestamp, and they can differ, as here by a day. Use `publishedDate` for "reviews this week" and keep `experiencedDate` if you study when problems happened. The response also has two review arrays, `reviews` and `relevantReviews`, holding different review ids in the recording; decide which one your job reads and deduplicate on `id` if you keep both.

## How does a scraper compare with the endpoints?

A scraper costs engineering time, terms risk and repairs; the endpoints cost a credit per successful call and give you named fields. The table compares them for a recurring job: a weekly or daily read of a list of companies, with an occasional full backfill.

|  | DIY Trustpilot scraper | Trustpilot endpoints |
| --- | --- | --- |
| Finding the company | Search page parser, or a known URL | `company-search` with `query`, or `company_domain` directly |
| Score and counts | Parsed from the profile page | `trustScore`, `numberOfReviews`, `numberOfReviewsLast12Months`, `ratings` |
| Reviews | Parsed page by page | `reviews[]` with `id`, `rating`, `title`, `text`, `language`, `dates` |
| Filters | Whatever the page lets you drive | `rating`, `verified`, `with_replies`, `query`, `languages`, `date_posted`, `sort` (relevance or recency) |
| Paging | Your pager, your resume logic | `page` and `per_page`, with `currentPage` and `totalPages` in the response |
| Languages | Every language variant you choose to fetch | `languages` and `locale` parameters; `language` on each review |
| Personal data | Mixed into the HTML you store | One `consumer` object to drop |
| Failures | Yours to detect | HTTP status and error code; a failed call costs 0 credits |
| Cost | Hosting and your time | 1 credit per successful call |

### What does a backfill cost, and what does a daily watch cost?

The two jobs have very different bills. A backfill reads every page once: the recorded Amazon response says `totalPages: 2340` at `perPage: 20`, so the full history at that page size is 2,340 calls × 1 credit = 2,340 credits, within the Starter pack's 10,000. At 1 request a second on a free account that takes about 39 minutes; at 5 a second, under 8. The endpoint also takes a `per_page` parameter, so check in the playground how `totalPages` changes before you plan a large backfill.

A watch is cheaper per company. One call a day returns the current score and star counts plus the first page of reviews; for most monitoring that's the whole job. 100 companies × 1 call × 1 credit = 100 credits a day, or 3,000 credits over 30 days. A smaller list costs less: 30 companies a day is 900 credits over 30 days. The 100 free credits on signup cover its first 3 days, enough to test the watch. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how they're debited.

## How do you read the numbers and reviews in code?

Read the statistics block for the scorecard, then map each review to a record without `consumer`. This JavaScript runs on Node 18 or later, uses only fields that appear in the recording, and prints one summary line per company plus the reviews you'd store:

```javascript
const API = "https://api.perceptlayer.com/v1/trustpilot/company-reviews";
const companies = ["amazon.com"];

for (const domain of companies) {
  const url = `${API}?company_domain=${encodeURIComponent(domain)}&languages=all`;
  const res = await fetch(url, { headers: { "X-API-Key": process.env.API_KEY } });
  if (!res.ok) {
    console.error(domain, res.status, await res.text());
    continue;
  }
  const body = await res.json();
  const unit = body.businessUnit ?? {};
  const ratings = body.filters?.reviewStatistics?.ratings ?? {};
  const oneStarShare = ratings.total ? ratings.one / ratings.total : null;

  console.log(domain, {
    trustScore: unit.trustScore,
    reviews: unit.numberOfReviews,
    last12Months: unit.numberOfReviewsLast12Months,
    oneStarShare,
    totalPages: body.filters?.pagination?.totalPages,
  });

  // The consumer object identifies the reviewer, so it is never copied.
  const rows = (body.reviews ?? []).map((r) => ({
    id: r.id,
    rating: r.rating,
    title: r.title,
    text: r.text,
    language: r.language,
    published: r.dates?.publishedDate,
    experienced: r.dates?.experiencedDate,
    verification: r.labels?.verification?.verificationLevel,
  }));
  console.log(rows);
}
```

Save it as `reviews.mjs` and run `API_KEY=sk_live_... node reviews.mjs`. A failed call costs nothing and returns a JSON error code from the [errors docs](https://docs.perceptlayer.com/errors); a 429 carries a `Retry-After` header with the seconds to wait.

## Which route fits which job?

Choose by what you need and how often. A scraper's cost is upkeep; the endpoints' cost is calls, and for score tracking that's one call per company. These verdicts assume the job repeats.

-   **Reputation scorecard for your company and competitors**: one `company-reviews` call per company per period, storing `trustScore`, `numberOfReviews`, `numberOfReviewsLast12Months` and the five star counts. No paging.
-   **Vendor or partner checks**: the same call, plus `isClaimed` and `replyBehavior` to see whether the company answers negative reviews.
-   **Complaint analysis**: page through reviews with `rating` and `date_posted` set to the window you care about, group the `text` by theme, and split by `language`.
-   **A full history for research**: backfill once at the cost of `totalPages` × 1 credit, then switch to a daily watch with `sort=recency`.
-   **Building a list of companies in a sector**: `GET /v1/trustpilot/businesses` takes a `category`, and `GET /v1/trustpilot/categories` takes no parameters; run both in the playground to see whether a category from one works in the other.
-   **An agent that answers "can I trust this shop?"**: connect the MCP server, as the [AI agents docs](https://docs.perceptlayer.com/ai-agents) describe, so the agent calls `company-reviews` and reads the statistics.

For the same choice on other review sources, see [Booking.com Reviews API](https://perceptlayer.com/blog/booking-com-reviews-api-json) and [Google Maps Scraper or Places Data API](https://perceptlayer.com/blog/google-maps-scraper-vs-api); the [reviews APIs](https://perceptlayer.com/verticals/reviews) page lists the rest. To check the fields for a company you track, run `company-reviews` with its domain in the playground on the [Trustpilot API page](https://perceptlayer.com/apis/trustpilot), then [get a free API key](https://perceptlayer.com/signup).

## APIs in this post

-   [Trustpilot **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/trustpilot)

## Frequently asked questions

### Is scraping Trustpilot allowed?

That depends on Trustpilot's terms, how you store and use the data, and the law where you operate, so read the terms and take legal advice for commercial use. Don't get around blocks or challenges. Scores, counts and review text are lower risk than personal data; leave reviewers' names, images and profile details out of anything you keep.

### How many calls does it take to read all of a company's reviews?

The response tells you: `filters.pagination.totalPages`. The recorded Amazon call reports 2,340 pages at `perPage: 20` for 46,782 results, so a full read at that page size is 2,340 calls and 2,340 credits. Set `page` to move through them, and store the last page you finished so a failed run can resume.

### Can I get the TrustScore without paging through reviews?

Yes. The first call for a company returns `businessUnit.trustScore`, `numberOfReviews`, `numberOfReviewsLast12Months` and the five star counts in `filters.reviewStatistics.ratings`, alongside the first page of reviews. For a scorecard that one call is enough, at 1 credit per company. `GET /v1/trustpilot/company-details` takes `company_domain` too, if you only want the profile.

### Do the reviews include personal data?

Each review in the recording has a `consumer` object with the reviewer's display name, image URL, country and review count. Drop it before storage; the review's `id`, `rating`, `text`, `language` and `dates` are enough for analysis. Review text can still mention people, so treat free text with the same care.

### Does a failed Trustpilot call cost credits?

No. Only a successful response debits credits. A failed call returns an HTTP status and a JSON error with a `code`, a `message` and a `request_id`, plus `X-Credits-Used: 0`. The one case to watch is a client timeout: the request may have succeeded and been billed, so log the page you asked for before retrying.

trustpilot reviews scraping reputation monitoring trustscore

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
    
    ## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
    
    A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 8 min read
    
    ## [Yelp Scraper or API: Reviews Without the Upkeep](https://perceptlayer.com/blog/yelp-scraper-vs-api)
    
    A Yelp scraper vs three 1-credit endpoints: a recorded Gary Danko search whose alias feeds the reviews call, with rating, text, created\_at and next\_after.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
    
    ## [Google Maps Scraper or Places Data API: What You Get](https://perceptlayer.com/blog/google-maps-scraper-vs-api)
    
    Compare building a Google Maps scraper with the official Places API and place endpoints at 1 credit a call: fields, upkeep, terms and a verdict per use case.
