{
  "openapi": "3.0.1",
  "info": {
    "title": "Trip.com Hotels Prices Scraper: Rates by Date, No Login",
    "description": "Scrape Trip.com hotel prices for your dates, with taxes, ratings, coordinates and full addresses, to compare rates across cities and track price changes. No login. Search any city, read exact hotels or collect guest reviews.",
    "version": "0.1",
    "x-build-id": "9DnsfQx7atLWM1YX2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~trip-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-trip-com-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/cliqtomedia~trip-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-trip-com-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/cliqtomedia~trip-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-trip-com-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": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "hotels",
              "hotelDetails",
              "reviews"
            ],
            "type": "string",
            "description": "Hotels lists hotels with prices for your dates. Hotel details reads exact hotels by ID or link, without a price. Reviews collects guest reviews of exact hotels.",
            "default": "hotels"
          },
          "destination": {
            "title": "Destination",
            "maxLength": 100,
            "type": "string",
            "description": "City, area, station or hotel, as you would type it on Trip.com. Example: Tokyo. The matchedPlace field shows what the site searched."
          },
          "extraDestinations": {
            "title": "More destinations",
            "maxItems": 50,
            "type": "array",
            "description": "More places in the same run, up to 50.",
            "items": {
              "type": "string",
              "maxLength": 100
            }
          },
          "cityIds": {
            "title": "City IDs",
            "maxItems": 50,
            "type": "array",
            "description": "Exact Trip.com city numbers, up to 50. The number is the city part of a list link, for example 228 for Tokyo. Use it when a name is ambiguous.",
            "items": {
              "type": "integer"
            }
          },
          "startUrls": {
            "title": "Trip.com links",
            "type": "array",
            "description": "Hotel list or hotel page links from trip.com, up to 200. If you leave the date fields empty, the dates in the link are used. Filters in a list link are always used.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "hotelIds": {
            "title": "Hotel IDs",
            "maxItems": 500,
            "type": "array",
            "description": "Exact hotel numbers, up to 500. Example: 704030. The number is in the hotel link after hotel-detail-.",
            "items": {
              "type": "string",
              "maxLength": 20
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Arrival date, or a date relative to the run day like 30 days. Empty means 30 days from the run day."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Departure date, up to 30 nights after check-in. Empty means the day after check-in."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 36,
            "type": "integer",
            "description": "Adults in the whole booking, at least one per room. Empty means the number in a Trip.com link, otherwise 2."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children's ages",
            "maxItems": 8,
            "type": "array",
            "description": "One age for each child, 0 to 17, up to 8 children. Example: [5, 9].",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "AUD",
              "CAD",
              "SGD",
              "HKD",
              "KRW",
              "THB",
              "CNY",
              "TWD",
              "MYR",
              "IDR",
              "PHP",
              "VND",
              "INR",
              "NZD",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "AED",
              "SAR",
              "RUB",
              "BRL",
              "MXN"
            ],
            "type": "string",
            "description": "Currency of the prices.",
            "default": "USD"
          },
          "locale": {
            "title": "Language and market",
            "enum": [
              "en-US",
              "en-GB",
              "en-SG",
              "en-AU",
              "ja-JP",
              "ko-KR",
              "zh-HK",
              "th-TH",
              "de-DE",
              "fr-FR",
              "es-ES",
              "ru-RU"
            ],
            "type": "string",
            "description": "Language of names and the market of the price. en-US gives both the nightly price and the total with taxes. In en-GB, en-AU, de-DE, fr-FR and es-ES the site shows only the total, so the price field stays empty. ja-JP does the same for one-night stays.",
            "default": "en-US"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recommended",
              "priceLow",
              "priceHigh",
              "topReviewed",
              "stars"
            ],
            "type": "string",
            "description": "Order of the site's list.",
            "default": "recommended"
          },
          "starRatings": {
            "title": "Stars",
            "maxItems": 5,
            "type": "array",
            "description": "Keep hotels with these star ratings. Example: [4, 5]. Hotels without stars are left out.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          "minRating": {
            "title": "Lowest guest rating",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Keep hotels rated at least this, from 0 to 10. Hotels without a rating are left out."
          },
          "minReviews": {
            "title": "Fewest reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep hotels with at least this many reviews."
          },
          "minPrice": {
            "title": "Lowest nightly price",
            "minimum": 0,
            "type": "number",
            "description": "Per night before taxes, in the chosen currency."
          },
          "maxPrice": {
            "title": "Highest nightly price",
            "minimum": 0,
            "type": "number",
            "description": "Per night before taxes, in the chosen currency."
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Show hotels and prices with free cancellation. The price becomes the price of that rate.",
            "default": false
          },
          "breakfastIncluded": {
            "title": "Breakfast included only",
            "type": "boolean",
            "description": "Show hotels and prices with breakfast. The price becomes the price of that rate.",
            "default": false
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Keep only these property types. Empty keeps all.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "resort",
                "inn",
                "motel",
                "hostel",
                "capsule",
                "servicedApartment",
                "loveHotel"
              ],
              "enumTitles": [
                "Hotel",
                "Resort",
                "Inn",
                "Motel",
                "Hostel",
                "Capsule hotel",
                "Serviced apartment",
                "Love hotel"
              ]
            }
          },
          "includeSponsored": {
            "title": "Keep sponsored places",
            "type": "boolean",
            "description": "Keep paid places of the list. Such rows have isAd set to true.",
            "default": true
          },
          "includeUnavailable": {
            "title": "Keep hotels you cannot book",
            "type": "boolean",
            "description": "Keep hotels that are sold out or have no rate for your dates. Each one is charged as a hotel, and most have no price. Off by default, so you pay only for hotels with a rate.",
            "default": false
          },
          "includeHotelDetails": {
            "title": "Add address and details",
            "type": "boolean",
            "description": "Read each hotel page for the full address, description, amenities and check-in time, at no extra charge. Turn it off for a faster run.",
            "default": true
          },
          "maxItems": {
            "title": "Most hotels in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many hotels. In the Guest reviews mode, this also limits all reviews. With a monitor name, it limits hotels checked.",
            "default": 100
          },
          "maxItemsPerDestination": {
            "title": "Most hotels per destination",
            "minimum": 1,
            "type": "integer",
            "description": "Limit for each destination. Empty means no separate limit."
          },
          "maxPages": {
            "title": "Most pages per destination",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Limit of list pages for each destination, and of review pages for each hotel. A list page gives about 5 new hotels. The run also stops at the row limits above.",
            "default": 500
          },
          "maxReviewsPerHotel": {
            "title": "Reviews per hotel",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "In the Hotels mode, adds up to this many reviews for each hotel. In the Guest reviews mode, 0 means 100.",
            "default": 0
          },
          "reviewsSortBy": {
            "title": "Sort reviews by",
            "enum": [
              "relevant",
              "newest",
              "ratingHigh",
              "ratingLow"
            ],
            "type": "string",
            "description": "Order in which the site gives reviews.",
            "default": "newest"
          },
          "minReviewScore": {
            "title": "Lowest review score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Keep reviews scored at least this, from 0 to 10."
          },
          "maxReviewScore": {
            "title": "Highest review score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Keep reviews scored at most this, from 0 to 10."
          },
          "reviewsFrom": {
            "title": "Reviews from",
            "type": "string",
            "description": "Keep reviews written on this date or later."
          },
          "reviewsTo": {
            "title": "Reviews to",
            "type": "string",
            "description": "Keep reviews written on this date or earlier."
          },
          "reviewLanguages": {
            "title": "Review languages",
            "maxItems": 50,
            "type": "array",
            "description": "Keep reviews in these languages, as two-letter codes. Example: en, ja.",
            "items": {
              "type": "string",
              "maxLength": 10
            }
          },
          "onlyWithMedia": {
            "title": "Only reviews with photos",
            "type": "boolean",
            "description": "Keep only reviews that have photos.",
            "default": false
          },
          "stateName": {
            "title": "Monitor name",
            "pattern": "^[a-z0-9-]{1,50}$",
            "type": "string",
            "description": "Set a name to save only hotels new to this monitor and hotels whose price changed since its last run. Use fixed dates, because other dates count as new prices. Lowercase letters, digits and dashes, up to 50."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy works by default. Change it only if the site starts to block the run. Residential groups are not available here and fall back to the default.",
            "default": {
              "useApifyProxy": true
            }
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Leave empty to let the connector decide."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}