# TripAdvisor Reviews Scraper (`easyapi/tripadvisor-reviews-scraper`) Actor

Effortlessly extract detailed TripAdvisor hotel reviews with comprehensive data including ratings, user information, and detailed feedback. Perfect for market research, competitor analysis, and hospitality insights. 🏨✨

- **URL**: https://apify.com/easyapi/tripadvisor-reviews-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Travel
- **Features:** Limited permissions
- **Stats:** 19 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

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

## TripAdvisor Reviews Scraper 🏨

Extract detailed hotel reviews from TripAdvisor effortlessly! This actor helps you scrape comprehensive review data including ratings, user information, and detailed feedback.

### Features ✨

- 🔍 Scrape reviews from any TripAdvisor hotel page
- ⭐ Get detailed ratings (overall + subcategories)
- 👤 Collect reviewer information and profile details
- 📅 Include stay dates and trip types
- 🌍 Support for multiple languages
- 📊 Export data in structured data format

### Usage 💡

Simply provide the TripAdvisor hotel review URL, and optionally set the maximum number of reviews you want to collect. The actor will handle everything else!

### Output Data Structure 📋

The actor provides rich, structured data for each review including:

- Review content, title, and ratings
- Detailed subcategory ratings (cleanliness, location, service, etc.)
- User information (name, location, verification status)
- Trip details (stay date, trip type)
- Hotel information
- Review metadata (dates, helpful votes, language)

### Use Cases 🎯

- Market research and competitor analysis
- Hotel reputation management
- Customer sentiment analysis
- Travel industry insights
- Data analysis for hospitality sector

#### Input Example

A full explanation of an input example in JSON.

```
 {
    "reviewUrl": "https://www.tripadvisor.com/Hotel_Review-g60763-d7255276-Reviews-The_Knickerbocker-New_York_City_New_York.html",
    "maxItems": 15
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"id": 979050509,
		"url": "/ShowUserReviews-g60763-d7255276-r979050509-The_Knickerbocker-New_York_City_New_York.html",
		"hotel": {
			"id": 7255276,
			"name": "The Knickerbocker",
			"type": "ACCOMMODATION"
		},
		"review": {
			"title": "Comfortable and great location",
			"content": "Lovely location, comfortable rooms, great sheets and showers. Rooms could be bigger and reception area a little uninviting. Staff could be more smiley! Breakfast excellent but ridiculously expensive . ",
			"rating": 4,
			"language": "en",
			"originalLanguage": "en",
			"createdDate": "2024-11-07",
			"publishedDate": "2024-11-07",
			"helpfulVotes": 0
		},
		"detailedRatings": {
			"value": 4,
			"rooms": 4,
			"location": 5,
			"cleanliness": 5,
			"service": 5,
			"sleep quality": 4
		},
		"user": {
			"id": "DF9B9AF95A7EC733DFDB3228C101FA4C",
			"name": "Fsud69",
			"username": "Fsud69",
			"isVerified": false,
			"avatar": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/1a/f6/f6/0d/default-avatar-2020-34.jpg?w=100&h=100&s=1",
			"hometown": "London, United Kingdom",
			"profileUrl": "/Profile/Fsud69"
		},
		"trip": {
			"stayDate": "2024-10-31",
			"type": "NONE"
		},
		"platform": "OTHER",
		"domain": "tripadvisor.com",
		"photos": []
	},
    ...
]
```

### Related Actors

- 🏨 [TripAdvisor Hotels Scraper](https://apify.com/easyapi/tripadvisor-hotels-scraper) - Extract detailed hotel information including ratings, pricing and amenities from TripAdvisor
- 🏨 [Booking Search Scraper](https://apify.com/easyapi/booking-search-scraper) - Scrape comprehensive hotel data from Booking.com search results
- 🏨 [Booking Reviews Scraper](https://apify.com/easyapi/booking-reviews-scraper) - Extract detailed guest reviews and ratings from Booking.com hotel pages
- 🏨 [Hotels.com Scraper](https://apify.com/easyapi/hotels-com-scraper) - Scrape detailed hotel listings including prices, ratings and amenities
- 🏨 [Hotels.com Review Scraper](https://apify.com/easyapi/hotels-com-review-scraper) - Extract comprehensive hotel reviews and ratings from Hotels.com
- 🏨 [Hostelworld Scraper](https://apify.com/easyapi/hostelworld-scraper) - Collect detailed hostel information including prices, ratings and facilities
- 🏨 [Hostelworld Reviews Scraper](https://apify.com/easyapi/hostelworld-reviews-scraper) - Extract detailed hostel reviews and ratings from Hostelworld.com
- 🛍️ [Amazon Reviews Scraper](https://apify.com/easyapi/amazon-reviews-scraper) - Extract detailed product reviews and ratings from Amazon
- 🛍️ [Etsy Reviews Scraper](https://apify.com/easyapi/etsy-reviews-scraper) - Scrape comprehensive product reviews from Etsy marketplace
- 🎮 [Steam Reviews Scraper](https://apify.com/easyapi/steam-reviews-scraper) - Extract detailed game reviews and user feedback from Steam
- 📱 [App Store Reviews Scraper](https://apify.com/easyapi/app-store-reviews-scraper) - Collect user reviews and ratings from Apple App Store
- 🛍️ [Myntra Reviews Scraper](https://apify.com/easyapi/myntra-reviews-scraper) - Extract detailed product reviews from Myntra.com
- 🍽️ [Zomato Restaurant Reviews Scraper](https://apify.com/easyapi/zomato-restaurant-reviews-scraper) - Scrape restaurant reviews and ratings from Zomato
- 🎬 [IMDB Reviews Scraper](https://apify.com/easyapi/imdb-reviews-scraper) - Extract detailed movie reviews and ratings from IMDB
- 📚 [Goodreads Review Scraper](https://apify.com/easyapi/goodreads-review-scraper) - Collect comprehensive book reviews and ratings from Goodreads

# Actor input Schema

## `reviewUrl` (type: `string`):

URL of the TripAdvisor hotel review page

## `maxItems` (type: `integer`):

Maximum number of reviews to scrape (max: 10000)

## Actor input object example

```json
{
  "reviewUrl": "https://www.tripadvisor.com/Hotel_Review-g60763-d7255276-Reviews-The_Knickerbocker-New_York_City_New_York.html",
  "maxItems": 15
}
```

# 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 = {
    "reviewUrl": "https://www.tripadvisor.com/Hotel_Review-g60763-d7255276-Reviews-The_Knickerbocker-New_York_City_New_York.html",
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/tripadvisor-reviews-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 = {
    "reviewUrl": "https://www.tripadvisor.com/Hotel_Review-g60763-d7255276-Reviews-The_Knickerbocker-New_York_City_New_York.html",
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/tripadvisor-reviews-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 '{
  "reviewUrl": "https://www.tripadvisor.com/Hotel_Review-g60763-d7255276-Reviews-The_Knickerbocker-New_York_City_New_York.html",
  "maxItems": 15
}' |
apify call easyapi/tripadvisor-reviews-scraper --silent --output-dataset

```

## MCP server setup

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