# TopHotels Reviews Scraper (`one_house/tophotels-reviews-scraper`) Actor

Scrape hotel reviews, ratings, and detailed service scores from TopHotels.ru by hotel URL or ID.

- **URL**: https://apify.com/one\_house/tophotels-reviews-scraper.md
- **Developed by:** [One House](https://apify.com/one_house) (community)
- **Categories:** Travel, Other, E-commerce
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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/platform/actors/running/actors-in-store#pay-per-event

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

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

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

## TopHotels Hotel & Reviews Scraper

Extract **hotel aggregate stats** and **guest reviews** from [TopHotels.ru](https://tophotels.ru) using a normal hotel page URL or hotel ID.

Ideal for reputation monitoring, competitor analysis, and hospitality data pipelines focused on Russian-speaking travel markets.

### What you get

#### Hotel-level stats

These fields are attached to every review row. A full summary is also saved in the key-value store as `HOTEL_INFO_{hotelId}`.

- Overall rating (e.g. **4.62** on a 1–5 scale) and star class (e.g. **5**)
- Recommendation breakdown: **recommend %**, counts for recommend / abstain / not recommend
- Aggregate category scores: accommodation, service, food
- Total ratings & reviews count, plus count affecting the rating
- Engagement: likes, subscribers, visitors, currently at hotel, planned visits
- Review source split: tourists vs travel agents
- Yearly rating history (`ratingsByYear`: rating, change, reviews added per year)
- Hotel name, country, city, and location

#### Review-level data

- Review title, text, and type (full review, mini review, service rating, etc.)
- Overall rating on a **1–5** scale, plus accommodation / service / food scores
- Recommendation status (recommend, not recommend, abstain)
- Visit dates, trip type, and stay confirmation flag
- Detailed service category ratings (WiFi, beach, animation, rooms, etc.)
- Author name, city, profile stats, and engagement metrics (views, comments, useful votes)
- Full review text (enabled by default)
- Hotel / business replies to reviews (when posted by the property)

### How to use

1. Open this Actor and click **Start**
2. Add TopHotels hotel URLs under **Hotel URLs**, or paste hotel IDs under **Hotel IDs** (`327877` or `al327877`)
3. Set **Max reviews per hotel** (`0` = all available reviews)
4. **Fetch full review text** is enabled by default.

#### Finding the hotel ID

The hotel slug is in the URL:

- `https://tophotels.ru/hotel/al327877`
- Numeric ID: `327877`

### Input example

```json
{
  "startUrls": [
    {
      "url": "https://tophotels.ru/hotel/al327877"
    }
  ],
  "maxReviews": 100,
  "fetchFullText": true
}
````

### Output example

Each dataset item is one review. Hotel stats are denormalized onto each row for easy filtering and export:

```json
{
  "reviewId": "2789424",
  "reviewUrl": "https://tophotels.ru/review/2789424",
  "hotelId": "327877",
  "hotelSlug": "al327877",
  "hotelName": "Xanadu Makadi Bay 5*",
  "hotelUrl": "https://tophotels.ru/hotel/al327877",
  "hotelLocation": "Египет, Макади Бэй",
  "hotelRatingValue": 4.62,
  "hotelStarRating": 5,
  "hotelRecommendPercent": 83.2,
  "hotelRecommendCount": 326,
  "hotelAbstainCount": 36,
  "hotelNotRecommendCount": 30,
  "hotelAccommodationRating": 4.62,
  "hotelServiceRating": 4.62,
  "hotelFoodRating": 4.62,
  "hotelReviewCount": 481,
  "hotelListReviewCount": 477,
  "hotelRatingsAffectingCount": 218,
  "hotelLikesCount": 248,
  "hotelSubscribersCount": 239,
  "hotelVisitorsCount": 707,
  "hotelCurrentlyAtHotelCount": 2,
  "hotelPlannedVisitCount": 7,
  "title": "Суперотдых",
  "text": "В отеле понравилось абсолютно все...",
  "overallRating": 5,
  "ratingScale": 5,
  "accommodationRating": 5,
  "serviceRating": 5,
  "foodRating": 5,
  "recommendation": "recommend",
  "reviewType": "Мини отзыв",
  "visitDates": "04.06.26 - 13.06.26",
  "tripType": "Отдых парой",
  "authorName": "Владимир",
  "authorCity": "Сызрань",
  "source": "tophotels",
  "scrapedAt": "2026-07-14T18:45:00.000Z"
}
```

#### Hotel summary (`HOTEL_INFO_{hotelId}`)

The key-value store entry includes the same hotel fields plus `ratingsByYear`, `reviewsFromTourists`, and `reviewsFromAgents`:

```json
{
  "hotelId": "327877",
  "hotelSlug": "al327877",
  "hotelName": "Xanadu Makadi Bay 5*",
  "ratingValue": 4.62,
  "starRating": 5,
  "recommendPercent": 83.2,
  "reviewCount": 481,
  "listReviewCount": 477,
  "likesCount": 248,
  "visitorsCount": 707,
  "ratingsByYear": [
    { "year": 2026, "rating": 4.63, "change": 0.18, "reviewsAdded": 30 }
  ]
}
```

### Limitations

- Only public published reviews are returned.
- Hotel stats reflect the values visible on the hotel page at scrape time.

# Actor input Schema

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

TopHotels hotel page URLs. Example: https://tophotels.ru/hotel/al327877

## `hotelIds` (type: `array`):

TopHotels hotel IDs or slugs (e.g. 327877 or al327877). Alternative to URLs.

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

Maximum number of reviews to scrape per hotel. Set 0 for all available reviews.

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

How reviews are sorted.

## `fetchFullText` (type: `boolean`):

Include the full review text in each result. Enabled by default.

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

Optional Apify Proxy. Enable if requests are blocked.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://tophotels.ru/hotel/al327877"
    }
  ],
  "maxReviews": 100,
  "sort": "-date",
  "fetchFullText": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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": [
        {
            "url": "https://tophotels.ru/hotel/al327877"
        }
    ],
    "maxReviews": 100,
    "sort": "-date",
    "fetchFullText": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("one_house/tophotels-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 = {
    "startUrls": [{ "url": "https://tophotels.ru/hotel/al327877" }],
    "maxReviews": 100,
    "sort": "-date",
    "fetchFullText": True,
}

# Run the Actor and wait for it to finish
run = client.actor("one_house/tophotels-reviews-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 '{
  "startUrls": [
    {
      "url": "https://tophotels.ru/hotel/al327877"
    }
  ],
  "maxReviews": 100,
  "sort": "-date",
  "fetchFullText": true
}' |
apify call one_house/tophotels-reviews-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TopHotels Reviews Scraper",
        "description": "Scrape hotel reviews, ratings, and detailed service scores from TopHotels.ru by hotel URL or ID.",
        "version": "0.2",
        "x-build-id": "4fffnQJHclZFDjKWB"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/one_house~tophotels-reviews-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-one_house-tophotels-reviews-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/one_house~tophotels-reviews-scraper/runs": {
            "post": {
                "operationId": "runs-sync-one_house-tophotels-reviews-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/one_house~tophotels-reviews-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-one_house-tophotels-reviews-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": {
                    "startUrls": {
                        "title": "Hotel URLs",
                        "type": "array",
                        "description": "TopHotels hotel page URLs. Example: https://tophotels.ru/hotel/al327877",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "hotelIds": {
                        "title": "Hotel IDs",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "TopHotels hotel IDs or slugs (e.g. 327877 or al327877). Alternative to URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxReviews": {
                        "title": "Max reviews per hotel",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of reviews to scrape per hotel. Set 0 for all available reviews.",
                        "default": 500
                    },
                    "sort": {
                        "title": "Sort order",
                        "enum": [
                            "-date",
                            "date",
                            "-visitdate",
                            "-rating",
                            "-utility",
                            "-views"
                        ],
                        "type": "string",
                        "description": "How reviews are sorted.",
                        "default": "-date"
                    },
                    "fetchFullText": {
                        "title": "Fetch full review text",
                        "type": "boolean",
                        "description": "Include the full review text in each result. Enabled by default.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional Apify Proxy. Enable if requests are blocked.",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
