# TripAdvisor Scraper - Hotels, Restaurants & Attractions (`rupom888/tripadvisor-scraper`) Actor

- **URL**: https://apify.com/rupom888/tripadvisor-scraper.md
- **Developed by:** [Syed Rupom](https://apify.com/rupom888) (community)
- **Categories:** Travel, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TripAdvisor Scraper — Hotels, Restaurants & Attractions

Extract rich data from TripAdvisor at scale. Scrape hotels, restaurants, and attractions by city/region or direct URL. Returns 30+ fields per result including ratings, reviews, prices, amenities, photos, coordinates, hours, and more.

### Features

- **Multi-type**: Hotels, Restaurants, Attractions, Vacation Rentals
- **Rich data**: Rating breakdown (cleanliness/service/value/location), awards (Travelers' Choice), photos, review snippets, review tags
- **Contacts**: Phone, website, email (with `Scrape Detail Pages` enabled)
- **Location**: Coordinates (lat/lng), structured address (street, city, region, postal, country)
- **Hours**: Operating schedule for restaurants and attractions
- **Pagination**: Automatically fetches multiple pages to reach your result limit
- **Direct URLs**: Pass any TripAdvisor list or search URL via `startUrls`
- **Filtering**: Min rating, min stars, amenity keywords, sort order

### Output Fields

| Field | Description |
|-------|-------------|
| `item_id` | TripAdvisor location ID |
| `type` | hotel / restaurant / attraction |
| `name` | Property name |
| `star_rating` | Hotel class (1–5 stars) |
| `guest_rating` | TripAdvisor bubble rating (1.0–5.0) |
| `review_count` | Total review count |
| `ranking` | TripAdvisor ranking string |
| `nightly_price` | Price per night / cover charge |
| `price_tier` | Price category ($, $$, $$$, $$$$) |
| `url` | TripAdvisor page URL |
| `address` | Full address string |
| `address_structured` | `{street, city, region, postal, country}` |
| `latitude` | GPS latitude |
| `longitude` | GPS longitude |
| `phone` | Phone number (requires scrapeDetails=true) |
| `website` | Property website (requires scrapeDetails=true) |
| `amenities` | Array of amenity names (hotels) |
| `cuisines` | Cuisine types (restaurants) |
| `meals` | Meal types served (restaurants) |
| `hours` | Operating hours by day |
| `awards` | Travelers' Choice, Certificate of Excellence, etc. |
| `rating_breakdown` | Cleanliness, Service, Value, Location, Sleep Quality |
| `photos` | Array of photo URLs (up to 10) |
| `review_snippets` | Recent review excerpts |
| `review_tags` | Common review topics with mention counts |
| `description` | Property description |

### Input

```json
{
  "location": ["Atlanta, Georgia", "Miami, Florida"],
  "placeType": "hotel",
  "resultsWanted": 100,
  "minRating": 4.0,
  "minStars": 3,
  "amenities": ["pool", "spa"],
  "sort": "GUEST_RATING",
  "scrapeDetails": false,
  "checkIn": "2026-08-01",
  "checkOut": "2026-08-03",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

### Use Cases

- Hotel research with specific amenity filters
- Restaurant discovery with cuisine and hours
- Travel content and guide creation
- Competitive pricing analysis
- Hospitality lead generation
- Price and rating monitoring over time

### Proxy

Residential proxies required — datacenter IPs are blocked by TripAdvisor.

# Actor input Schema

## `location` (type: `array`):

City/region names to search. E.g. \['Atlanta, Georgia', 'Miami, Florida']

## `startUrls` (type: `array`):

Direct TripAdvisor URLs (hotel list, restaurant list, attraction list, or individual pages). Overrides Location when provided.

## `placeType` (type: `string`):

What type of places to scrape.

## `checkIn` (type: `string`):

Check-in date for hotel price lookup (YYYY-MM-DD).

## `checkOut` (type: `string`):

Check-out date (YYYY-MM-DD).

## `resultsWanted` (type: `integer`):

Max results per location (across all pages). Use deepSearch=true to get 3000+ results by scraping neighborhood sub-areas.

## `deepSearch` (type: `boolean`):

When enabled, discovers neighborhood sub-areas within the city and scrapes each one separately, then aggregates results. Bypasses TripAdvisor's ~1000 result limit per query. Slower but returns many more results.

## `minRating` (type: `number`):

Minimum bubble rating (0â€“5). E.g. 4.0 filters to 4+ bubble rated places.

## `minStars` (type: `integer`):

Minimum hotel star class (0 = any, 3 = 3-star+, etc.).

## `amenities` (type: `array`):

Filter hotels by amenity keywords: hot\_tub, pool, gym, spa, breakfast, pet\_friendly, parking, wifi, bar, restaurant.

## `sort` (type: `string`):

Sort results by.

## `scrapeDetails` (type: `boolean`):

Visit each result's detail page to extract phone, website, coordinates, hours, rating breakdown, and more photos. Slower but much richer data.

## `language` (type: `string`):

Interface language code (en = English, es = Spanish, fr = French, de = German, etc.).

## `proxyConfiguration` (type: `object`):

Residential US proxy recommended for reliable access.

## Actor input object example

```json
{
  "location": [
    "Atlanta, Georgia"
  ],
  "startUrls": [
    {
      "url": "https://www.tripadvisor.com/Hotels-g60898-Atlanta_Georgia-Hotels.html"
    }
  ],
  "placeType": "hotel",
  "checkIn": "2026-08-01",
  "checkOut": "2026-08-03",
  "resultsWanted": 10,
  "deepSearch": false,
  "minRating": 0,
  "minStars": 0,
  "amenities": [
    "pool",
    "spa"
  ],
  "sort": "RECOMMENDED",
  "scrapeDetails": false,
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "BUYPROXIES94952"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": [
        "Atlanta, Georgia"
    ],
    "resultsWanted": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "BUYPROXIES94952"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rupom888/tripadvisor-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "location": ["Atlanta, Georgia"],
    "resultsWanted": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["BUYPROXIES94952"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rupom888/tripadvisor-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": [
    "Atlanta, Georgia"
  ],
  "resultsWanted": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "BUYPROXIES94952"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call rupom888/tripadvisor-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rupom888/tripadvisor-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8DPHDhUNlfMXryjGn/builds/WpWwJjthBIUWmdiLj/openapi.json
