{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Prices Scraper",
    "description": "Booking.com Hotel Prices Scraper returns every bookable room rate of Booking.com hotels for your dates: price, taxes, discount, meal plan, cancellation deadline, rooms left, plus stay-length prices, market comparison and price-change tracking.",
    "version": "1.0",
    "x-build-id": "R9lZYFrZ9hRfExrwO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~booking-com-hotel-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-booking-com-hotel-prices-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/neuro-scraper~booking-com-hotel-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-booking-com-hotel-prices-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/neuro-scraper~booking-com-hotel-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-booking-com-hotel-prices-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": {
          "startUrls": {
            "title": "Booking.com hotel URLs",
            "type": "array",
            "description": "Hotel pages, e.g. https://www.booking.com/hotel/pt/pestana-palace.html (any language or query parameters - the dates below are used). Booking.com search result URLs pasted here are treated as searches.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchText": {
            "title": "Destination (search)",
            "type": "string",
            "description": "A city, region or landmark as you would type it on Booking.com, e.g. Lisbon. One destination per line. The properties found are then priced like hotel URLs (see Max properties per search)."
          },
          "searchUrls": {
            "title": "Booking.com search URLs",
            "type": "array",
            "description": "Booking.com search result URLs with your own filters (nflt=...), e.g. https://www.booking.com/searchresults.html?ss=Porto&nflt=class%3D4. The dates and guests below replace the ones in the URL.",
            "items": {
              "type": "string"
            }
          },
          "maxProperties": {
            "title": "Max properties per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many properties to take from EACH destination / search URL (in Booking's own order). More than one result page is read when needed.",
            "default": 10
          },
          "propertyType": {
            "title": "Property type (searches)",
            "enum": [
              "",
              "hotel",
              "apartment",
              "hostel",
              "villa",
              "guesthouse",
              "resort",
              "homestay"
            ],
            "type": "string",
            "description": "Only this kind of property in searches. Applied with Booking's own filter of that search.",
            "default": ""
          },
          "minReviewScore": {
            "title": "Min review score (searches)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Skip search results with a Booking review score below this value (0-10). 0 = no minimum.",
            "default": 0
          },
          "maxReviewScore": {
            "title": "Max review score (searches)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Skip search results with a review score above this value (0-10). 0 = no maximum.",
            "default": 0
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "First check-in date, YYYY-MM-DD, or +N for N days from today (e.g. +14). Empty = tomorrow."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Length of the stay in nights (check-out = check-in + nights).",
            "default": 1
          },
          "daysAhead": {
            "title": "Number of check-in dates",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many consecutive check-in dates to price, starting at the check-in date (1 = only that date, 30 = a month of daily prices).",
            "default": 1
          },
          "targetMonth": {
            "title": "Target month",
            "type": "string",
            "description": "YYYY-MM: price every check-in date of that month (the dates still in the future). Replaces the check-in date and the number of dates."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Adults in the booking.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Children in the booking.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0-17) per child, e.g. [4, 9]. Booking prices children by age.",
            "default": []
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms in the booking.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "CHF",
              "JPY",
              "INR",
              "AED",
              "SAR",
              "MAD",
              "BRL",
              "MXN",
              "SEK",
              "NOK",
              "DKK",
              "PLN",
              "TRY",
              "THB",
              "SGD",
              "HKD",
              "NZD",
              "ZAR"
            ],
            "type": "string",
            "description": "Currency of the prices.",
            "default": "USD"
          },
          "includeSoldOut": {
            "title": "Include sold-out room types",
            "type": "boolean",
            "description": "Also return a row for room types that are listed but sold out for the dates.",
            "default": true
          },
          "includeWholesaleRates": {
            "title": "Include partner / wholesale rates",
            "type": "boolean",
            "description": "Also return the rates Booking shows as partner offers (third-party / wholesale inventory). They are tagged is_wholesale = true.",
            "default": false
          },
          "includeLosAnalysis": {
            "title": "Multi-room prices",
            "type": "boolean",
            "description": "Add los_prices: the price Booking charges for booking 1, 2, 3 ... of the same room at once, and has_los_discount when several rooms are cheaper per room. No extra page loads.",
            "default": true
          },
          "includeStayLengthPrices": {
            "title": "Stay-length prices",
            "type": "boolean",
            "description": "Also price each check-in date for the stay lengths below (default 1, 2 and 7 nights): stay_length_prices per room, avgPrice1N / 2N / 7N, weekly discount, minimum stay. One extra page per stay length and date.",
            "default": true
          },
          "stayLengths": {
            "title": "Stay lengths to compare",
            "type": "array",
            "description": "Stay lengths in nights for the stay-length prices, e.g. [1, 2, 7].",
            "default": [
              1,
              2,
              7
            ]
          },
          "trackPriceChanges": {
            "title": "Track price changes",
            "type": "boolean",
            "description": "Remember every price in a named key-value store and compare with the previous run (schedule the Actor for daily tracking).",
            "default": true
          },
          "historyStoreName": {
            "title": "Price history store name",
            "type": "string",
            "description": "Name of the key-value store that keeps the price history between runs.",
            "default": "booking-price-history"
          },
          "tieredCadence": {
            "title": "Tiered cadence (cost saver)",
            "type": "boolean",
            "description": "On scheduled runs: price dates up to 14 days ahead every run, 15-60 days every 2 days and later dates every 3 days (the last capture day is kept in the history store).",
            "default": false
          },
          "myHotelUrl": {
            "title": "My hotel URL",
            "type": "string",
            "description": "Your own hotel's Booking.com URL - it is added to the run and flagged in the competitor comparison."
          },
          "maxRatesPerHotel": {
            "title": "Max rates per hotel and date",
            "minimum": 0,
            "type": "integer",
            "description": "Limit the rates returned per hotel and check-in date (0 = all).",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of rows in total.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Parallel browsers",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many hotels are read at the same time (one browser each).",
            "default": 5
          },
          "delayMin": {
            "title": "Min delay between reads (seconds)",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Lower bound of a random pause before each page read. 0 = no pause (fastest).",
            "default": 0
          },
          "delayMax": {
            "title": "Max delay between reads (seconds)",
            "minimum": 0,
            "maximum": 120,
            "type": "number",
            "description": "Upper bound of the random pause before each page read (>= the min delay).",
            "default": 0
          },
          "pageTimeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "How long one page read may take before it is retried on a new session.",
            "default": 60
          },
          "maxRetries": {
            "title": "Max retries per page",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many fresh sessions (new IP) a page is tried on before it is reported as not readable.",
            "default": 3
          },
          "webhookUrl": {
            "title": "Digest webhook URL",
            "type": "string",
            "description": "Optional URL that receives a JSON digest at the end of the run (cheapest price per hotel and date, price moves)."
          },
          "notifyOn": {
            "title": "When to send the webhook",
            "enum": [
              "always",
              "changes",
              "never"
            ],
            "type": "string",
            "description": "Every run, only when a price moved since the previous capture (needs Track price changes), or never.",
            "default": "always"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is recommended and is the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}