{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Search Scraper | Prices by Dates",
    "description": "Get booking.com hotels and other properties for any destination and dates: total stay price, price per night, taxes and fees, rating, stars, address, coordinates, room, free cancellation and meal plan. Many destinations or search URLs per run, filters, currency of your choice, no login.",
    "version": "0.0",
    "x-build-id": "7PRYsrObKpoiPwdeZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~booking-com-hotel-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-booking-com-hotel-search-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/genial_candlestand~booking-com-hotel-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-booking-com-hotel-search-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/genial_candlestand~booking-com-hotel-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-booking-com-hotel-search-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": {
          "queries": {
            "title": "Destinations",
            "type": "array",
            "description": "Where to search, one per line: a city, region, district, landmark, country or hotel name as you would type it on booking.com (e.g. Lisbon, Algarve, Eiffel Tower), or a numeric booking.com city id (e.g. -2167973). Each destination is a separate search of up to 1000 properties. Give Destinations or Booking.com search URLs (or both).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Booking.com search URLs",
            "type": "array",
            "description": "Optional booking.com search result URLs (www.booking.com/searchresults.html?...). The destination, dates, guests, children ages, filters (nflt) and sort order in the URL are used for that search and override the fields below; currency, language, mode and limits still come from this form. Hotel page URLs are skipped with a warning.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Arrival date, YYYY-MM-DD. Empty = 30 days from today. Must be today or later and at most 500 days ahead (booking.com's calendar). Ignored when Mode is \"All properties\"."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Departure date, YYYY-MM-DD, after the check-in date; a stay is at most 90 nights. Empty = check-in + 1 night. Needs a check-in date."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "available",
              "all"
            ],
            "type": "string",
            "description": "Available: properties bookable for your dates and guests, with live prices. All properties: every listed property of the destination without dates, with ratings and locations but no prices; only the Stars and Property types filters apply there.",
            "default": "available"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adult guests (1–30). Prices are for this group.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms (1–30); cannot be more than the number of adults.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children ages",
            "type": "array",
            "description": "Age of each child at check-in, one number per child, 0–17, e.g. [4, 9]. Empty = no children. Family prices and availability depend on the ages.",
            "default": []
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "ISO 4217 code of the prices, e.g. USD, EUR, GBP, JPY. Always sent to booking.com, so prices do not depend on the proxy country. Min/Max price per night use this currency too.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-us",
              "en-gb",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pt-pt",
              "pt-br",
              "pl",
              "ru",
              "uk",
              "tr",
              "ja",
              "zh-cn",
              "ko",
              "ar",
              "sv",
              "da",
              "cs"
            ],
            "type": "string",
            "description": "Language of property names, rating words, distances and other texts.",
            "default": "en-us"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "price",
              "price_from_high_to_low",
              "review_score_and_price",
              "bayesian_review_score",
              "class",
              "class_asc",
              "distance_from_search",
              "upsort_bh"
            ],
            "type": "string",
            "description": "Order of the results, as on booking.com. The 1000-results cap applies to every order.",
            "default": "popularity"
          },
          "stars": {
            "title": "Stars",
            "type": "array",
            "description": "Only properties with any of these star classes, e.g. [\"4\", \"5\"]. Empty = any (also unrated properties). Works in both modes.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minRating": {
            "title": "Minimum guest rating",
            "enum": [
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Only properties with at least this review score (0–10 scale). Empty = any. Only in \"available\" mode."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these property types (any of them), as booking.com groups them (e.g. apartments also include aparthotels), e.g. [\"hotels\"]. Empty = all types. Works in both modes.",
            "items": {
              "type": "string",
              "enum": [
                "hotels",
                "apartments",
                "vacationHomes",
                "villas",
                "guesthouses",
                "bedAndBreakfasts",
                "hostels",
                "homestays",
                "chalets",
                "campgrounds",
                "boats",
                "capsuleHotels"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Vacation homes",
                "Villas",
                "Guesthouses",
                "Bed and breakfasts",
                "Hostels",
                "Homestays",
                "Chalets",
                "Campgrounds",
                "Boats",
                "Capsule hotels"
              ]
            }
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only offers with free cancellation. Only in \"available\" mode.",
            "default": false
          },
          "mealPlan": {
            "title": "Meals included",
            "enum": [
              "breakfast",
              "breakfastAndDinner",
              "allInclusive"
            ],
            "type": "string",
            "description": "Only offers with this meal plan. Empty = any. Only in \"available\" mode."
          },
          "minPrice": {
            "title": "Min price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price per night, in the Currency above (whole units). Only in \"available\" mode."
          },
          "maxPrice": {
            "title": "Max price per night",
            "minimum": 1,
            "type": "integer",
            "description": "Highest price per night, in the Currency above (whole units); at least Min price. Only in \"available\" mode."
          },
          "filters": {
            "title": "Advanced: booking.com filter string",
            "type": "string",
            "description": "Advanced: a raw booking.com filter string (the nflt URL parameter), key=value pairs joined by ';', e.g. hotelfacility=433;di=1947 (pool; Alfama district). Added to the filters above. booking.com ignores unknown keys without an error."
          },
          "maxResultsPerDestination": {
            "title": "Max results per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each destination after this many properties (1–1000; booking.com shows at most 1000 per search). A few rows can be missing when booking.com reshuffles results between pages; duplicates are dropped.",
            "default": 100
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on all results of the run across destinations. Empty = no cap besides Max results per destination."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. The default Apify datacenter proxy works; prices do not depend on the proxy country.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}