# Tripadvisor Reviews Spider (`getdataforme/tripadvisor-reviews-spider`) Actor

Extract detailed reviews from Tripadvisor attraction pages with this Apify Actor. It scrapes ratings, text, dates, and reviewer info, supporting multiple URLs for efficient batch processing....

- **URL**: https://apify.com/getdataforme/tripadvisor-reviews-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** AI, Automation, E-commerce
- **Security:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Description

Extract detailed reviews from Tripadvisor attraction pages with this Apify Actor. It scrapes ratings, text, dates, and reviewer info, supporting multiple URLs for efficient batch processing....

***

## Tripadvisor Reviews Spider

The Tripadvisor Reviews Spider is a powerful Apify Actor designed to scrape and extract detailed reviews from Tripadvisor attraction pages. It provides structured, high-quality data on user experiences, ratings, and feedback, enabling businesses and researchers to gain valuable insights into customer sentiment. By automating the collection of reviews, this Actor saves time and ensures data accuracy for analysis and decision-making.

### Features

- **Comprehensive Review Extraction**: Scrapes full review details including text, ratings, dates, and reviewer information from Tripadvisor pages.
- **Multi-URL Support**: Handles multiple URLs in a single run, allowing efficient batch processing of various attractions.
- **High Reliability**: Built with robust error handling to manage dynamic web changes and ensure consistent data retrieval.
- **Structured Output**: Delivers clean, JSON-formatted data ready for integration into databases, analytics tools, or reports.
- **Fast and Scalable**: Optimized for performance, processing reviews quickly without compromising on depth or accuracy.
- **Customizable Inputs**: Flexible URL configuration to target specific Tripadvisor pages for tailored scraping needs.
- **No Coding Required**: User-friendly interface on Apify Store for easy setup and execution.

### Input Parameters

| Parameter | Type   | Required | Description | Example |
|-----------|--------|----------|-------------|---------|
| Urls      | array  | Yes      | An array of Tripadvisor URLs to scrape reviews from. Each URL must be a valid HTTP/HTTPS link to an attraction review page. Minimum 1 URL required. | \["https://www.tripadvisor.com/AttractionProductReview-g297390-d14080946-or10-Small_Group_Explore_Angkor_Wat_Sunrise_Tour_with_Guide_from_Siem_Reap-Siem_Re.html"] |

### Example Usage

To run the Actor, provide input in JSON format with the URLs array. Here's an 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",
    "https://www.tripadvisor.com/Attraction_Review-g297390-d14080946-Reviews-Angkor_Wat-Siem_Reap_Siem_Reap_Province.html"
  ]
}
```

Example output (JSON array of review objects):

```json
[
  {
    "reviewerName": "John Doe",
    "rating": 5,
    "reviewText": "Amazing experience at sunrise! The guide was knowledgeable and the tour was well-organized.",
    "reviewDate": "2023-10-15",
    "attractionName": "Angkor Wat Sunrise Tour",
    "url": "https://www.tripadvisor.com/AttractionProductReview-g297390-d14080946-or10-Small_Group_Explore_Angkor_Wat_Sunrise_Tour_with_Guide_from_Siem_Reap-Siem_Re.html"
  },
  {
    "reviewerName": "Jane Smith",
    "rating": 4,
    "reviewText": "Great tour, but a bit crowded. Still highly recommend for the views.",
    "reviewDate": "2023-09-20",
    "attractionName": "Angkor Wat",
    "url": "https://www.tripadvisor.com/Attraction_Review-g297390-d14080946-Reviews-Angkor_Wat-Siem_Reap_Siem_Reap_Province.html"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Analyze customer feedback to understand trends and preferences in tourism.
- **Competitive Intelligence**: Compare reviews across similar attractions to benchmark performance.
- **Price Monitoring**: Track sentiment alongside pricing data for dynamic pricing strategies.
- **Content Aggregation**: Collect reviews for content creation, such as blog posts or marketing materials.
- **Academic Research**: Gather data for studies on user experiences in travel and hospitality.
- **Business Automation**: Integrate review data into dashboards for real-time monitoring of brand reputation.

### Installation and Usage

1. Search for "Tripadvisor Reviews Spider" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs a JSON array of objects, each representing a single review. Key fields include:

- `reviewerName`: The name of the reviewer (string).
- `rating`: Numerical rating out of 5 (integer).
- `reviewText`: The full text of the review (string).
- `reviewDate`: Date of the review in YYYY-MM-DD format (string).
- `attractionName`: Name of the attraction (string).
- `url`: The source URL of the review (string).

This structured format ensures easy parsing and integration with other tools.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

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

Specifies the maximum number of items to process.

## 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": 10
}
```

# 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 = {
    "itemLimit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/tripadvisor-reviews-spider").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 = { "itemLimit": 10 }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/tripadvisor-reviews-spider").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 '{
  "itemLimit": 10
}' |
apify call getdataforme/tripadvisor-reviews-spider --silent --output-dataset

```

## MCP server setup

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

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/TTOlEaF89hgFp3fqd/builds/a7dJx91DuLHKOHBdJ/openapi.json
