{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Search Scraper: Prices, Ratings & Rooms",
    "description": "Booking.com hotel search scraper: give a city, region, hotel name or search URL with dates and guests; get up to 1,000 hotels per search with stay and nightly price, taxes, stars, review score and count, room, free cancellation, breakfast and coordinates. For rate shopping and comp sets.",
    "version": "0.1",
    "x-build-id": "mLaeX8ar6P4QD99YU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~booking-hotel-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-booking-hotel-search",
        "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/siteacs~booking-hotel-search/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-booking-hotel-search",
        "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/siteacs~booking-hotel-search/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-booking-hotel-search",
        "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",
        "required": [
          "destinations"
        ],
        "properties": {
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "One per line: a city, region, district, landmark or hotel name as you would type it in Booking's search box, in any language or script (\"Lisbon\", \"Kraków\", \"東京\", \"Algarve\"), or a Booking.com search results URL copied from your browser. Typed places are looked up in Booking's own search-box suggestions; add the country when a name is used in several countries (\"Porto, Portugal\"). A hotel name gives that one hotel's row. A place Booking does not know gives one free place_not_found row. Two lines that reach the same Booking search are searched once. A URL's own dates, guests, filters and sort win over the fields below; a URL whose dates have passed uses the dates below.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "Arrival date (YYYY-MM-DD). Leave empty to use \"Check-in in N days\" instead."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Departure date (YYYY-MM-DD), 1 to 90 nights after check-in. Leave empty to use \"Nights\"."
          },
          "checkInInDays": {
            "title": "Check-in in N days",
            "minimum": 0,
            "maximum": 480,
            "type": "integer",
            "description": "Instead of a fixed date: check in this many days after the run starts, so a saved or scheduled run always prices a stay ahead. Used only when check-in is empty. With no dates at all, the stay starts in 14 days."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Length of the stay when check-out is empty (2 when not set)."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Booking prices each property for this many adults.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children (0-17). Booking needs each child's age; give them below, or each child counts as 8 years old."
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Ages at check-out, one per child, for example [4, 9]. Prices and room fit depend on them."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Rooms to book. Not more than the number of adults.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Prices come in this currency (3-letter code: USD, EUR, GBP, BRL, JPY...), converted by Booking as on its site.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-us",
              "en-gb",
              "de",
              "fr",
              "es",
              "es-ar",
              "it",
              "pt-pt",
              "pt-br",
              "nl",
              "pl",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "tr",
              "ru",
              "uk",
              "sv",
              "da",
              "no",
              "fi",
              "is",
              "et",
              "lv",
              "lt",
              "hr",
              "sr",
              "sl",
              "ca",
              "ja",
              "ko",
              "zh-cn",
              "zh-tw",
              "th",
              "vi",
              "id",
              "ms",
              "tl",
              "ar",
              "he",
              "hi"
            ],
            "type": "string",
            "description": "Language of property names, room types and the distance text, where Booking has a translation.",
            "default": "en-us"
          },
          "stars": {
            "title": "Stars",
            "type": "array",
            "description": "Booking's star filter: properties with any of these star ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minReviewScore": {
            "title": "Review score at least",
            "enum": [
              "any",
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Booking's review score filter (guest reviews, 1-10).",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Booking's budget filter, per night in the currency above."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 1,
            "type": "integer",
            "description": "Booking's budget filter, per night in the currency above. Booking applies its own rounding, so a few rows may sit slightly above it."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Booking's property type filter: any of these types.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "apartment",
                "hostel",
                "guesthouse",
                "bed_and_breakfast",
                "vacation_home",
                "villa",
                "resort",
                "motel",
                "condo_hotel",
                "homestay",
                "lodge",
                "campground",
                "boat",
                "farm_stay",
                "chalet",
                "country_house",
                "capsule_hotel",
                "ryokan",
                "riad",
                "luxury_tent",
                "inn"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Hostels",
                "Guesthouses",
                "Bed and breakfasts",
                "Vacation homes",
                "Villas",
                "Resorts",
                "Motels",
                "Condo hotels",
                "Homestays",
                "Lodges",
                "Campgrounds",
                "Boats",
                "Farm stays",
                "Chalets",
                "Country houses",
                "Capsule hotels",
                "Ryokans",
                "Riads",
                "Luxury tents",
                "Inns"
              ]
            }
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Booking's free cancellation filter."
          },
          "breakfastIncluded": {
            "title": "Breakfast included only",
            "type": "boolean",
            "description": "Booking's meal filter: breakfast included."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "price",
              "price_high",
              "review_score",
              "review_score_and_price",
              "stars_high",
              "stars_low",
              "distance",
              "homes_first"
            ],
            "type": "string",
            "description": "Booking's own sort orders.",
            "default": "popularity"
          },
          "maxResultsPerDestination": {
            "title": "Max results per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each destination after this many properties. Booking shows at most 1,000 for one search; split a big city by district, stars or price to get more.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per destination",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Booking's site shows 25 properties per page; this caps each destination at that many pages (2 pages = 50 properties). The lower of this and \"Max results\" applies."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Booking. Residential is not needed.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry refused requests on residential proxy",
            "type": "boolean",
            "description": "When Booking refuses a request on the proxy above, retry it on Apify residential proxy, within a traffic budget per run (5 MB plus 3 KB per saved property).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Destinations at a time",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many destinations are searched in parallel.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}