{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Search Scraper — Rooms, Rates, Reviews",
    "description": "Scrape Booking.com hotel search: nightly and total prices for your dates, every room and rate with cancellation terms, guest reviews, facilities and a year of availability. Hotel search data for any destination, no login.",
    "version": "0.1",
    "x-build-id": "qWhml0KdOhk8mAD5J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~booking-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-booking-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/lergassy~booking-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-booking-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/lergassy~booking-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-booking-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": {
          "mode": {
            "title": "🧭 What to get",
            "enum": [
              "search",
              "hotel",
              "reviews",
              "calendar"
            ],
            "type": "string",
            "description": "<b>Search</b> — properties for a destination and dates with prices. <b>Hotel</b> — one property in full: every room and rate for your dates, facilities, review scores, photos, child policy. <b>Reviews</b> — guest reviews of a property. <b>Calendar</b> — the price of every day ahead for a property.",
            "default": "search"
          },
          "destination": {
            "title": "📍 Destination",
            "type": "string",
            "description": "City, region, landmark or hotel name as you would type it on Booking.com, e.g. <code>Bali</code>, <code>Paris</code>, <code>Canggu</code>. Leave empty and paste search URLs below instead."
          },
          "hotelUrls": {
            "title": "🏨 Hotel URLs or ids (hotel, reviews, calendar modes)",
            "type": "array",
            "description": "Booking.com property pages, e.g. <code>https://www.booking.com/hotel/id/the-magani-amp-spa.html</code>, or numeric hotel ids from the <code>hotelId</code> field of search rows.",
            "items": {
              "type": "string"
            }
          },
          "checkin": {
            "title": "📅 Check-in",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. Prices exist only for concrete dates; leave empty for a stay 30 days from today."
          },
          "checkout": {
            "title": "📅 Check-out",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. Leave empty for two nights."
          },
          "adults": {
            "title": "👤 Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Guests aged 18 and over, across all rooms.",
            "default": 2
          },
          "childrenAges": {
            "title": "🧒 Children's ages",
            "type": "array",
            "description": "One age per child, e.g. <code>6</code>, <code>12</code>. Child prices and free-stay rules depend on age.",
            "items": {
              "type": "string"
            }
          },
          "rooms": {
            "title": "🛏️ Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "currency": {
            "title": "💱 Currency",
            "type": "string",
            "description": "ISO code for prices: <code>USD</code>, <code>EUR</code>, <code>IDR</code>, <code>GBP</code>, <code>AUD</code>… Every row also carries the price in the hotel's own currency.",
            "default": "USD"
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "top_picks",
              "price",
              "review_score",
              "stars",
              "distance",
              "popularity"
            ],
            "type": "string",
            "description": "Booking.com's own orderings.",
            "default": "top_picks"
          },
          "maxResults": {
            "title": "💯 Maximum properties",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Per run, across all destinations and URLs. Booking.com serves at most 1,000 properties per search — narrow with filters to reach the rest.",
            "default": 100
          },
          "includeRooms": {
            "title": "🛏️ Add every room and rate to search results ($)",
            "type": "boolean",
            "description": "For the first properties of the search (see the cap below), fetch the full room list with all rates, cancellation policies and meal plans — the same rows as Hotel mode. One extra request per property.",
            "default": false
          },
          "includeHotelDetails": {
            "title": "ℹ️ Add facilities and review scores to search results ($)",
            "type": "boolean",
            "description": "For the first properties of the search, fetch the facilities list, spoken languages and the review score breakdown (staff, cleanliness, location, value…). Two extra requests per property.",
            "default": false
          },
          "maxHotelsToEnrich": {
            "title": "Properties to enrich",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many search results get rooms / details when the options above are on.",
            "default": 20
          },
          "propertyTypes": {
            "title": "🏨 Property types",
            "type": "array",
            "description": "Keep only these kinds of places. Empty = everything.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "apartment",
                "villa",
                "resort",
                "guest_house",
                "bed_and_breakfast",
                "hostel",
                "holiday_home",
                "homestay",
                "aparthotel",
                "motel",
                "lodge",
                "chalet",
                "campsite",
                "capsule_hotel",
                "farm_stay",
                "luxury_tent",
                "boat"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Villas",
                "Resorts",
                "Guest houses",
                "Bed and breakfasts",
                "Hostels",
                "Holiday homes",
                "Homestays",
                "Aparthotels",
                "Motels",
                "Lodges",
                "Chalets",
                "Campsites",
                "Capsule hotels",
                "Farm stays",
                "Luxury tents",
                "Boats"
              ]
            }
          },
          "minStars": {
            "title": "⭐ Minimum stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1–5. Keeps properties with this star class or higher."
          },
          "minReviewScore": {
            "title": "💬 Minimum review score",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Guest score on Booking.com's 10-point scale: <code>8</code> for Very good, <code>9</code> for Wonderful."
          },
          "freeCancellationOnly": {
            "title": "↩️ Free cancellation only",
            "type": "boolean",
            "description": "Only rooms that can be cancelled for free.",
            "default": false
          },
          "breakfastIncluded": {
            "title": "🍳 Breakfast included only",
            "type": "boolean",
            "description": "Only rates with breakfast.",
            "default": false
          },
          "minPricePerNight": {
            "title": "💵 Minimum price per night",
            "minimum": 0,
            "type": "number",
            "description": "In the selected currency."
          },
          "maxPricePerNight": {
            "title": "💵 Maximum price per night",
            "minimum": 0,
            "type": "number",
            "description": "In the selected currency."
          },
          "rawFilters": {
            "title": "🧩 Extra Booking.com filters (nflt)",
            "type": "string",
            "description": "Any filter string from a Booking.com URL's <code>nflt</code> parameter, e.g. <code>hotelfacility=4;roomfacility=11</code> (pool, air conditioning). Combined with the filters above."
          },
          "reviewsSortBy": {
            "title": "💬 Reviews order",
            "enum": [
              "most_relevant",
              "newest",
              "oldest",
              "highest_score",
              "lowest_score"
            ],
            "type": "string",
            "description": "Reviews mode.",
            "default": "most_relevant"
          },
          "reviewsGuestType": {
            "title": "💬 Reviewer type",
            "enum": [
              "ALL",
              "FAMILIES",
              "COUPLES",
              "GROUP_OF_FRIENDS",
              "SOLO_TRAVELLERS",
              "BUSINESS_TRAVELLERS"
            ],
            "type": "string",
            "description": "Keep only reviews from this kind of guest.",
            "default": "ALL"
          },
          "reviewsLanguage": {
            "title": "💬 Reviews language",
            "type": "string",
            "description": "Two-letter code to keep only reviews written in that language, e.g. <code>en</code>, <code>de</code>, <code>ru</code>. Empty = all languages."
          },
          "maxReviewsPerHotel": {
            "title": "💬 Reviews per hotel",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest, most relevant or by score depending on the order; Booking serves 25 per page.",
            "default": 100
          },
          "calendarDays": {
            "title": "📆 Calendar days ahead",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Calendar mode: how many days from the check-in date to price (up to 365). One request per 61 days.",
            "default": 90
          },
          "startUrls": {
            "title": "🔗 Booking.com search URLs",
            "type": "array",
            "description": "Paste search-result URLs from the site with your own dates, guests, sorting and filters — each becomes a search. Used together with or instead of <b>Destination</b>.",
            "items": {
              "type": "string"
            }
          },
          "destinationId": {
            "title": "Destination id",
            "type": "string",
            "description": "Booking.com <code>dest_id</code> when you already know it (skips the name lookup). Needs <b>Destination type</b>."
          },
          "destinationType": {
            "title": "Destination type",
            "type": "string",
            "description": "<code>city</code>, <code>region</code>, <code>district</code>, <code>landmark</code>, <code>airport</code>, <code>hotel</code> or <code>country</code> — the <code>dest_type</code> that goes with the id."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of names, room titles and labels, as a Booking.com locale: <code>en-us</code>, <code>en-gb</code>, <code>de</code>, <code>fr</code>, <code>es</code>, <code>ru</code>, <code>id</code>…",
            "default": "en-us"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxies by default. If runs end with <code>bot-check</code> error rows, switch to <b>Residential</b> — a page of 25 properties transfers about 90 KB.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}