# TripAdvisor Review Scraper (`getdataforme/tripadvisor-review-scraper`) Actor

The TripAdvisor Review Scraper enables you to extract detailed review data from TripAdvisor establishments based on location queries. This powerful tool collects comprehensive review information including ratings, detailed feedback, and granular scoring across multiple categories.

- **URL**: https://apify.com/getdataforme/tripadvisor-review-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Automation, Lead generation, Real estate
- **Stats:** 8 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## 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 Review Scraper Actor

The TripAdvisor Review Scraper Actor enables you to extract detailed review data from TripAdvisor establishments based on location queries. This powerful tool collects comprehensive review information including ratings, detailed feedback, and granular scoring across multiple categories.

### Input Configuration

The actor accepts a simple location-based query:

```json
{
    "query": "kathmandu"
}
```

### Output Data Structure

The scraper returns detailed review data in a structured JSON format:

```json
{
    "name": "Chez Caroline",                    // Establishment name
    "url": "https://www.tripadvisor.com/...",  // Full TripAdvisor URL
    "username": "SeattleSal",                  // Reviewer's username
    "title": "What happened to our server??",   // Review title
    "text": "I had heard and read...",         // Full review content
    "language": "en",                          // Review language
    "rating": 2,                               // Overall rating (1-5)
    "createdDate": "2021-10-29",              // Review creation date
    "publishedDate": "2021-10-28",            // Review publication date
    "additionalRating": [                      // Detailed category ratings
        {
            "rating": 2,
            "ratingLabel": "Value"
        },
        {
            "rating": 1,
            "ratingLabel": "Service"
        },
        {
            "rating": 3,
            "ratingLabel": "Food"
        }
    ]
}
```

### Key Data Points Collected

1. **Basic Information**
   - Establishment name
   - TripAdvisor URL
   - Reviewer username

2. **Review Content**
   - Review title
   - Full review text
   - Review language
   - Overall rating

3. **Temporal Data**
   - Creation date
   - Publication date

4. **Detailed Ratings**
   - Value rating
   - Service rating
   - Food rating
   - Other category-specific ratings

### Use Cases

#### Restaurant Management

- Track service quality metrics
- Monitor food quality feedback
- Analyze value perception
- Identify service improvement areas

#### Market Analysis

- Compare ratings across competitors
- Track customer satisfaction trends
- Analyze price-value relationships
- Monitor service standards

#### Customer Experience

- Identify common pain points
- Track satisfaction across categories
- Monitor service consistency
- Analyze customer expectations

#### Business Intelligence

- Generate competitive insights
- Track performance metrics
- Identify areas for improvement
- Monitor brand perception

### Features

1. **Comprehensive Review Extraction**
   - Complete review text
   - Multiple rating dimensions
   - Temporal data
   - Reviewer information

2. **Data Processing**
   - Language detection
   - Date standardization
   - Rating aggregation
   - Category classification

3. **Output Options**
   - JSON format
   - CSV export
   - Excel sheets
   - XML structure
   - HTML reports

### Best Practices

1. **Query Optimization**
   - Use specific location names
   - Include area identifiers
   - Consider regional variations
   - Use proper spelling

2. **Data Collection**
   - Regular data updates
   - Consistent monitoring
   - Historical tracking
   - Trend analysis

### Legal Considerations

This scraper collects publicly available TripAdvisor data. Users should:

- Comply with TripAdvisor's terms of service
- Handle personal data according to GDPR and local regulations
- Use data ethically and responsibly
- Seek legal counsel for specific use cases

### Technical Details

- Automatic rate limiting
- Proxy support
- Error handling
- Retry mechanisms
- Data validation
- Language detection
- Date normalization

### Support and Maintenance

The actor is regularly updated to ensure:

- Compatibility with TripAdvisor's platform
- Optimal performance
- Data accuracy
- New feature implementation

For support, customization, or questions, contact our team through the Apify platform.

# Actor input Schema

## `urls` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

## `itemLimit` (type: `integer`):

Specifies the maximum number of items to process.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.tripadvisor.com/AttractionProductReview-g297390-d14080946-or10-Small_Group_Explore_Angkor_Wat_Sunrise_Tour_with_Guide_from_Siem_Reap-Siem_Re.html"
  ],
  "itemLimit": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "urls": [
        "https://www.tripadvisor.com/AttractionProductReview-g297390-d14080946-or10-Small_Group_Explore_Angkor_Wat_Sunrise_Tour_with_Guide_from_Siem_Reap-Siem_Re.html"
    ],
    "itemLimit": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/tripadvisor-review-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 = {
    "urls": ["https://www.tripadvisor.com/AttractionProductReview-g297390-d14080946-or10-Small_Group_Explore_Angkor_Wat_Sunrise_Tour_with_Guide_from_Siem_Reap-Siem_Re.html"],
    "itemLimit": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/tripadvisor-review-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 '{
  "urls": [
    "https://www.tripadvisor.com/AttractionProductReview-g297390-d14080946-or10-Small_Group_Explore_Angkor_Wat_Sunrise_Tour_with_Guide_from_Siem_Reap-Siem_Re.html"
  ],
  "itemLimit": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/tripadvisor-review-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/tripadvisor-review-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/O0yLMU5NDiL7YhIue/builds/k0T5AbaZoNeTw7JTW/openapi.json
