{
  "openapi": "3.0.1",
  "info": {
    "title": "Trip Reviews Scraper | Hotel Reviews and Ratings",
    "description": "Trip.com reviews scraper for Ctrip (携程点评) hotel reviews: 100 reviews in 3 seconds, 36 fields each. Get rating and sub-ratings, review text with English translation, room, trip type, reviewer country and level, the hotel's reply, photos and videos. Start from a hotel page, name or place. No login.",
    "version": "1.0",
    "x-build-id": "YVbhtovnY2w1yJ98n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~trip-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-trip-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/silentflow~trip-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-trip-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/silentflow~trip-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-trip-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": "🔗 Trip.com hotel pages",
            "type": "array",
            "description": "Hotel pages copied from Trip.com, any country site or the mobile site, or from Ctrip: <code>https://www.trip.com/hotels/singapore-hotel-detail-687592/marina-bay-sands-singapore/</code>, <code>https://www.trip.com/hotels/detail/?hotelId=346403</code>, <code>https://hotels.ctrip.com/hotels/426595.html</code>. A hotel's review page works too. A hotel list address (<code>https://www.trip.com/hotels/list?city=228</code>) gives the reviews of the hotels it shows first.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searches": {
            "title": "🔎 Hotel names or ids",
            "type": "array",
            "description": "No address at hand? Type the hotel as you would on Trip.com, one per line: <code>Marina Bay Sands</code>, <code>Grand Hyatt Shanghai</code>, or its Trip.com id <code>346403</code>. A city, an area or a landmark (<code>Shibuya</code>, <code>Eiffel Tower</code>) gives the reviews of the hotels Trip.com lists first there, about ten, the closest first around a landmark.",
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "🔢 Max reviews per hotel",
            "minimum": 1,
            "type": "integer",
            "description": "How many reviews to save for each hotel, each one a row. Big hotels have thousands on Trip.com (over 18,000 for Grand Hyatt Shanghai). 100 reviews take a few seconds; set the number you actually need.",
            "default": 100
          },
          "sortBy": {
            "title": "🔽 Sort reviews by",
            "enum": [
              "newest",
              "most_relevant",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "<b>Newest first</b> is the order to schedule: with a cutoff date, the run stops at the first older review. <b>Most relevant</b> is the order Trip.com shows on the hotel page. The two rating orders start with the best or the worst reviews.",
            "default": "newest"
          },
          "cutoffDate": {
            "title": "📅 Reviews since",
            "type": "string",
            "description": "Only keep the reviews published on or after this date: <code>2026-01-01</code>, or an age such as <code>30 days</code> for a monthly schedule. Leave empty for every review."
          },
          "reviewFilter": {
            "title": "⭐ Review type",
            "enum": [
              "all",
              "positive",
              "negative",
              "with_photos",
              "with_videos"
            ],
            "type": "string",
            "description": "The review tabs of Trip.com. <b>Negative reviews</b> shows what guests complain about; <b>with photos</b> and <b>with videos</b> keep the reviews that carry media, returned in the <code>images</code> and <code>videos</code> columns.",
            "default": "all"
          },
          "language": {
            "title": "🌐 Review language",
            "enum": [
              "all",
              "en",
              "zh",
              "ja",
              "ko",
              "fr",
              "de",
              "es",
              "it",
              "ru",
              "pt",
              "nl",
              "pl",
              "tr",
              "ar",
              "th",
              "vi",
              "id",
              "ms"
            ],
            "type": "string",
            "description": "Keep the reviews written in one language. In any language, many reviews also carry Trip.com's English translation in the <code>textTranslated</code> column.",
            "default": "all"
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}