{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Scraper - Hotels, Prices, Ratings & Availability",
    "description": "Scrape Booking.com hotels for your dates and guests: total and per-night price, taxes, discounts, free cancellation, rating, stars, room, availability, location and coordinates. Optional property details, featured guest reviews and a price-change monitor. Pay per property, no start fee.",
    "version": "0.1",
    "x-build-id": "xwVyJG3qJRea144Mf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rjmacarthy~booking-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rjmacarthy-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/rjmacarthy~booking-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rjmacarthy-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/rjmacarthy~booking-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rjmacarthy-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "What you would type into Booking.com's search box, one per line: a city, region, district or landmark, e.g. \"Paris\", \"Barcelona, Spain\" or \"Times Square\". Each location is one search.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Booking.com search URLs",
            "type": "array",
            "description": "Optional. Paste Booking.com search result URLs (https://www.booking.com/searchresults.html?ss=...). Dates, guests, sort order and filters in the URL are kept; anything missing comes from the fields below.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Arrival date. Empty = tomorrow. Prices in the output are for exactly these dates."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Departure date. Empty = one night after check-in. Booking.com allows up to 90 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adult guests.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One line per child with the child's age (0-17), e.g. 4 and 9 for two children. Empty = no children.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for prices, e.g. USD, EUR, GBP, JPY. The min/max price filters use this currency too.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Booking.com language code for property names, descriptions and labels, e.g. en-gb, en-us, de, fr, es, it, nl, ja.",
            "default": "en-gb"
          },
          "maxItems": {
            "title": "Max properties per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search after this many properties. 0 = as many as can be reached (big cities list thousands; mind the page request cap below). Booking.com serves about 15-25 properties per results page; beyond the first page the Actor splits the search into smaller sets (property type, stars, district) and removes duplicates, usually 10-20 new properties per extra page.",
            "default": 25
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "price",
              "price_high",
              "review_score",
              "distance",
              "stars"
            ],
            "type": "string",
            "description": "Order of the first results page. Booking.com does not let later pages follow this order, so properties after the first page come from smaller sets of the same search (property type, stars, district) without duplicates.",
            "default": "popularity"
          },
          "minPrice": {
            "title": "Min price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties from this price per night (in the currency above)."
          },
          "maxPrice": {
            "title": "Max price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties up to this price per night (in the currency above)."
          },
          "minReviewScore": {
            "title": "Min guest review score",
            "enum": [
              "",
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Only properties rated at least this by guests (Booking.com scores 1-10).",
            "default": ""
          },
          "stars": {
            "title": "Star rating",
            "type": "array",
            "description": "Only properties with these star ratings. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these kinds of property. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "apartment",
                "aparthotel",
                "hostel",
                "guest_house",
                "bed_and_breakfast",
                "holiday_home",
                "villa",
                "homestay",
                "resort",
                "motel",
                "campsite"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Aparthotels",
                "Hostels",
                "Guest houses",
                "Bed and breakfasts",
                "Holiday homes",
                "Villas",
                "Homestays",
                "Resorts",
                "Motels",
                "Campsites"
              ]
            }
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only properties with a free-cancellation rate for your dates.",
            "default": false
          },
          "includeDetails": {
            "title": "Include property details",
            "type": "boolean",
            "description": "Also open each property's page for its description, full facility list, every room type with its price for your dates, check-in/check-out times, pets policy, languages spoken, postal code and the photo gallery. One extra page per property, charged as \"hotel-details\".",
            "default": false
          },
          "monitorMode": {
            "title": "Price monitor",
            "enum": [
              "all",
              "changes"
            ],
            "type": "string",
            "description": "\"changes\" remembers each property's price for these exact dates and guests. The first run outputs every property it scans (the baseline); later runs output only properties whose price changed, with the previous price. Needs fixed check-in/check-out dates. Each results page checked is charged one \"monitor-check\". Schedule it daily to track prices for a trip or an event.",
            "default": "all"
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the saved price history. Use a different name for each monitor you schedule; the same name continues the same history.",
            "default": "default"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "reviews"
            ],
            "type": "string",
            "description": "\"search\" scrapes search results (everything above). \"reviews\" opens the property pages listed below and outputs the guest reviews Booking.com features there (up to 10 per property, chosen by Booking.com: score, liked and disliked text, date, room, traveller type and country; no reviewer names).",
            "default": "search"
          },
          "hotelUrls": {
            "title": "Property URLs (reviews mode)",
            "type": "array",
            "description": "Booking.com property pages, e.g. https://www.booking.com/hotel/fr/de-sevres-paris.html. Used only when mode is \"reviews\".",
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "Max reviews per property",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Reviews mode: at most this many reviews per property (Booking.com features up to 10 on the property page). 0 = all shown.",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Parallel page requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages are fetched at the same time (searches run in parallel; pages of one search follow each other).",
            "default": 5
          },
          "maxZyteRequests": {
            "title": "Max page requests per run",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Safety cap on page fetches per run. 0 = automatic (the pages your input needs plus 20%, at most 2,000). On the free Apify plan the cap is 5 pages per run.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}