# Agoda Reviews Scraper (`romy/agoda-reviews-scraper`) Actor

Bulk Agoda guest reviews for one or more hotels: rating, text, date, traveler type, and a review-score breakdown. No login needed.

- **URL**: https://apify.com/romy/agoda-reviews-scraper.md
- **Developed by:** [Romy](https://apify.com/romy) (community)
- **Categories:** Travel
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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?

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

## Agoda Reviews Scraper

Bulk guest reviews for one or more Agoda properties: rating, text, date,
traveler type, room type, and (optionally) a per-property review-score
breakdown. No account, login or app needed.

This is a narrow, run-based spin-off of the
[Agoda All-in-One API](../agoda-all-in-one-api) actor, built from the same
already-verified client code (`property-client.ts`'s `reviews()` and
`reviewScores()`), for people who just want a bulk dataset of reviews rather
than an always-on REST API.

### Why

Agoda's public app API needs no login and no request signing for reads — the
only quirk is a public per-app client key (`AG-Initiator-Api-Key`, baked into
every install, not a secret). Every parameter this actor exposes was
live-tested and classified as a real filter, a shaping/ordering flag, or
inert before being wired up.

- **Pagination is honest about its own limits.** Agoda's own review endpoint
  reports a total count that undercounts the real end of the list by roughly
  10%, and pages past the real end return stale/repeated/out-of-order items
  instead of an error. This actor stops on an empty page or a page that
  repeats a review id it already saw for that property — never by trusting
  the reported total.
- **PII is opt-in.** Reviewer display name, reviewer-uploaded photos, and the
  hotel's response text (which can name the guest) are excluded by default
  and only returned when `includeReviewerName` is set.

### Input

| Field | Required | Description |
| --- | --- | --- |
| `propertyIds` | yes | One or more Agoda property (hotel) ids. |
| `maxReviewsPerProperty` | no | Stop after this many reviews per property (default 200, spending guard — large hotels have thousands). |
| `sort` | no | `recent` (default), `highest`, `lowest`, `helpful`. |
| `traveler` | no | Traveler-group filter: `all` (default), `business`, `couple`, `solo`, `family_young_children`, `family_teens`, `group`. |
| `languageIds` | no | Filter to these review-language ids. Switches Agoda's API to "filter mode" (server-fixed ~50-70 items/page, ignores `pageSize`). |
| `roomTypeIds` | no | Filter to these room-type ids. Also switches to filter mode. |
| `provider` | no | Keep only `agoda` or `booking.com` reviews (client-side filter on Agoda's merged response). Omit for both. |
| `includeReviewerName` | no | Default `false`. Opt-in for reviewer display name, uploaded photos, and hotel-response text — personal data. |
| `includeReviewScores` | no | Default `true`. Also fetch and push one review-score-breakdown row per property. |

### Output

One dataset row per review (`type: "review"`), plus one summary row per
property (`type: "review-scores-summary"`) when `includeReviewScores` is
true. Each review row carries `propertyId`, `reviewId`, `provider`, `rating`,
`title`, `comment`, `positives`/`negatives`, dates, traveler group, room
type, and (opt-in) reviewer identity. Each summary row carries the combined
review score, per-provider score with category grades by traveler-group
demographic, and recommendation snippets.

### Pricing

Pay-per-event (PPE), tiered by Apify plan (FREE/BRONZE/SILVER/GOLD/PLATINUM/
DIAMOND = 100/92/85/78/72/68% of the FREE price). Priced in line with this
account's Agoda All-in-One API for the same events. See the Actor's Pricing
tab for exact current prices.

### Known limitations

- Review pagination cycles after roughly `total / pageSize + 10%` pages —
  this actor stops when a page comes back empty or repeats a review id
  already seen, rather than trusting Agoda's own reported total.
- `filter mode` (triggered by `languageIds`/`roomTypeIds`) ignores
  `maxReviewsPerProperty`'s page-size shaping — Agoda returns a server-fixed
  page size in that mode.
- Review-score category grades are aggregate only; Agoda does not expose a
  per-review score breakdown, only an overall `rating`.

### Getting started

```bash
npm install
npm run start:dev
```

# Actor input Schema

## `propertyIds` (type: `array`):

One or more Agoda property (hotel) ids.

## `maxReviewsPerProperty` (type: `integer`):

Stop after this many reviews per property. Defaults to 200 as a spending guard; raise it to collect more (large hotels have thousands).

## `sort` (type: `string`):

Order reviews are fetched (and paged) in.

## `traveler` (type: `string`):

Only reviews from this traveler-group demographic.

## `languageIds` (type: `array`):

Filter to these review-language ids (from the review endpoint's own filtersAvailable.Language). Switches Agoda's API to "filter mode", which ignores the per-page size and returns a server-fixed ~50-70 items per page.

## `roomTypeIds` (type: `array`):

Filter to these room-type ids (matches the /rooms endpoint's roomTypeId). Also switches Agoda's API to "filter mode" (see languageIds).

## `provider` (type: `string`):

Keep only this provider's reviews (client-side filter on Agoda's merged response). Leave empty for both.

## `includeReviewerName` (type: `boolean`):

Adds the reviewer's display name, uploaded photos, and the hotel's response text (which can name the guest) to each review. This is personal data; leave off unless you need it.

## `includeReviewScores` (type: `boolean`):

Adds one row per property with the combined review score, per-provider score, category grades by traveler group, and recommendation snippets.

## Actor input object example

```json
{
  "propertyIds": [
    "14654101"
  ],
  "maxReviewsPerProperty": 200,
  "sort": "recent",
  "traveler": "all",
  "includeReviewerName": false,
  "includeReviewScores": true
}
```

# Actor output Schema

## `dataset` (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 = {
    "propertyIds": [
        "14654101"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/agoda-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 = { "propertyIds": ["14654101"] }

# Run the Actor and wait for it to finish
run = client.actor("romy/agoda-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 '{
  "propertyIds": [
    "14654101"
  ]
}' |
apify call romy/agoda-reviews-scraper --silent --output-dataset

```

## MCP server setup

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