{
  "openapi": "3.0.1",
  "info": {
    "title": "Trip.com Reviews Scraper - Hotel Ratings, Translations & Ctrip",
    "description": "Scrape Trip.com and Ctrip hotel reviews by hotel link, id, name or city: rating and 4 sub-scores, text with Trip.com's translation, stay date, room, traveller type, reviewer country, photos and hotel reply, plus each hotel's rating summary. $0.45 per 1,000 reviews, no start fee.",
    "version": "0.1",
    "x-build-id": "9c6kYaazx0L4cRceg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~trip-com-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-trip-com-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/topapi~trip-com-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-trip-com-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/topapi~trip-com-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-trip-com-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 links or ids",
            "type": "array",
            "description": "Trip.com hotel pages from any country site, Ctrip pages (hotels.ctrip.com/hotels/1286148.html, read in Chinese unless Output language is set) or bare hotel ids, e.g. \"346403\".",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔎 Hotel names",
            "type": "array",
            "description": "No link at hand? Type the hotel as you would in Trip.com's search box, e.g. \"Marina Bay Sands\", \"Grand Hyatt Shanghai\". The best hotel match is read; a city name reads that city's top hotels.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "🏙️ Cities",
            "type": "array",
            "description": "Whole destinations, e.g. \"Shanghai\", \"Tokyo\", \"Bangkok\", a Trip.com city id (\"2\") or a hotel-list link. Hotels come Top-reviewed first, then by Trip.com's other orders.",
            "items": {
              "type": "string"
            }
          },
          "maxHotels": {
            "title": "Max hotels per city",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Hotels to read per city (Top-reviewed first). Trip.com shows 10-12 per list view; the actor walks 5 sort orders, so up to about 50 distinct hotels.",
            "default": 10
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 0,
            "type": "integer",
            "description": "Reviews to deliver per hotel - the main cost control. 0 = every review the hotel has (big hotels carry 10,000-20,000; 100 a request).",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "mostRelevant",
              "mostRecent",
              "ratingHighToLow",
              "ratingLowToHigh"
            ],
            "type": "string",
            "description": "Trip.com's review orders. Empty = Most relevant (Most recent in monitoring mode). Most recent + a date below stops at the first older review, which keeps scheduled runs cheap."
          },
          "reviewFilter": {
            "title": "Review type",
            "enum": [
              "all",
              "positive",
              "negative",
              "withPhotos"
            ],
            "type": "string",
            "description": "Trip.com's review tabs: positive, negative (what guests complain about) or with photos / video."
          },
          "reviewLanguages": {
            "title": "Review languages",
            "type": "array",
            "description": "Keep reviews written in these languages. Empty = every language (Chinese hotels are mostly Chinese reviews, each with Trip.com's translation).",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "zh",
                "ja",
                "ko",
                "de",
                "fr",
                "es",
                "ru",
                "it",
                "pt",
                "nl",
                "pl",
                "tr",
                "ar",
                "th",
                "vi",
                "id",
                "ms"
              ],
              "enumTitles": [
                "English",
                "Chinese",
                "Japanese",
                "Korean",
                "German",
                "French",
                "Spanish",
                "Russian",
                "Italian",
                "Portuguese",
                "Dutch",
                "Polish",
                "Turkish",
                "Arabic",
                "Thai",
                "Vietnamese",
                "Indonesian",
                "Malay"
              ]
            }
          },
          "travellerTypes": {
            "title": "Traveller types",
            "type": "array",
            "description": "Keep reviews from these kinds of traveller. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "business",
                "couple",
                "family",
                "friends",
                "solo",
                "bookedForOthers",
                "other"
              ],
              "enumTitles": [
                "Business traveler",
                "Couple",
                "Family",
                "Traveling with friends",
                "Solo traveler",
                "Booked for others",
                "Other"
              ]
            }
          },
          "roomIds": {
            "title": "Room types (ids)",
            "type": "array",
            "description": "Only reviews of these room types, by Trip.com room id. Every hotel row lists its reviewed room types with ids and counts (roomTypes).",
            "items": {
              "type": "string"
            }
          },
          "topicTagIds": {
            "title": "Topics (tag ids)",
            "type": "array",
            "description": "Only reviews Trip.com tags with these topics, e.g. \"70\" (Delicious breakfast), \"85\" (Great location). Every hotel row lists its topics with ids and counts.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Output language",
            "enum": [
              "en-XX",
              "en-US",
              "en-GB",
              "zh-CN",
              "zh-HK",
              "zh-TW",
              "ja-JP",
              "ko-KR",
              "de-DE",
              "fr-FR",
              "es-ES",
              "it-IT",
              "ru-RU",
              "pt-PT",
              "pt-BR",
              "nl-NL",
              "pl-PL",
              "tr-TR",
              "sv-SE",
              "da-DK",
              "uk-UA",
              "el-GR",
              "ar-XX",
              "th-TH",
              "vi-VN",
              "id-ID",
              "ms-MY"
            ],
            "type": "string",
            "description": "Language of the labels (traveller type, room, rating word) and of Trip.com's translation (translatedContent). Reviews themselves stay as written. Chinese (Simplified) reads Ctrip's own answer."
          },
          "cutoffDate": {
            "title": "📅 Reviews since",
            "type": "string",
            "description": "Only reviews posted on or after this date: \"2026-01-01\", or an age such as \"30 days\" for a monthly schedule. Empty = every review."
          },
          "reviewsToDate": {
            "title": "📅 Reviews until",
            "type": "string",
            "description": "Only reviews posted on or before this date, e.g. \"2026-06-30\"."
          },
          "minRating": {
            "title": "Minimum rating (1-10)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Keep reviews rated at least this on Trip.com's 10-point scale, e.g. 8 for praise."
          },
          "maxRating": {
            "title": "Maximum rating (1-10)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Keep reviews rated at most this, e.g. 6 for complaints."
          },
          "keyword": {
            "title": "Text contains",
            "type": "string",
            "description": "Keep reviews whose text or translation contains this word, e.g. \"breakfast\", \"parking\", \"早餐\"."
          },
          "requireText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Skip rating-only reviews."
          },
          "includeHotelSummary": {
            "title": "Hotel rating summary row ($)",
            "type": "boolean",
            "description": "One extra row per hotel ($0.0013): name, stars, address, coordinates, overall + 4 sub-ratings vs similar hotels, review counts (positive, negative, with media), traveller / language / room / topic counts and Trip.com's AI summary.",
            "default": true
          },
          "includeFoldedReviews": {
            "title": "Include folded reviews",
            "type": "boolean",
            "description": "Trip.com folds some reviews away as repeats (Grand Hyatt Shanghai: 4,318 of 18,906). On = every review; off = only what the hotel page lists.",
            "default": true
          },
          "monitorMode": {
            "title": "Only new reviews (monitoring)",
            "type": "boolean",
            "description": "Remembers the reviews delivered for each hotel; later runs return only new ones and stop at the first known review (newest first). Pairs with a daily schedule. The hotel row is sent only when there are new reviews."
          },
          "monitorStoreName": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Optional name for the remembered state, e.g. \"my-hotels\". Use one name per watch list."
          },
          "maxTotalReviews": {
            "title": "Max reviews in total",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap on reviews for the whole run, across all hotels. 0 = no cap."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Trip.com answers without a proxy; a proxy you set is tried first."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Requests to Trip.com at the same time. The actor slows down by itself when Trip.com refuses a request.",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}