# TripAdvisor Scraper - Places & Ratings (`automatyk/tripadvisor-scraper`) Actor

Scrape TripAdvisor hotels, restaurants and attractions: name, rating, reviews count, address and details. Export to JSON, CSV, Excel.

- **URL**: https://apify.com/automatyk/tripadvisor-scraper.md
- **Developed by:** [Automatyk](https://apify.com/automatyk) (community)
- **Categories:** Travel, Lead generation, E-commerce
- **Stats:** 1 total users, 0 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 & Reviews

Extract structured data from any TripAdvisor place page: hotels, restaurants, attractions, ratings, reviews, address, coordinates, phone number, and more. Export to JSON, CSV, or Excel in seconds.

**No browser. No proxy needed. No getting blocked.** This scraper calls TripAdvisor internal REST API directly, bypassing anti-bot protection entirely.

***

### What you can scrape

#### Place data

- Name, category and subcategory
- Overall rating and total review count
- Full address, city, country, postal code
- GPS coordinates (latitude, longitude)
- Phone number and official website
- Ranking within its category and city
- Description, tags, photo count
- TripAdvisor page URL

#### Review data (optional)

- Review title and full text
- Star rating (1 to 5)
- Travel date and trip type
- Publication date
- Author name, location and review count
- Helpful votes
- Direct URL to the review

***

### Use cases

- **Travel market research**: benchmark hotels and restaurants in any city
- **Reputation monitoring**: track ratings and reviews for your locations over time
- **Competitor analysis**: compare ratings, review volume and sentiment across venues
- **Lead generation**: build targeted lists of hospitality businesses with contact data
- **Academic research**: collect large review datasets for NLP and sentiment analysis
- **Travel app development**: enrich your database with real-time TripAdvisor data
- **Review aggregation**: combine TripAdvisor data with Google and Booking.com

***

### Input

Paste one or more TripAdvisor URLs (hotel, restaurant, or attraction pages):

```json
{
  "startUrls": [
    "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html",
    "https://www.tripadvisor.com/Hotel_Review-g60763-d93589-Reviews-The_Plaza-New_York_City_New_York.html",
    "https://www.tripadvisor.com/Restaurant_Review-g187147-d718840-Reviews-Le_Jules_Verne-Paris_Ile_de_France.html"
  ],
  "includeReviews": true,
  "maxReviews": 100
}
```

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `startUrls` | array | Eiffel Tower example | TripAdvisor place URLs to scrape |
| `includeReviews` | boolean | true | Also extract reviews for each place |
| `maxReviews` | integer | 50 | Max reviews per place (0 = all available) |

***

### Output example

#### Place item

```json
{
  "type": "place",
  "locationId": "188151",
  "name": "Eiffel Tower",
  "category": "Attraction",
  "subtype": "Observation Decks & Towers, Points of Interest & Landmarks",
  "rating": 4.6,
  "numReviews": 143919,
  "ranking": "#1 of 3,996 things to do in Paris",
  "description": "Completed in 1889, this colossal landmark...",
  "address": "Av. Gustave Eiffel, 75007 Paris France",
  "city": "Paris",
  "country": "France",
  "postalCode": "75007",
  "latitude": 48.858353,
  "longitude": 2.294464,
  "phone": "+33 892 70 12 39",
  "website": "https://www.toureiffel.paris/",
  "photoCount": 83342,
  "webUrl": "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-..."
}
```

#### Review item

```json
{
  "type": "review",
  "locationId": "188151",
  "reviewId": "1062422731",
  "lang": "en",
  "publishedDate": "2026-05-31T06:57:20-04:00",
  "travelDate": "2026-05",
  "rating": 5,
  "title": "Best in Paris",
  "text": "Anytime of the day or the night, the eiffel tower never disappoints you!",
  "tripType": null,
  "helpfulVotes": 0,
  "authorName": "Travel T",
  "authorLocation": "New York, USA",
  "authorReviewCount": 7
}
```

***

### Supported URL types

This scraper supports any TripAdvisor place URL:

- Hotels: `tripadvisor.com/Hotel_Review-g...-d...-...`
- Restaurants: `tripadvisor.com/Restaurant_Review-g...-d...-...`
- Attractions: `tripadvisor.com/Attraction_Review-g...-d...-...`

Tip: copy the URL directly from your browser on any TripAdvisor place page.

***

### Performance and cost

- **Speed**: 1 place + 50 reviews in under 5 seconds
- **No proxy required**: direct REST API access, no browser, no anti-bot
- **Pricing**: Pay-Per-Event (actor-start + result-item per scraped item)
- **Scale**: handles hundreds of URLs per run without rate limiting

***

### FAQ

**Does it work without getting blocked?**
Yes. This scraper uses TripAdvisor internal REST API instead of scraping HTML pages. DataDome anti-bot protection only applies to browser-rendered pages, not to this API.

**Can I scrape all reviews from a place?**
Yes. Set `maxReviews` to `0` to fetch all available reviews. The Eiffel Tower has over 143,000 reviews - the scraper handles full pagination automatically.

**What languages are supported?**
English reviews are returned by default. The API returns the language field for each review so you can filter by `lang` in your dataset.

**Can I scrape multiple places at once?**
Yes. Add as many URLs as you need in `startUrls`. The scraper processes them sequentially.

**Is this legal?**
Web scraping publicly available data is generally permitted for research, analysis, and personal use. Always review TripAdvisor terms of service for your specific use case.

**How do I get the locationId from a URL?**
You do not need to. Just paste the full TripAdvisor URL and the scraper extracts the location ID automatically from the `-d{number}-` pattern in the URL.

***

### Export formats

Results are available in: **JSON, CSV, Excel (XLSX), XML, RSS**.

Download directly from the Apify console or via the API.

***

Built by [Automatyk](https://apify.com/automatyk) - scraping tools for professionals.

# Actor input Schema

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

TripAdvisor place URLs (hotel, restaurant or attraction pages).

## `includeReviews` (type: `boolean`):

Also scrape reviews for each place.

## `maxReviews` (type: `integer`):

Maximum reviews to fetch per place. 0 = all available reviews.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html"
  ],
  "includeReviews": true,
  "maxReviews": 50
}
```

# Actor output Schema

## `places` (type: `string`):

No description

## `reviews` (type: `string`):

No description

# 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 = {
    "startUrls": [
        "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatyk/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 = { "startUrls": ["https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html"] }

# Run the Actor and wait for it to finish
run = client.actor("automatyk/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 '{
  "startUrls": [
    "https://www.tripadvisor.com/Attraction_Review-g187147-d188151-Reviews-Eiffel_Tower-Paris_Ile_de_France.html"
  ]
}' |
apify call automatyk/tripadvisor-scraper --silent --output-dataset

```

## MCP server setup

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