# Viator Reviews Scraper (`scrapyx/viator-reviews-scraper`) Actor

Extracts guest reviews for tours/activities listed on Viator.com -- currently in recon mode while DataDome's profile-rotation requirement is confirmed.

- **URL**: https://apify.com/scrapyx/viator-reviews-scraper.md
- **Developed by:** [Ibnu Adzim](https://apify.com/scrapyx) (community)
- **Categories:** Travel, Marketing, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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/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

## Viator Reviews Scraper

Extracts the full guest review history for any tour/activity listed on Viator — just give it the tour URL.

### Why use this actor

- No account, no login, no API key — works on public tour pages only.
- Returns the tour's total review count plus **every** guest review up to your chosen limit — full text, rating, reviewer name, party type (solo/couple/family/friends), publish date, and helpful-vote count. Unlike a single-page snapshot, this actually paginates through the tour's full review history.
- Every tour you submit gets at least one output row — including a clear diagnostic reason on the rare rows that couldn't be fetched, so nothing silently disappears from your results.

### How it works

1. You give the actor one or more Viator tour page URLs.
2. For each tour, it establishes a session against the tour page, then pages through the tour's own review API (100 reviews per page) until it reaches your limit or runs out of reviews.
3. Results are streamed to your dataset as they finish.
4. You export the finished dataset as JSON, CSV, or Excel straight from the Apify Console.

### Input

```json
{
  "tourUrls": [
    "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15"
  ],
  "maxReviewsPerTour": 300,
  "maxConcurrency": 3
}
```

| Field | Type | Description |
|---|---|---|
| `tourUrls` | array of strings | Viator tour/activity page URLs. |
| `maxReviewsPerTour` | integer | Stop paginating a tour after this many reviews. Popular tours can have thousands of reviews, so this is capped by default. Set to `0` to fetch every review. |
| `maxConcurrency` | integer | How many tours to process at the same time. Default `3`. |

### Output

Each tour produces one **summary** row plus one **review** row per guest review. Real examples from a live run:

**Summary row** (`recordType: "SUMMARY"`):

```json
{
  "_input": "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15",
  "_source": "S1-graphql-getreviews",
  "_scrapedAt": "2026-08-11T02:33:20Z",
  "recordType": "SUMMARY",
  "tourUrl": "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15",
  "totalReviewCount": 6474,
  "hasFeaturedReviews": false
}
```

**Review row** (`recordType: "REVIEW"`):

```json
{
  "_input": "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15",
  "_source": "S1-graphql-getreviews",
  "_scrapedAt": "2026-08-11T02:33:20Z",
  "recordType": "REVIEW",
  "id": "1072279861",
  "rating": 5,
  "published": "2026-08-09T00:00:00Z",
  "partyType": "FAMILY",
  "helpfulVotes": 0,
  "reviewBody": { "locale": "en", "text": "We had an amazing experience on the Vatican Skip-the-Line Tour! ..." },
  "reviewer": { "username": "karacnutile", "userIdentifierValue": "211864522" },
  "title": { "text": "We had an amazing..." }
}
```

When a tour can't be found or the input isn't a Viator URL, the actor still emits one row for that input with a clear reason:

```json
{
  "_input": "not-a-viator-url-at-all",
  "_source": "none",
  "_scrapedAt": "2026-08-11T02:33:20Z",
  "recordType": "ERROR",
  "_error": "invalid_input",
  "_errorDetail": "Expected a viator.com tour page URL, e.g. 'https://www.viator.com/tours/<city>/<slug>/d<destId>-<productCode>'."
}
```

| Field | Type | Description |
|---|---|---|
| `_input` | string | The tour URL you submitted. |
| `_source` | string | Which internal strategy produced this row. `"none"` on a failed row. |
| `_scrapedAt` | string | UTC timestamp of when this row was produced. |
| `recordType` | string | `"SUMMARY"`, `"REVIEW"`, or `"ERROR"`. |
| `_error` | string | Present only on rows that couldn't be fetched, e.g. `invalid_input`, `waf_challenge`, `graphql_error`. |
| `_errorDetail` | string | Human-readable detail for the error, present only alongside `_error`. |
| *(all other fields)* | — | On a successful row, every field Viator's own review API provides is passed through unchanged. |

### Notes / limits

- This is a genuinely paginated feed, not a fixed snapshot — raise `maxReviewsPerTour` (or set it to `0`) for tours with large review counts.
- A `partial_graphql_error` row means pagination stopped partway through a tour after already returning some real reviews — you still get what was fetched, plus a diagnostic explaining why it stopped early.

### Other actors in this collection

| Actor | What it returns |
|---|---|
| Agoda Reviews Scraper | Guest reviews for hotels listed on Agoda.com |
| GetYourGuide Reviews Scraper | Guest reviews for tours/activities listed on GetYourGuide |
| Trip.com Reviews Scraper | Guest reviews for hotels listed on Trip.com |
| Booking.com Reviews Scraper | Guest reviews for hotels listed on Booking.com |
| Orbitz Hotel Reviews Scraper | Guest reviews for hotels listed on Orbitz.com |

# Actor input Schema

## `tourUrls` (type: `array`):

Viator tour/activity page URLs, e.g. https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15

## `maxReviewsPerTour` (type: `integer`):

Stop paginating a tour after this many reviews. Popular tours can have thousands of reviews, so this is capped by default. Set to 0 for unlimited (fetch every review).

## `maxConcurrency` (type: `integer`):

Maximum number of tours processed in parallel.

## Actor input object example

```json
{
  "tourUrls": [
    "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15"
  ],
  "maxReviewsPerTour": 300,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `items` (type: `string`):

One row per scraped record. See the dataset's default view for field definitions.

# 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 = {
    "tourUrls": [
        "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapyx/viator-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 = { "tourUrls": ["https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapyx/viator-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 '{
  "tourUrls": [
    "https://www.viator.com/tours/Rome/Skip-the-Line-Vatican-Museums-and-Sistine-Chapel-Entrance-Tickets/d511-6700P15"
  ]
}' |
apify call scrapyx/viator-reviews-scraper --silent --output-dataset

```

## MCP server setup

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