# Viator Review Scraper (`louvre/viator-review-scraper`) Actor

The Viator Review Scraper is a powerful and easy-to-use actor designed to collect structured review data from Viator product pages. Whether you’re analyzing customer sentiment, monitoring competitor feedback, or enriching your travel content.

- **URL**: https://apify.com/louvre/viator-review-scraper.md
- **Developed by:** [Louvre LLC](https://apify.com/louvre) (community)
- **Categories:** Travel, AI, Automation
- **Features:** Limited permissions
- **Stats:** 107 total users, 26 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

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

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

## 🛫🌍 Viator Review Scraper

⏱️ **Newest reviews can take up to 12 hours to appear.** If they aren’t in your results yet, please run the Actor again after 12 hours and they’ll be included. Need them sooner? Email us at support@louvre.ai — we’re happy to help.

### 📌 Introduction

Viator Review Scraper is a powerful and easy-to-use **Apify Actor** designed to collect structured **review data** from Viator product pages. It lets you extract review ratings, text, author details, photos, travel info, and more — perfect for sentiment analysis, competitor research, travel insights, and content enrichment.

***

### 💡 Free vs paid plans

On a free Apify plan, this actor returns a **sample** of the reviews. Upgrade to any paid Apify plan to get the **complete** results.

***

### 🎯 What is this Review Scraper?

This Actor automatically scrapes customer reviews from a specified **Viator product URL** and outputs them as structured JSON. It supports flexible pagination and outputs clean data ready for analysis or integration into data pipelines.

***

### 🔍 Features

- ⭐ **Comprehensive Review Data** — Extracts ratings, review text, author name & location, photos, and helpful votes.
- 🔁 **Flexible Pagination** — Supports custom starting page and maximum review limits.
- 🔀 **Multiple Sorting Options** — Sorts reviews by date, rating, or helpfulness.
- 🚀 **High Performance** — Efficiently handles large volumes of reviews.
- 🧹 **Reliable Output** — Includes duplicate detection and data validation.
- 🔌 **Easy Integration** — Simple input parameters and structured JSON output.

***

### 🧰 Input Parameters

| Parameter      | Type          | Required | Description |
|----------------|---------------|----------|-------------|
| `product_url`  | String        | ⚠️       | The Viator product page URL to scrape reviews from. Either `product_url` or `product_urls` must be provided. |
| `product_urls` | Array\[String] | ⚠️       | Array of Viator product URLs for batch processing (1-200 URLs). Either `product_url` or `product_urls` must be provided. |
| `page_size`    | Number        | ❌       | Maximum number of reviews per page (default: 100, range: 1-1000). |
| `page`         | Number        | ❌       | Start page number (default: 1). |

***

### 📥 Example Input

#### Single URL

```json
{
  "product_url": "https://www.viator.com/tours/Paris/Eiffel-Tower-Tour/d479-12345",
  "page_size": 100,
  "page": 1
}
```

#### Batch Processing (Multiple URLs)

```json
{
  "product_urls": [
    "https://www.viator.com/tours/Paris/Eiffel-Tower-Tour/d479-12345",
    "https://www.viator.com/tours/Rome/Colosseum-Tour/d511-67890"
  ],
  "page_size": 100,
  "page": 1
}
```

This configuration will scrape up to 100 reviews starting from the first page of the specified Viator product(s).

***

### 🗃️ Output Data

Each review returned by this Actor includes the following structured fields:

| Field                    | Type     | Description |
|--------------------------|----------|-------------|
| `id`                     | String   | Unique review identifier. |
| `product_id`             | String   | Viator product identifier. |
| `product_url`            | String   | Product URL used for scraping this review. |
| `rating`                 | Number   | Review rating (1–5 stars). |
| `title`                  | String   | Review title. |
| `content`                | String   | Full review text/body. |
| `author_name`            | String   | Reviewer's name. |
| `user_identifier_value`  | String   | Author user identifier. |
| `review_date`            | String   | Date when the review was published (ISO 8601 format). |
| `helpful_votes`          | Number   | Number of helpful votes. |
| `photos`                 | Array    | Array of photo URLs (if any). |
| `owner_response`         | String   | Business owner response text (if any). |
| `owner_response_author`  | String   | Response author name (if any). |
| `owner_response_date`    | String   | Response publication date (ISO 8601 format, if any). |
| `source`                 | String   | Data source identifier (always "viator"). |
| `language`               | String   | Review language code. |
| `overall_star_rating`    | Number   | Overall product star rating (e.g. 4.5 out of 5). `-1` if unavailable. |
| `overall_review_count`   | Number   | Total number of reviews for the product. `-1` if unavailable. |

***

### 🧠 How It Works

1. **Input Validation** — Validates the provided Viator product URL.
2. **Review Extraction** — Uses web scraping logic to extract review data from the product page.
3. **Data Processing** — Cleans and structures the scraped results.
4. **Duplicate Detection** — Identifies and filters duplicate reviews.
5. **Data Storage** — Saves structured review data to the Apify dataset for retrieval.

***

### ⚙️ Usage Examples

#### 📦 Basic Usage (Single URL)

```json
{
  "product_url": "https://www.viator.com/tours/Paris/Eiffel-Tower-Tour/d479-12345"
}
```

#### 📈 With Pagination

```json
{
  "product_url": "https://www.viator.com/tours/Paris/Eiffel-Tower-Tour/d479-12345",
  "page_size": 200,
  "page": 2
}
```

#### 🔄 Batch Processing (Multiple URLs)

```json
{
  "product_urls": [
    "https://www.viator.com/tours/Paris/Eiffel-Tower-Tour/d479-12345",
    "https://www.viator.com/tours/Rome/Colosseum-Tour/d511-67890",
    "https://www.viator.com/tours/London/London-Eye-Tour/d737-11111"
  ],
  "page_size": 100,
  "page": 1
}
```

***

### 🤖 Use Viator Review Scraper in Claude, Cursor & Codex via MCP

You can call this Actor directly from an AI assistant through the [Apify MCP server](https://mcp.apify.com) — it works with **Claude**, **Cursor**, **Codex**, and any other MCP client.

Add this connector URL in your MCP client:

```
https://mcp.apify.com/?tools=louvre/viator-review-scraper
```

Then ask in plain language, for example:

> "Get the latest reviews for this Viator tour: https://www.viator.com/tours/Paris/Eiffel-Tower-Tour/d479-12345"

For a ready-to-paste configuration (Claude Desktop, Cursor, VS Code, and more), open the **API → MCP** tab on this Actor's page.

***

### 📡 API / CLI Integration

You can run this Actor via the Apify API or CLI. Example using curl:

```bash
curl "https://api.apify.com/v2/acts/louvre~viator-review-scraper/runs?token=<YOUR_API_TOKEN>" \
  -X POST \
  -H "Content-Type: application/json" \
  -d @input.json
```

Replace `<YOUR_API_TOKEN>` with your Apify API token and `input.json` with your configured input.

***

### 💰 Pricing & Limits

This Actor uses **pay-per-result** pricing — see the **Pricing** tab on the Actor page for the current rate. A free trial is available.

***

### 🔗 Related Links

- 🌐 Actor Page: https://apify.com/louvre/viator-review-scraper
- 📜 API: https://apify.com/louvre/viator-review-scraper/api

# Actor input Schema

## `product_url` (type: `string`):

The Viator product URL to scrape reviews from

## `product_urls` (type: `array`):

Array of Viator product URLs to scrape reviews from. Use this field for batch processing multiple URLs. Format: \["url1", "url2", ...]. Leave empty if using product_url field instead.

## `page_size` (type: `integer`):

Maximum number of reviews for every page (default: 100)

## `page` (type: `integer`):

Start page number, will skip (page - 1) \* pageSize from the beginning (default: 1)

## Actor input object example

```json
{
  "product_url": "https://www.viator.com/tours/Rome/Private-Tour-Capitoline-Museums-Rome/d511-47029P2",
  "page_size": 100,
  "page": 1
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped Viator reviews stored in the default dataset

# 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 = {
    "product_url": "https://www.viator.com/tours/Rome/Private-Tour-Capitoline-Museums-Rome/d511-47029P2",
    "page_size": 100,
    "page": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("louvre/viator-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 = {
    "product_url": "https://www.viator.com/tours/Rome/Private-Tour-Capitoline-Museums-Rome/d511-47029P2",
    "page_size": 100,
    "page": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("louvre/viator-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 '{
  "product_url": "https://www.viator.com/tours/Rome/Private-Tour-Capitoline-Museums-Rome/d511-47029P2",
  "page_size": 100,
  "page": 1
}' |
apify call louvre/viator-review-scraper --silent --output-dataset

```

## MCP server setup

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