Get current user
Automatically get current user on trustpilot.com. Report which Trustpilot account this browser is signed in as: email and display name from account settings. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Trustpilot scripts.
Input
None
Output
loggedIn requiredemail optionaldisplayName optionalFAQ
Get Trustpilot company profile
Get a Trustpilot company profile: TrustScore, stars, review count, full 1-5 star rating distribution, categories, breadcrumb, contact info, claim status and reply behavior. Input is the domain key (e.g. "amazon.com"); the resolved identifyingName is returned (may differ via redirect).
Get Trustpilot similar companies
Get the companies Trustpilot lists as similar/competitors on a business profile (the "People also looked at" module). Returns each with its identifyingName (domain key), TrustScore, stars, review count and logo.
Get Trustpilot company reviews
Get one page (20) of a company's Trustpilot reviews: author, rating, title, text, dates, likes, verification and the company's reply. Supports the site's own filters as args (page, sort, stars, language, keyword search, verified, date range). Defaults to returning reviews in every language so none are silently filtered out by locale.
