curl --request POST \
--url https://api.scrapeunblocker.com/travel/tripadvisor \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/travel/tripadvisor"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape a TripAdvisor list (restaurants / hotels / attractions)
Given a TripAdvisor list url (Restaurants, Hotels or Attractions for a city/area), returns the places as JSON: name, url, image, rating, reviewCount, priceRange, cuisine, phone, address, country and coordinates. Paginates through TripAdvisor’s -oaN- pages up to max_results. Data is read from TripAdvisor’s schema.org ld+json, which is more stable than its HTML.
curl --request POST \
--url https://api.scrapeunblocker.com/travel/tripadvisor \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/travel/tripadvisor"
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', 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 list URL (Restaurants / Hotels / Attractions), e.g. https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html
How many places to collect across pages (~30 per page, max 1020). TripAdvisor renders slowly, so large values take a while.
1 <= x <= 10201-based results page to start from.
1 <= x <= 34Exit-IP country (ISO-2). Leave blank for a smart exit.
Response
JSON with a places array plus totals.

