{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Scraper (Prices, Scores, Price Changes)",
    "description": "Booking.com hotel prices for any destination and dates: price per stay and per night, stars, guest score and count, location, free cancellation, breakfast and rooms left. Keeps price history and can return only new properties and price changes. No login.",
    "version": "0.1",
    "x-build-id": "x67or8LoSLgNL0S6W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~booking-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-booking-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/locaihost~booking-scraper/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-booking-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/locaihost~booking-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-booking-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": {
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "Cities (Paris), areas (Shinjuku, Tokyo), airports or hotel names (Ritz Paris), as you would type them into Booking.com. A hotel name returns that one property. Booking.com links pasted here work too.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "YYYY-MM-DD, or a date from today like \"+14 days\" that moves with the calendar on scheduled runs. Empty means 14 days from today."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Empty means one night after check-in. At most 90 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Adults staying, 1 to 30. Prices are for the whole group.",
            "default": 2
          },
          "maxHotels": {
            "title": "Hotels per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Properties returned per destination, 1 to 1,000. 100 come in one Booking.com request.",
            "default": 25
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code for every price: USD, EUR, GBP, JPY, AUD, SGD and so on.",
            "default": "USD"
          },
          "startUrls": {
            "title": "Booking.com links",
            "type": "array",
            "description": "Search result links (their filters, dates and guests are kept unless you set your own) or property links (www.booking.com/hotel/fr/...). A property link returns that one property.",
            "items": {
              "type": "string"
            }
          },
          "hotelIds": {
            "title": "Hotel ids",
            "type": "array",
            "description": "Booking.com property ids (the hotelId column of an earlier run). The surest way to track the same properties every day.",
            "items": {
              "type": "string"
            }
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Rooms needed, 1 to 30.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0 to 17) per child, e.g. 4 and 9. Booking.com prices children by age.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "price",
              "review_score",
              "stars_desc",
              "stars_asc",
              "distance",
              "review_score_and_price"
            ],
            "type": "string",
            "description": "The order Booking.com lists properties in. Ranks in the output follow it.",
            "default": "popularity"
          },
          "stars": {
            "title": "Star ratings",
            "type": "array",
            "description": "Only properties with these star ratings. Empty means any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minReviewScore": {
            "title": "Lowest guest score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Only properties with a guest score of at least this (0 to 10, e.g. 8.5). Properties without reviews are left out."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these kinds of property. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "apartment",
                "hostel",
                "guesthouse",
                "bed_and_breakfast",
                "holiday_home",
                "villa",
                "aparthotel",
                "resort",
                "motel",
                "homestay",
                "campsite",
                "lodge",
                "boat"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Hostels",
                "Guest houses",
                "Bed and breakfasts",
                "Holiday homes",
                "Villas",
                "Aparthotels",
                "Resorts",
                "Motels",
                "Homestays",
                "Campsites",
                "Lodges",
                "Boats"
              ]
            }
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only offers you can cancel for free.",
            "default": false
          },
          "breakfastIncluded": {
            "title": "Breakfast included",
            "type": "boolean",
            "description": "Only offers with breakfast in the price.",
            "default": false
          },
          "minPrice": {
            "title": "Lowest price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties at or above this price per night, in the currency above."
          },
          "maxPrice": {
            "title": "Highest price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties at or below this price per night, in the currency above."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of names, room types and texts: en-us, en-gb, de, fr, es, it, ja and so on.",
            "default": "en-us"
          },
          "onlyPriceChanges": {
            "title": "Only new properties and price changes",
            "type": "boolean",
            "description": "For scheduled runs: return a property only when it is new to the search or its price moved since the last run. Everything else is skipped and not charged. The first run returns everything as the baseline.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}