{
  "openapi": "3.0.1",
  "info": {
    "title": "Trip.com Hotels Scraper | $1.50 per 1k | Price Calendar",
    "description": "Scrape Trip.com hotels by city or hotel URL: price for your dates, stars, review score and sub-scores, district, coordinates, amenities, photos. Star, price, score and free-cancellation filters, price calendar across check-in dates. Never a silent empty run.",
    "version": "0.1",
    "x-build-id": "gsVBr6JSUBQ4M59ZI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidrows~tripcom-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidrows-tripcom-hotels-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/solidrows~tripcom-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidrows-tripcom-hotels-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/solidrows~tripcom-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidrows-tripcom-hotels-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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City names, Trip.com city IDs or Trip.com hotel list URLs. About 4,700 city names in 98 countries are built in (Paris, Rome, New York, Dubai, Bali, Tokyo, Phuket…); add the country when a name is ambiguous, e.g. \"Cambridge, United States\". For any other place use its ID: open trip.com, search hotels there and copy the number after city= in the address bar (https://www.trip.com/hotels/list?city=192 is Paris), or paste the whole URL. A list URL with your own listFilters is scraped as is (one page).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hotels": {
            "title": "Hotels (URLs or IDs)",
            "type": "array",
            "description": "Optional. Specific hotels to price and track: Trip.com hotel page URLs (https://www.trip.com/hotels/paris-hotel-detail-717490/… or /hotels/detail/?hotelId=717490) or hotel IDs. Each hotel gives one row per check-in date. Ideal for monitoring your own hotel and its competitors.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of rows to save in the whole run. One row is one hotel for one check-in date. Use 0 for no limit.",
            "default": 100
          },
          "maxHotelsPerCity": {
            "title": "Max hotels per city",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap of hotels for each city separately. 0 means no separate cap.",
            "default": 0
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Optional. Check-in date (YYYY-MM-DD). Empty = tonight, as Trip.com shows by default."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Optional. Check-out date (YYYY-MM-DD). Empty = one night after check-in."
          },
          "checkInDatesCount": {
            "title": "Price calendar: number of check-in dates",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Price the same hotels for several check-in dates and get one row per hotel and date. 1 = only the check-in date above. Example: 7 with a step of 1 gives a week of nightly prices; 8 with a step of 7 gives eight weekly samples. The stay length stays the same for every date. Each extra date costs one row per hotel.",
            "default": 1
          },
          "checkInStepDays": {
            "title": "Price calendar: days between check-in dates",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Step between the sampled check-in dates, in days. 1 = every day, 7 = same weekday every week.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adults (one room). Prices are shown for this number of guests.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of children (under 18) in the party. Prices and the rooms offered are for adults + children. 0 = adults only.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "string",
            "description": "Age of every child, comma-separated, e.g. \"5, 8\" (0-17). Trip.com prices a party by the children's ages. If you set only the number of children, each is priced as 8 years old; if you list more ages than the number above, every listed age counts as a child."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of rooms to price.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Price currency code, e.g. USD, EUR, GBP, JPY. Empty = Trip.com default for the site (USD on trip.com).",
            "default": "USD"
          },
          "language": {
            "title": "Language / site",
            "enum": [
              "en",
              "en-GB",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "ru",
              "tr",
              "ja",
              "ko",
              "th",
              "id",
              "vi",
              "ms",
              "zh-HK",
              "zh-TW"
            ],
            "type": "string",
            "description": "Which localized Trip.com site to read. Hotel names, review labels and amenity texts come in that language.",
            "default": "en"
          },
          "stars": {
            "title": "Star rating",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only hotels of these star classes. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars and below"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest nightly price, in the currency chosen above (Trip.com's Budget filter). 0 = no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Highest nightly price, in the currency chosen above. 0 = no maximum.",
            "default": 0
          },
          "minReviewScore": {
            "title": "Min guest review score",
            "enum": [
              "any",
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Trip.com's guest rating filter (10-point scale).",
            "default": "any"
          },
          "breakfastIncluded": {
            "title": "Breakfast included",
            "type": "boolean",
            "description": "Only hotels with a breakfast-included rate for your dates.",
            "default": false
          },
          "freeCancellation": {
            "title": "Free cancellation",
            "type": "boolean",
            "description": "Only hotels with a free-cancellation rate for your dates.",
            "default": false
          },
          "payAtHotel": {
            "title": "Pay at hotel",
            "type": "boolean",
            "description": "Only hotels with a pay-at-the-property rate.",
            "default": false
          },
          "propertyTypes": {
            "title": "Property type",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these property types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "serviced-apartment",
                "resort",
                "apartment",
                "guest-house",
                "bed-and-breakfast",
                "vacation-home",
                "villa",
                "homestay",
                "hostel",
                "inn",
                "campsite"
              ],
              "enumTitles": [
                "Hotel",
                "Serviced apartment",
                "Resort",
                "Apartment",
                "Guest house",
                "Bed and breakfast",
                "Vacation home",
                "Villa",
                "Homestay",
                "Hostel",
                "Inn",
                "Campsite"
              ]
            },
            "default": []
          },
          "sortBy": {
            "title": "Start with",
            "enum": [
              "recommended",
              "price-asc",
              "price-desc",
              "top-reviewed",
              "stars-desc"
            ],
            "type": "string",
            "description": "Which Trip.com order the first page is opened in, so the first rows are the cheapest, the best reviewed and so on. With a small Max rows this decides which hotels you get; larger runs then also walk the other orders to find more hotels.",
            "default": "recommended"
          },
          "includeDetails": {
            "title": "Open hotel pages (address, facilities, policies, review breakdown)",
            "type": "boolean",
            "description": "Also open each hotel page to add the full street address and postal code, country, number of rooms, opening year, description, check-in and check-out times, policies (children, pets, breakfast, deposit), all facilities by category, nearby places with distances, review sub-scores, review tags with counts, traveller types, Trip.com's review summary, top review excerpts, photos and FAQ. One extra page per hotel, charged as a separate event.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is used by default. Datacenter proxies work for Trip.com.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}