{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotels Scraper - Dated Prices & Rooms",
    "description": "Booking.com hotel search with dated pricing: per-night and total price, taxes and charges, price before discount, and every matched room offer with its meal plan and free-cancellation deadline. Drop-in compatible with voyager/booking-scraper. Filters are verified against Booking's echo.",
    "version": "1.0",
    "x-build-id": "8UQBauEbbmLEI1szz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/diopside~booking-hotels/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-diopside-booking-hotels",
        "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/diopside~booking-hotels/runs": {
      "post": {
        "operationId": "runs-sync-diopside-booking-hotels",
        "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/diopside~booking-hotels/run-sync": {
      "post": {
        "operationId": "run-sync-diopside-booking-hotels",
        "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": "City, region, landmark or address to search, exactly as you would type it on Booking.com."
          },
          "startUrls": {
            "title": "Or use Start URLs instead",
            "type": "array",
            "description": "Booking.com URLs to start from: search results (`/searchresults.html?ss=…` or `?dest_id=…&dest_type=city`), SEO destination pages (`/city/nl/amsterdam.html`) or a single property page (`/hotel/nl/…​.html`). Filters carried on the URL are applied; anything you set below wins on conflict.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results per destination or URL",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hotels to return per destination or URL. Booking stops serving new properties for one search past ~1000 results; the run reports it in the status message when that ceiling is what stopped it.",
            "default": 25
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD. Prices on Booking.com only exist for a given stay; leave both dates empty and the actor uses a 1-night stay 30 days out."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD. Defaults to the day after check-in."
          },
          "flexWindow": {
            "title": "Stay date flexibility (days)",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "7"
            ],
            "type": "string",
            "description": "Let Booking shift the stay up to this many days around your dates.",
            "default": "0"
          },
          "rooms": {
            "title": "Number of rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Rooms the price should cover.",
            "default": 1
          },
          "adults": {
            "title": "Number of adults",
            "minimum": 1,
            "type": "integer",
            "description": "Adults the price should cover.",
            "default": 2
          },
          "children": {
            "title": "Number of children",
            "minimum": 0,
            "type": "integer",
            "description": "Children the price should cover. Ages default to 8 unless you set Children ages.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children ages",
            "type": "array",
            "description": "One age (0-17) per child. Booking prices children by age, so setting this changes the price you get back. Not offered by the incumbent scraper.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "none",
              "Hotels",
              "Apartments",
              "Hostels",
              "Guest houses",
              "Homestays",
              "Bed and breakfasts",
              "Holiday homes",
              "Boats",
              "Villas",
              "Motels",
              "Resorts",
              "Holiday parks",
              "Campsites",
              "Luxury tents"
            ],
            "type": "string",
            "description": "Only return properties of this type. Resolved against the property-type list Booking returns for your destination, so an unavailable type fails loudly instead of being ignored.",
            "default": "none"
          },
          "sortBy": {
            "title": "Order results by",
            "enum": [
              "distance_from_search",
              "popularity",
              "bayesian_review_score",
              "price",
              "price_from_high_to_low",
              "class_asc",
              "class_descending",
              "review_score_and_price",
              "class_and_price",
              "upsort_bh"
            ],
            "type": "string",
            "description": "Hotel attribute by which the results will be ordered.",
            "default": "distance_from_search"
          },
          "minScore": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Minimum guest review score, in \"8.4\" format. Booking only offers 5.0/6.0/7.0/8.0/9.0 buckets, so the value is rounded down to the nearest one."
          },
          "starsCountFilter": {
            "title": "Stars count",
            "enum": [
              "any",
              "1",
              "2",
              "3",
              "4",
              "5",
              "unrated"
            ],
            "type": "string",
            "description": "Only return properties with this star rating.",
            "default": "any"
          },
          "minMaxPrice": {
            "title": "Price range",
            "type": "string",
            "description": "Minimum and maximum price per night, e.g. '100-150' or '100+'. In the currency below."
          },
          "currency": {
            "title": "Preferred currency",
            "enum": [
              "ARS",
              "AUD",
              "AZN",
              "BHD",
              "BRL",
              "BGN",
              "CAD",
              "XOF",
              "CLP",
              "CNY",
              "COP",
              "CZK",
              "DKK",
              "EGP",
              "EUR",
              "FJD",
              "GEL",
              "HKD",
              "HUF",
              "INR",
              "IDR",
              "ILS",
              "JPY",
              "JOD",
              "KZT",
              "KRW",
              "KWD",
              "MYR",
              "MXN",
              "MDL",
              "NAD",
              "TWD",
              "NZD",
              "NOK",
              "OMR",
              "PLN",
              "GBP",
              "QAR",
              "RON",
              "SAR",
              "SGD",
              "ZAR",
              "SEK",
              "CHF",
              "THB",
              "TRY",
              "AED",
              "USD",
              "UAH"
            ],
            "type": "string",
            "description": "Currency prices are returned in (ISO 4217).",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-gb",
              "en-us",
              "de",
              "nl",
              "fr",
              "es",
              "es-ar",
              "ca",
              "it",
              "pt-pt",
              "pt-br",
              "no",
              "fi",
              "sv",
              "da",
              "cs",
              "hu",
              "ro",
              "ja",
              "zh-cn",
              "zh-tw",
              "pl",
              "el",
              "ru",
              "tr",
              "bg",
              "ar",
              "ko",
              "he",
              "lv",
              "uk",
              "id",
              "ms",
              "th",
              "et",
              "hr",
              "lt",
              "sk",
              "sr",
              "sl",
              "vi",
              "tl",
              "is"
            ],
            "type": "string",
            "description": "Language Booking.com renders names and labels in.",
            "default": "en-gb"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Booking.com fronts every page with an AWS WAF challenge. The default Apify proxy is recommended; escalate to RESIDENTIAL if the challenge starts failing.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}