Plugins

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.

post/travel/tripadvisor

Request

  • Base URL: https://api.scrapeunblocker.com
  • URL: https://api.scrapeunblocker.com/travel/tripadvisor
  • Auth: API key in header x-scrapeunblocker-key

Query parameters

urlstring required

TripAdvisor list URL (Restaurants / Hotels / Attractions), e.g. https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html

max_resultsinteger

How many places to collect across pages (~30 per page, max 1020). TripAdvisor renders slowly, so large values take a while.

pageinteger

1-based results page to start from.

proxy_countrystring nullable

Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE'). Leave blank to let the API pick.

Response

JSON with a places array plus totals.

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.