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

Extract reviews from Viator tours and experiences with ease. Collect ratings, review titles, full review text, reviewer names, dates, traveler types, languages, and more. Perfect for market research, reputation monitoring, sentiment analysis, and competitive intelligence.

- **URL**: https://apify.com/shahidirfan/viator-review-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Categories:** Travel, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## Viator Review Scraper

Extract review data from Viator product pages for travel research, customer sentiment analysis, supplier monitoring, and tour comparison. Provide a Viator product URL or product code, choose how many reviews you want, and get structured review records with ratings, dates, reviewer details, photos, and owner responses when available.

### Features

- **Product URL support** - Paste a Viator tour or activity URL and collect reviews from that product.
- **Product code support** - Use a Viator product code directly when you already have one.
- **Review pagination** - Collect more than the first visible reviews by setting review and page limits.
- **Sorting options** - Sort by recent reviews, rating, best match, helpful votes, or useful review order.
- **Clean dataset** - Empty and always-null values are removed from saved records.

---

### Use Cases

#### Tour Quality Research
Compare reviews across experiences before promoting, booking, or recommending tours. Ratings, review text, dates, and traveler party types help identify recurring strengths and complaints.

#### Supplier Monitoring
Track recent feedback for a specific Viator activity. Owner responses and helpful vote counts make it easier to spot service issues that may need attention.

#### Sentiment Analysis
Build review datasets for text analysis, language review, and customer experience reporting. Export the data to your preferred analysis tool and group reviews by rating, date, or keywords.

#### Competitive Benchmarking
Collect reviews from multiple Viator products in separate runs and compare traveler feedback across similar tours, attractions, or destinations.

---

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `startUrl` | String | Yes | Sample Rome tour URL | Viator product URL to extract reviews from. |
| `product_code` | String | No | - | Optional Viator product code. Overrides the code parsed from the URL. |
| `results_wanted` | Integer | No | `20` | Maximum number of reviews to save. |
| `max_pages` | Integer | No | `5` | Maximum review pages to request. |
| `sort_by` | String | No | `DATE` | Sorting mode: `DATE`, `RATING`, `BEST_MATCH`, `HELPFUL_VOTES`, or `ML_SORTED`. |
| `proxyConfiguration` | Object | No | Apify residential proxy | Proxy settings for reliable runs. |

---

### Output Data

Each dataset item can contain:

| Field | Type | Description |
|-------|------|-------------|
| `product_code` | String | Viator product code. |
| `product_url` | String | Source product URL. |
| `product_title` | String | Product title. |
| `destination_name` | String | Primary destination name. |
| `review_id` | String | Unique review identifier. |
| `review_title` | String | Review headline. |
| `review_text` | String | Full review body. |
| `review_language` | String | Review language code. |
| `rating` | Number | Star rating from 1 to 5. |
| `published_date` | String | Review publication date. |
| `reviewer_name` | String | Reviewer display name. |
| `reviewer_id` | String | Reviewer identifier when available. |
| `helpful_votes` | Number | Helpful vote count. |
| `party_type` | String | Traveler party type, such as couples or family. |
| `is_provided_by_tripadvisor` | Boolean | Whether the review source is Tripadvisor. |
| `machine_translated` | Boolean | Whether the review was machine translated. |
| `photo_count` | Number | Number of photos attached to the review. |
| `photos` | Object | Photo URLs and dimensions. |
| `owner_response` | Object | Supplier or owner response details. |

---

### Usage Examples

#### Basic Extraction

Collect 20 recent reviews from a Viator product page:

```json
{
  "startUrl": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
  "results_wanted": 20
}
````

#### Larger Collection

Collect more reviews from the same product:

```json
{
  "startUrl": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
  "results_wanted": 50,
  "max_pages": 3
}
```

#### Keyword Search

Use a product code directly:

```json
{
  "product_code": "3731COLOSSEUM",
  "results_wanted": 30
}
```

***

### Sample Output

```json
{
  "product_code": "3731COLOSSEUM",
  "product_url": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
  "product_title": "Rome: Colosseum, Roman Forum and Palatine Hill Guided Tour",
  "destination_name": "Rome",
  "review_id": "1069376540",
  "review_title": "Great tour",
  "review_text": "Our guide was knowledgeable and made the visit easy to follow.",
  "review_language": "en",
  "rating": 5,
  "published_date": "2026-07-19T00:00:00Z",
  "reviewer_name": "Maria_A",
  "helpful_votes": 0,
  "party_type": "FAMILY",
  "machine_translated": false
}
```

***

### Tips for Best Results

#### Start Small

- Use `results_wanted` between 20 and 50 for test runs.
- Increase the limit after confirming the product URL returns the reviews you need.

#### Use Working Product URLs

- Use Viator product pages that include a product code after the destination id.
- If a URL is unusual, enter the product code in `product_code`.

#### Choose Useful Sorting

- Use `DATE` for monitoring recent feedback.
- Use `HELPFUL_VOTES` for reviews other travelers found useful.
- Use `BEST_MATCH` when combined with `search_query`.

***

### Integrations

Connect your dataset with:

- **Google Sheets** - Review and share data with your team.
- **Airtable** - Build a searchable review database.
- **Slack** - Send run notifications to a channel.
- **Webhooks** - Forward completed datasets to another system.
- **Make** - Create automated reporting workflows.
- **Zapier** - Trigger downstream actions from finished runs.

#### Export Formats

- **JSON** - For applications and data pipelines.
- **CSV** - For spreadsheets and reporting.
- **Excel** - For business review.
- **XML** - For system imports.

***

### Frequently Asked Questions

#### Can I scrape any Viator product URL?

Yes, you can scrape Viator product URLs that contain a product code, such as URLs ending with `/d511-3731COLOSSEUM`.

#### Can I collect more than 20 reviews?

Yes, increase `results_wanted` and `max_pages` to collect more reviews.

#### What happens when a field is missing?

Missing, empty, and always-null values are skipped so the dataset stays clean.

#### Can I use a product code instead of a URL?

Yes, enter the code in `product_code`. The product code takes priority over the URL.

***

### Support

For issues or feature requests, contact support through the Apify Console.

#### Resources

- [Apify Documentation](https://docs.apify.com/)
- [API Reference](https://docs.apify.com/api/v2)
- [Scheduling Runs](https://docs.apify.com/schedules)

***

### Legal Notice

This actor is designed for legitimate data collection purposes. Users are responsible for ensuring their use of collected data complies with Viator terms, Tripadvisor content rules, and applicable laws. Use data responsibly and respect platform limits.

# Actor input Schema

## `startUrl` (type: `string`):

A Viator product URL, for example a tour page ending in /d511-3731COLOSSEUM.

## `product_code` (type: `string`):

Optional Viator product code. If provided, it overrides the code parsed from the URL.

## `results_wanted` (type: `integer`):

Maximum number of reviews to save.

## `max_pages` (type: `integer`):

Maximum review pages to request. Each page can contain up to 50 reviews.

## `sort_by` (type: `string`):

Review sorting mode.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy for reliable runs at scale.

## Actor input object example

```json
{
  "startUrl": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
  "results_wanted": 20,
  "max_pages": 5,
  "sort_by": "DATE",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrl": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
    "results_wanted": 20,
    "max_pages": 5,
    "sort_by": "DATE"
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/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 = {
    "startUrl": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
    "results_wanted": 20,
    "max_pages": 5,
    "sort_by": "DATE",
}

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/viator-review-scraper").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 '{
  "startUrl": "https://www.viator.com/tours/Rome/Colosseum-and-Ancient-Rome-Tour-with-Roman-Forum-and-Palatine-Hill/d511-3731COLOSSEUM",
  "results_wanted": 20,
  "max_pages": 5,
  "sort_by": "DATE"
}' |
apify call shahidirfan/viator-review-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Viator Review Scraper ⭐",
        "description": "Extract reviews from Viator tours and experiences with ease. Collect ratings, review titles, full review text, reviewer names, dates, traveler types, languages, and more. Perfect for market research, reputation monitoring, sentiment analysis, and competitive intelligence.",
        "version": "0.0",
        "x-build-id": "qGvHpLjhMcRKcEB71"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shahidirfan~viator-review-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shahidirfan-viator-review-scraper",
                "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/shahidirfan~viator-review-scraper/runs": {
            "post": {
                "operationId": "runs-sync-shahidirfan-viator-review-scraper",
                "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/shahidirfan~viator-review-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-shahidirfan-viator-review-scraper",
                "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",
                "properties": {
                    "startUrl": {
                        "title": "Viator product URL",
                        "type": "string",
                        "description": "A Viator product URL, for example a tour page ending in /d511-3731COLOSSEUM."
                    },
                    "product_code": {
                        "title": "Product code",
                        "type": "string",
                        "description": "Optional Viator product code. If provided, it overrides the code parsed from the URL."
                    },
                    "results_wanted": {
                        "title": "Reviews wanted",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of reviews to save.",
                        "default": 20
                    },
                    "max_pages": {
                        "title": "Maximum pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum review pages to request. Each page can contain up to 50 reviews.",
                        "default": 5
                    },
                    "sort_by": {
                        "title": "Sort reviews by",
                        "enum": [
                            "DATE",
                            "RATING",
                            "BEST_MATCH",
                            "HELPFUL_VOTES",
                            "ML_SORTED"
                        ],
                        "type": "string",
                        "description": "Review sorting mode.",
                        "default": "DATE"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Proxy for reliable runs at scale.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
