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

Extract Tripadvisor reviews by Location ID. Get overall ratings, subratings, photos, user profiles, and owner responses. Export to Excel/CSV/JSON.

- **URL**: https://apify.com/burbn/tripadvisor-reviews.md
- **Developed by:** [Kevin](https://apify.com/burbn) (community)
- **Categories:** Travel, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Reviews | Extract Reviews by Location ID

Extract detailed reviews from Tripadvisor by location ID. Get ratings, subratings, review text, photos, user profiles, contributions, and owner responses.

### ❓ What is Tripadvisor Reviews?

**Tripadvisor Reviews** is a powerful Apify actor that extracts comprehensive review data from Tripadvisor for any hotel, restaurant, or attraction. Provide a location ID and get all reviews with detailed ratings, user profiles, attached photos, and management responses.

With this Tripadvisor Reviews actor, you can:

- ⭐ **Extract Reviews** — Get all reviews for any Tripadvisor location with full text and ratings.
- 📊 **Detailed Subratings** — Access individual ratings for Rooms, Value, Sleep Quality, Location, Cleanliness, and Service.
- 📸 **Review Photos** — Extract all photos attached to each review with multiple resolutions.
- 👤 **User Profiles** — Get reviewer details including contributions, avatar, location, and profile link.
- 🔍 **Keyword Filter** — Search reviews by keyword to find specific feedback.
- 💬 **Owner Responses** — Capture management/owner responses to reviews.
- 📄 **Deep Pagination** — Scrape multiple pages of reviews with `maxPages`.
- 📊 **Export Structured Data** — Download results in JSON, CSV, Excel, XML, and RSS formats.

### 🎯 What Data Can You Extract?

This Tripadvisor Reviews actor extracts the following fields for each review:

| Field | Description | Example |
|-------|-------------|---------|
| `id` | Unique review identifier | `1033307035` |
| `title` | Review title | `A good hotel for couples or with friends` |
| `text` | Full review text | `It is a hotel that the school has arranged...` |
| `rating` | Overall rating (1-5) | `5` |
| `published_date` | When the review was published | `2025-10-03T23:33:32-04:00` |
| `published_platform` | Platform used (Mobile/Desktop) | `Mobile` |
| `travel_date` | When the reviewer traveled | `2024-09` |
| `helpful_votes` | Number of helpful votes | `1` |
| `url` | Direct link to the review | `https://www.tripadvisor.com/ShowUserReviews-...` |
| `subrating_rooms` | Room quality rating | `5` |
| `subrating_value` | Value for money rating | `4` |
| `subrating_sleep_quality` | Sleep quality rating | `4` |
| `subrating_location` | Location rating | `5` |
| `subrating_cleanliness` | Cleanliness rating | `5` |
| `subrating_service` | Service quality rating | `4` |
| `owner_response` | Management response to review | `Thank you for your feedback...` |
| `photos` | Array of attached photos with URLs | *Photo objects with multiple sizes* |
| `username` | Reviewer's username | `Mark C` |
| `user_location_name` | Reviewer's location | `Bangkok, Thailand` |
| `user_total_reviews` | Total reviews by user | `15` |
| `user_helpful_votes` | Total helpful votes received | `3` |
| `machine_translated` | Whether review was auto-translated | `false` |

### 🚀 How to Use Tripadvisor Reviews

#### Step 1: Get a Location ID

Find the Tripadvisor location ID for the hotel, restaurant, or attraction you want reviews for.

> **💡 Tip:** In a Tripadvisor URL like `https://www.tripadvisor.com/Hotel_Review-g293919-d1191092-Reviews-...`, the number after `d` (1191092) is the location ID.

#### Step 2: Configure Parameters

| Input | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `location_id` | String | ✅ Yes | `1191092` | Tripadvisor location ID for the hotel/restaurant/attraction. |
| `maxPages` | Integer | ❌ No | `1` | Maximum number of pages to scrape. Each page returns up to 20 reviews. |
| `limit` | Integer | ❌ No | `20` | Items to return per page (max `20`). |
| `keyword` | String | ❌ No | — | Optional keyword to filter reviews. |
| `currency` | String | ❌ No | `USD` | Currency code (e.g., `USD`, `EUR`, `INR`). |
| `lang` | String | ❌ No | `en_US` | Response language (e.g., `en_US`, `fr_FR`). |

#### Step 3: Run and Download Results

Click **Start** to run the Tripadvisor Reviews scraper. Once completed, download your data in JSON, CSV, Excel, XML, or RSS formats.

### 📋 Example Input

```json
{
  "location_id": "1191092",
  "maxPages": 2,
  "limit": 20,
  "currency": "USD",
  "lang": "en_US"
}
````

### 📋 Example Output

```json
{
  "id": "970282367",
  "lang": "en",
  "location_id": "1191092",
  "published_date": "2024-09-18T05:31:02-04:00",
  "published_platform": "Desktop",
  "rating": "5",
  "helpful_votes": "0",
  "url": "https://www.tripadvisor.com/ShowUserReviews-g293919-d1191092-r970282367-...",
  "travel_date": "2024-09",
  "title": "A good hotel for couples or with friends.",
  "text": "It is a hotel that the school has arranged to stay here...",
  "subrating_rooms": "5",
  "subrating_value": "5",
  "subrating_sleep_quality": "4",
  "subrating_location": "4",
  "subrating_cleanliness": "5",
  "subrating_service": "4",
  "username": "วัชรพงษ ว",
  "user_location_name": "Bangkok, Thailand",
  "user_total_reviews": "1",
  "user_hotel_reviews": "1",
  "user_locale": "th"
}
```

### 🎨 Dataset Views

The Tripadvisor Reviews actor provides **3 organized dataset views** to help you inspect and analyze your data seamlessly:

| View | Description |
|------|-------------|
| ⭐ **Reviews Overview** | Quick scan showing title, rating, text, publish date, helpful votes, and URL. |
| 📊 **Ratings & Subratings** | Detailed breakdown of Rooms, Value, Sleep Quality, Location, Cleanliness, and Service ratings. |
| 👥 **User & Photo Details** | User profiles with contributions, avatars, profile links, and photo counts. |

### 💡 Use Cases for Tripadvisor Reviews

- 📈 **Sentiment Analysis** — Analyze review text and ratings to understand guest satisfaction trends.
- 🏨 **Competitive Analysis** — Compare review scores and subratings across competing properties.
- 📊 **Market Research** — Study review patterns, seasonal trends, and guest demographics.
- 🗺️ **Travel Planning** — Read authentic reviews to make informed booking decisions.
- 📝 **Content Creation** — Use review data for travel blogs, comparison articles, and guides.
- 🎒 **Reputation Management** — Monitor and track review scores, owner responses, and feedback over time.
- 📸 **Visual Content** — Extract user-uploaded photos from reviews for analysis.

### 🔧 Tips for Best Results

1. **Find Location IDs** — Use the [Tripadvisor Locations Search](https://apify.com/burbn/tripadvisor-locations-search) actor or extract from Tripadvisor URLs.
2. **Use Keywords** — Set the `keyword` filter to find reviews about specific topics (e.g., "pool", "breakfast", "staff").
3. **Paginate for More** — Increase `maxPages` to get all reviews. Each page returns up to 20 results.
4. **Check Subratings** — Use the **Ratings & Subratings** view to quickly compare granular scores.
5. **Utilize Dataset Views** — Use preconfigured views for clean, ready-to-use CSV or Excel files.

### 🏷️ Tags

`tripadvisor scraper` `tripadvisor reviews` `tripadvisor review scraper` `tripadvisor hotel reviews` `tripadvisor restaurant reviews` `tripadvisor attraction reviews` `tripadvisor rating` `travel advisor scraper` `review analysis` `sentiment analysis` `tripadvisor reviews data` `review extraction` `guest feedback` `tripadvisor review monitoring`

### 🎁 Get $5 Free Apify Credits

New to Apify? [Sign up using this link](https://apify.com?fpr=free-credits) and get **$5 free credits** to start extracting Tripadvisor reviews right away! No credit card required.

### 📞 Support

For questions, feedback, or custom requests regarding the Tripadvisor Reviews actor, please contact us through Apify or open a support issue.

***

**Happy reviewing! ⭐✨**

# Actor input Schema

## `location_id` (type: `string`):

The Tripadvisor location ID to fetch reviews for. You can get this from the Tripadvisor URL or by using the Tripadvisor Locations Search actor.

## `maxPages` (type: `integer`):

Maximum number of pagination pages to scrape. Each page returns up to 20 reviews.

## `limit` (type: `integer`):

The number of reviews to return per page. Maximum is 20.

## `keyword` (type: `string`):

Optional keyword to filter reviews. Only reviews matching this keyword will be returned.

## `currency` (type: `string`):

The currency code for the response (e.g., USD, EUR, GBP, INR, JPY).

## `lang` (type: `string`):

The language code for API responses. Use locale format like en\_US, fr\_FR, de\_DE, ja\_JP, etc.

## Actor input object example

```json
{
  "location_id": "1191092",
  "maxPages": 1,
  "limit": 20,
  "currency": "USD",
  "lang": "en_US"
}
```

# Actor output Schema

## `overview` (type: `string`):

View reviews with ratings, text, publish date, and user info.

## `ratingsAndSubratings` (type: `string`):

View detailed ratings including Rooms, Value, Cleanliness, and Service.

## `userDetails` (type: `string`):

View user profiles, contributions, avatars, and photo counts.

# 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_id": "1191092"
};

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

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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_id": "1191092"
}' |
apify call burbn/tripadvisor-reviews --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=burbn/tripadvisor-reviews",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TripAdvisor Reviews Scraper",
        "description": "Extract Tripadvisor reviews by Location ID. Get overall ratings, subratings, photos, user profiles, and owner responses. Export to Excel/CSV/JSON.",
        "version": "1.0",
        "x-build-id": "aGguNqweOD9EkjPys"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/burbn~tripadvisor-reviews/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-burbn-tripadvisor-reviews",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/burbn~tripadvisor-reviews/runs": {
            "post": {
                "operationId": "runs-sync-burbn-tripadvisor-reviews",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/burbn~tripadvisor-reviews/run-sync": {
            "post": {
                "operationId": "run-sync-burbn-tripadvisor-reviews",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "location_id"
                ],
                "properties": {
                    "location_id": {
                        "title": "Location ID",
                        "type": "string",
                        "description": "The Tripadvisor location ID to fetch reviews for. You can get this from the Tripadvisor URL or by using the Tripadvisor Locations Search actor.",
                        "default": "1191092"
                    },
                    "maxPages": {
                        "title": "Max Pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of pagination pages to scrape. Each page returns up to 20 reviews.",
                        "default": 1
                    },
                    "limit": {
                        "title": "Results per Page",
                        "minimum": 20,
                        "maximum": 20,
                        "type": "integer",
                        "description": "The number of reviews to return per page. Maximum is 20.",
                        "default": 20
                    },
                    "keyword": {
                        "title": "Keyword Filter",
                        "type": "string",
                        "description": "Optional keyword to filter reviews. Only reviews matching this keyword will be returned."
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "The currency code for the response (e.g., USD, EUR, GBP, INR, JPY).",
                        "default": "USD"
                    },
                    "lang": {
                        "title": "Language",
                        "type": "string",
                        "description": "The language code for API responses. Use locale format like en_US, fr_FR, de_DE, ja_JP, etc.",
                        "default": "en_US"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
