{
  "openapi": "3.0.1",
  "info": {
    "title": "Trip Scraper | Hotels, Prices and Reviews",
    "description": "Trip.com hotel scraper (携程): type a city, landmark or hotel and get 50 hotels in 64 seconds, 55 fields each. Live nightly and total price with taxes, discount, cancellation, stars, guest score and sub-scores, address, coordinates, airport, facilities and photos. No login, CSV or JSON export in 2026.",
    "version": "1.0",
    "x-build-id": "Prr3Me1JrcVip1HHg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~trip-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-trip-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-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-trip-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-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-trip-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": {
          "searches": {
            "title": "📍 Destinations or hotels",
            "type": "array",
            "description": "What to look for, one per line: a city (<code>Paris</code>, <code>Tokyo</code>), an area (<code>Shibuya</code>), a landmark or station (<code>Eiffel Tower</code>), a hotel name (<code>Marina Bay Sands</code>) or a Trip.com hotel id (<code>717311</code>). A city is read area by area and gives several hundred hotels, an area gives the hotels inside it, a landmark gives the hotels around it closest first, a hotel name or id gives that one hotel. Set the cap to what you need.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Trip.com addresses",
            "type": "array",
            "description": "Or paste addresses copied from Trip.com, any country site: a hotel list (<code>https://www.trip.com/hotels/list?city=228</code>), a city page (<code>https://www.trip.com/hotels/paris-hotels-list-192/</code>) or a hotel page (<code>https://www.trip.com/hotels/detail/?hotelId=717311</code>). Dates, adults and currency written in a list address are used for that address when they are still bookable, and so are the filters you set on Trip.com (stars, price range, facilities).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "checkIn": {
            "title": "📅 Check-in",
            "type": "string",
            "description": "First night of the stay (<code>2026-10-15</code>). Prices, availability and cancellation terms are quoted for these dates. Leave empty to look two weeks ahead, when most of a city is still bookable."
          },
          "checkOut": {
            "title": "📅 Check-out",
            "type": "string",
            "description": "Departure date (<code>2026-10-18</code>). Leave empty for a one-night stay. Up to 30 nights: <code>totalPrice</code> covers the whole stay with taxes and fees, <code>pricePerNight</code> is the nightly rate of one room."
          },
          "maxItems": {
            "title": "🔢 Max hotels per destination",
            "minimum": 1,
            "type": "integer",
            "description": "How many hotels to save for each destination. A big city gives several hundred hotels in one run (Paris 400 on our test). Every row is completed from the hotel's own page, so <code>50</code> takes about a minute and <code>150</code> about three. A hotel name, id or hotel address gives one row whatever the cap.",
            "default": 50
          },
          "adults": {
            "title": "👥 Adults",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of adult guests, up to 20. <code>2</code> is what Trip.com shows by default. A large party can be priced over several rooms: the <code>rooms</code> column of each row tells how many.",
            "default": 2
          },
          "currency": {
            "title": "💱 Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "CNY",
              "HKD",
              "SGD",
              "AUD",
              "CAD",
              "KRW",
              "THB",
              "INR",
              "MYR",
              "IDR",
              "PHP",
              "VND",
              "TWD",
              "AED",
              "CHF",
              "NZD"
            ],
            "type": "string",
            "description": "Currency of every price on the rows. Trip.com converts at its own rate, so pick the one you report in.",
            "default": "USD"
          },
          "sortBy": {
            "title": "🔽 Sort by",
            "enum": [
              "recommended",
              "price_low_to_high",
              "price_high_to_low",
              "top_rated",
              "most_reviewed",
              "distance"
            ],
            "type": "string",
            "description": "<b>Recommended</b> is Trip.com's own ranking. The two <b>price</b> orders start from the cheapest or the most expensive nightly rate; <b>guest rating</b> puts the best scored first; <b>most reviewed</b> starts with the hotels guests talk about most; <b>distance</b> starts from the center, or from the landmark you typed. A landmark or station is always read closest first unless you pick another order.<br><br>Trip.com ranks each part of the city in your order; the scraper compares the hotels it read (your cap plus up to 100 more) and keeps the first ones. For the very cheapest or best rated of a whole city, raise the cap.",
            "default": "recommended"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}