curl --request POST \
--url https://api.scrapeunblocker.com/travel/tripadvisor-reviews \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/travel/tripadvisor-reviews"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/travel/tripadvisor-reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape TripAdvisor reviews (hotels / restaurants / attractions)
Given a TripAdvisor place review url (Hotel_Review, Restaurant_Review, Attraction_Review or AttractionProductReview, any TripAdvisor site) or a location_id, returns the place summary (name, type, rating, reviewsCount, ratingHistogram, subratings, address, coordinates, phone, website) and its reviews: title, text, rating, publishedDate, travelDate, tripType, language, helpfulVotes, user, subratings, photos and ownerResponse. Newest first; pages through TripAdvisor’s review pages up to max_reviews. Pick the review language with language and cut off old reviews with since. Billed one unit per review page fetched (pagesFetched).
curl --request POST \
--url https://api.scrapeunblocker.com/travel/tripadvisor-reviews \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/travel/tripadvisor-reviews"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/travel/tripadvisor-reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
TripAdvisor place review page on any TripAdvisor site: Hotel_Review, Restaurant_Review, Attraction_Review or AttractionProductReview, e.g. https://www.tripadvisor.com/Hotel_Review-g60763-d93589-Reviews-The_Michelangelo_New_York-New_York_City_New_York.html. Pass this or location_id.
TripAdvisor location id (the digits after -d in a place URL, e.g. 93589). Pass this or url.
x >= 1How many reviews to collect across pages (1-200). TripAdvisor shows 10 reviews per page (15 for restaurants); each page is one billed unit.
1 <= x <= 2001-based review page to start from (10 reviews per page, 15 for restaurants). Use the nextPage of a previous response to continue.
1 <= x <= 500Review language, which TripAdvisor ties to its site: en, de, fr, it, es, pt, nl, ja, ko, ru, sv, tr, da. Default: the language of the URL's site (tripadvisor.com = en), or - when that site lists no reviews for the place - the place's most-reviewed of these languages. Reviews written in other languages appear machine-translated, flagged by isMachineTranslated and originalLanguage.
Only reviews published on or after this date (YYYY-MM-DD). Stops paging once older reviews start, so it also saves pages.
Exit-IP country (ISO-2). Leave blank: a pinned country cannot use the warm browser windows and is much slower.
Response
JSON with place, a reviews array, totals and nextPage.

