Tripadvisor reviews API
Get a place’s reviews. Call the Tripadvisor reviews API and get JSON back in one request. 1 credit per call. Failed calls cost nothing.
Request
Exactly one ofplaceUrl or placeId is required. A request that sets both, or none, fails with invalidRequest.
Response
If successful, the response body contains the standard envelope.data contains the place, and results lists a page of its reviews.
The following example is a real response, truncated: each list shows one item and long strings are cut.
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, incrementpage. An empty data.results indicates the last page. The maximum value of page is 500.
Related methods
- Tripadvisor place: Accepts
placeUrl. Returns a place’s rating, ranking and details.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Link to the Tripadvisor place, like https://www.tripadvisor.com/Hotel_Review-g186338-d187591-Reviews-The_Ritz_London.html. Send this or placeId.
Tripadvisor place id, like d187591. Send this or placeUrl.
^(?:[Aa][Ll][Ll]|[A-Za-z]{2}(?:-[A-Za-z]{2})?)$51 <= x <= 5Tripadvisor's own Traveler type filter: families, couples, solo, business or friends. Only reviews from these travelers.
5families, couples, solo, business, friends Tripadvisor's own Time of year filter: marMay, junAug, sepNov or decFeb. Only reviews written in these months of the year.
4marMay, junAug, sepNov, decFeb Tripadvisor's own Sort by: mostRecent (Most recent) or detailed (Detailed reviews, ordered by recency and how much they say).
mostRecent, detailed Page number, starting at 1.
1 <= x <= 500