# Trip.com Ratings: Highest-Rated Reviews First

**Use case:** 

The reviews guests wrote when everything went right, highest score first and limited to those with a comment: quotable material with the sub-scores, the room type, travel type and reviewer country attached. Eighty from one Dubai tower hotel is a marketing team's afternoon; the same input with lowest_rated is the operations team's. Cost: 80 review rows at $0.004 = at most $0.32 a run.

## Input

```json
{
  "startUrls": [],
  "hotelIds": [
    "1551032"
  ],
  "maxReviewsPerHotel": 80,
  "reviewsSort": "highest_rated",
  "languages": [],
  "maxRating": 0,
  "requireText": true,
  "locale": "en-US",
  "includeHotelRow": true,
  "sessions": 4,
  "perIp": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "hotel_name": {
    "label": "Hotel name",
    "format": "string"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "rating_5": {
    "label": "Rating 5",
    "format": "number"
  },
  "rating_text": {
    "label": "Rating text",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "review_date": {
    "label": "Review date",
    "format": "string"
  },
  "check_in": {
    "label": "Check in",
    "format": "string"
  },
  "room_type": {
    "label": "Room type",
    "format": "string"
  },
  "travel_type": {
    "label": "Travel type",
    "format": "string"
  },
  "reviewer_name": {
    "label": "Reviewer name",
    "format": "string"
  },
  "reviewer_country": {
    "label": "Reviewer country",
    "format": "string"
  },
  "rating_location": {
    "label": "Rating location",
    "format": "number"
  },
  "rating_facility": {
    "label": "Rating facility",
    "format": "number"
  },
  "rating_service": {
    "label": "Rating service",
    "format": "number"
  },
  "rating_room": {
    "label": "Rating room",
    "format": "number"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "response": {
    "label": "Response",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Trip.com Reviews Scraper — Hotel Guest Reviews & Ratings](https://apify.com/kestrel/trip-com-reviews-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kestrel/trip-com-reviews-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/kestrel/trip-com-reviews-scraper.md

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`).
