POST /web/scrape with formats.parse: true and parseParams: {"type": "prebuilt", "parser": "tripadvisor-reviews"}. Read the result in parsed.data, with parsed.type: "tripadvisor-reviews". See the Quickstart for authentication and SDK setup.
Don’t send custom rules with this parser. For CSS selectors and rules, use the Custom parser.
Request
Use an HTTPS Tripadvisor review URL for a hotel, restaurant, or attraction:Hotel_Review-g{geo}-d{id}-Reviews-….html, Restaurant_Review-…, or Attraction_Review-…. Any Tripadvisor country domain works, such as tripadvisor.co.uk or fr.tripadvisor.ca. The parser identifies the place by the number after -d, so the name in the URL does not matter.
-or{N}- after Reviews, as Tripadvisor does: Hotel_Review-g60763-d93450-Reviews-or20-….html starts at the 21st review. pagination.next_offset gives the next value to use.
Reviews in every language are returned, in Tripadvisor’s default order, which is close to newest first but not strictly sorted by date. Other Tripadvisor pages, such as search results, city listings, and single-review ShowUserReviews links, are rejected.
Output
Whenparsed.success is true, the parsed output has this shape:
location.type is Tripadvisor’s place type, such as ACCOMMODATION, EATERY, or ATTRACTION. location.review_count is the total number of reviews Tripadvisor has for the place.
Review fields
text is the full review, in its original language. published_at is when the review was submitted, in ISO 8601 format. visit_month is the month of the stay or visit, as YYYY-MM. subratings holds the category ratings a reviewer gave, such as Value or Service, and is empty when there are none. photo_urls links to each review photo at full size.
owner_response is the reply from the business, or null when there is none. author.id is the reviewer’s Tripadvisor user ID; use it, not name, to identify a reviewer across places. author.url links to the reviewer’s profile, and author.contribution_count is the number of contributions they have made on Tripadvisor.
next_offset is null on the last page. An unknown place returns reviews: [], location: null, and next_offset: null.
Illustrative parsed.data with one review:
Errors and request options
Unsupported URLs fail withINPUT_VALIDATION_ERROR; an unavailable or invalid Tripadvisor response fails with WEBSITE_ACCESS_ERROR. Check parsed.success before reading parsed.data. A failed parse has data: null and can coexist with successful outputs. See timeouts and errors.
This parser fetches Tripadvisor data separately from the rendered page. Content filters and browser actions do not change its results. Browser profiles are unsupported. Caching, timeouts, and zero data retention still apply.