# TripAdvisor Places Search Scraper

**Use case:** 

Search any city or place on TripAdvisor and export a list of hotels, restaurants and attractions with ratings and details.

## Input

```json
{
  "mode": "discover",
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotel_Review-g187497-d1465497-Reviews-W_Barcelona-Barcelona_Catalonia.html"
    },
    {
      "url": "https://www.tripadvisor.com/Restaurant_Review-g153983-d1029199-Reviews-La_Troje.html"
    },
    {
      "url": "https://www.tripadvisor.com/Attraction_Review-g187497-d190166-Reviews-Basilica_de_la_Sagrada_Familia-Barcelona_Catalonia.html"
    }
  ],
  "maxReviews": 200,
  "reviewLanguages": [
    "all"
  ],
  "minRating": 1,
  "maxRating": 5,
  "searchTerms": [
    "Barcelona"
  ],
  "placeTypes": [
    "hotels",
    "restaurants",
    "attractions"
  ],
  "maxPlaces": 20,
  "discoveryDepth": "quick",
  "includePhotos": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "placeId": {
    "label": "Place ID",
    "format": "integer"
  },
  "placeType": {
    "label": "Type",
    "format": "string"
  },
  "name": {
    "label": "Name",
    "format": "string"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "subratings": {
    "label": "Category subratings",
    "format": "object"
  },
  "numReviews": {
    "label": "Reviews",
    "format": "integer"
  },
  "rank": {
    "label": "Rank",
    "format": "integer"
  },
  "rankOutOf": {
    "label": "Out of",
    "format": "integer"
  },
  "priceRange": {
    "label": "Price range",
    "format": "string"
  },
  "priceLevel": {
    "label": "Price level",
    "format": "string"
  },
  "hotelClass": {
    "label": "Hotel class",
    "format": "number"
  },
  "aiReviewSummary": {
    "label": "AI review summary",
    "format": "object"
  },
  "address": {
    "label": "Address",
    "format": "string"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "amenities": {
    "label": "Amenities",
    "format": "array"
  },
  "photos": {
    "label": "Photos",
    "format": "array"
  },
  "phone": {
    "label": "Phone",
    "format": "string"
  },
  "website": {
    "label": "Website",
    "format": "string"
  },
  "webUrl": {
    "label": "TripAdvisor URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [TripAdvisor Hotel Reviews API](https://apify.com/factden/tripadvisor-hotel-reviews-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/factden/tripadvisor-hotel-reviews-api) to learn more, explore other use cases, and run it yourself.