Skip to main content
POST
Scrape a Trustpilot company's reviews
Scrape a Trustpilot company’s reviews. The company or companyDomain is identified by its URL or companyDomain.

Request

Exactly one of companyUrl or companyDomain is required. A request that sets both, or none, fails with invalidRequest.

Response

If successful, the response body contains the standard envelope. data.results[] contains a page of the company’s reviews, each with its rating, title, text and date. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

Results are paginated. To retrieve the next page, increment page. An empty data.results indicates the last page. The maximum value of page is 10.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

maxTextLength
integer

Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.

Required range: x >= 1

Body

application/json
companyUrl
string

Link to the Trustpilot company, like https://www.trustpilot.com/review/stripe.com. Send this or companyDomain.

companyDomain
string

Trustpilot company domain, like stripe.com. Send this or companyUrl.

ratings
integer[]

Only reviews with these star ratings, 1 to 5. Empty means every rating.

Maximum array length: 5
Required range: 1 <= x <= 5
language
string
default:all
Pattern: ^(?:[Aa][Ll][Ll]|[A-Za-z]{2})$
datePublished
enum<string>

Only reviews published in the last 30 days, 3, 6 or 12 months.

Available options:
last30Days,
last3Months,
last6Months,
last12Months
verifiedOnly
boolean
default:false

Only reviews Trustpilot marks as verified.

Only reviews that mention this word or phrase.

Required string length: 1 - 100
page
integer
default:1

Page number, starting at 1. Trustpilot shows 10 pages of 20 reviews without an account; narrow with ratings, language, datePublished or search to reach older reviews.

Required range: 1 <= x <= 10

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required