{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotels Search Scraper",
    "description": "Search Booking.com hotels by place and dates: price for the stay with taxes, stars, review score, free cancellation, meal plan, district, coordinates, plus description, fine print, policies and room types. No login, fast.",
    "version": "0.4",
    "x-build-id": "3El1prWmGdhC9Fejv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deepmine~booking-hotels-rust/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deepmine-booking-hotels-rust",
        "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/deepmine~booking-hotels-rust/runs": {
      "post": {
        "operationId": "runs-sync-deepmine-booking-hotels-rust",
        "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/deepmine~booking-hotels-rust/run-sync": {
      "post": {
        "operationId": "run-sync-deepmine-booking-hotels-rust",
        "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": {
          "search": {
            "title": "Destination",
            "type": "string",
            "description": "A city, region, district or hotel name, as you would type it on Booking.com. One per line for several. Or use Booking search URLs below."
          },
          "startUrls": {
            "title": "Booking search URLs",
            "type": "array",
            "description": "Or paste searches from your browser (https://www.booking.com/searchresults.html?ss=...). The URL's destination, dates, guests, rooms, children's ages, filters (nflt), sort order and flexible dates are used for that search; this form's filters are added to the URL's. A hotel page URL (https://www.booking.com/hotel/...) gives that one hotel, for the URL's dates and guests or this form's.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "Default: 7 days from today. A date in the past (a saved task whose dates went by) moves to the default."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Default: the day after check-in."
          },
          "flexWindow": {
            "title": "Flexible dates",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "7"
            ],
            "type": "string",
            "description": "Booking's flexible dates: also list hotels available up to this many days before or after your dates (the search box's 'flexible dates'). Each row's flexWindow says which window was searched.",
            "default": "0"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Guests aged 18 and over.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "type": "integer",
            "description": "Counted as 8 years old; give exact ages in Children's ages.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Like [4, 9]. Overrides Children."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Rooms to book.",
            "default": 1
          },
          "maxItems": {
            "title": "Hotels per destination",
            "minimum": 1,
            "type": "integer",
            "description": "Hotels to save per destination or search URL. One Booking search pages through about 1,100 hotels; above that the Actor splits the search into price bands and merges them (one row per hotel), so a big city returns its full priced list."
          },
          "includeDetails": {
            "title": "Hotel details",
            "type": "boolean",
            "description": "A few small data calls per hotel to Booking's own hotel data (no page download). Adds the description, fine print, check-in and check-out times, minimum check-in age, pets, every facility by name, the most popular facilities, highlights, staff languages, child and extra-bed policy, sustainability, postal code and district, every room with its name, description, size, facilities and maximum guests, every room offer with its price for your dates (meal plan, cancellation, taxes left out with their amounts), and the hotel's surroundings (attractions, restaurants, transport, airports with distances). Included in the hotel price (no add-on). Turn off for the fastest price scan.",
            "default": true
          },
          "includeHotelPage": {
            "title": "Room offers and house rules",
            "type": "boolean",
            "description": "With Hotel details on: also get each hotel's room offers with prices for your dates, check-in and check-out times, named facilities and rooms, category scores, the photo gallery, the trader, licence and host details and the AI review summary. Read from Booking's own data calls (two small calls per hotel, no page download); turn it off to keep the description, policies, postal code and surroundings and finish faster. A row that could not read them still saves and names what it lacks in detailsStatus.",
            "default": true
          },
          "includePageOnlyDetails": {
            "title": "Include page-only details",
            "type": "boolean",
            "description": "With Hotel details on: also download each hotel's web page for the three facts only the page carries: the breadcrumb trail (country, region, city, district), the region in address.region and the upload date of each photo (roomImages created). Off by default, these three stay empty. Turning it on makes each hotel about ten times heavier to fetch and a few seconds slower.",
            "default": false
          },
          "sortBy": {
            "title": "Order hotels by",
            "enum": [
              "popularity",
              "price",
              "bayesian_review_score",
              "class",
              "class_asc",
              "distance_from_search"
            ],
            "type": "string",
            "description": "Order of the hotels, as on Booking.com.",
            "default": "popularity"
          },
          "starsCountFilter": {
            "title": "Stars",
            "type": "array",
            "description": "Only hotels with these star ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "unrated"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars",
                "Unrated"
              ]
            }
          },
          "minScore": {
            "title": "Minimum review score",
            "enum": [
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Only hotels with at least this guest review score."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "204",
              "201",
              "220",
              "203",
              "208",
              "216",
              "206",
              "213",
              "205"
            ],
            "type": "string",
            "description": "Only this kind of property.",
            "default": "any"
          },
          "minMaxPrice": {
            "title": "Price range per night",
            "type": "string",
            "description": "min-max in the chosen currency, like 50-200."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code: USD, EUR, GBP...",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Booking language code for labels: en-gb, en-us, de, fr, es...",
            "default": "en-gb"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is enough.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}