{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Scraper — Hotel Prices & Availability by Date",
    "description": "Booking.com hotel prices for exact dates and guests: every property in a destination or a list of hotels, each with its stay total and nightly price, taxes, free-cancellation and breakfast flags, stars, review score, location and optional room rates. No browser, no login. Pay per priced hotel.",
    "version": "1.1",
    "x-build-id": "DEudydWAtSrEgYgw7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kestrel~booking-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kestrel-booking-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/kestrel~booking-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kestrel-booking-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/kestrel~booking-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kestrel-booking-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": {
          "locationQueries": {
            "title": "Destinations",
            "type": "array",
            "description": "Places as you would type them into Booking.com's search box — a city, region, district, landmark, airport or country (\"Lisbon\", \"Algarve\", \"Times Square\", \"Portugal\"). Each becomes one search for your dates, paged up to maxHotelsPerQuery properties. Leave empty to price only the hotels below.",
            "items": {
              "type": "string"
            }
          },
          "maxHotelsPerQuery": {
            "title": "Max properties per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many properties to take from each destination search, in the order sortBy gives (Booking pages 100 at a time). The main cost control for destination runs.",
            "default": 50
          },
          "startUrls": {
            "title": "Hotel URLs",
            "type": "array",
            "description": "Booking.com property pages, e.g. https://www.booking.com/hotel/pt/memmo-alfama.html — each is priced on its own for your dates. Resolved through Booking's autocomplete (a URL carries no id).",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Hotel names",
            "type": "array",
            "description": "Property names as you would type them into Booking's search box, e.g. \"Memmo Alfama Lisbon\". The first matching property wins; check the status row's hotel_name.",
            "items": {
              "type": "string"
            }
          },
          "hotelIds": {
            "title": "Hotel ids",
            "type": "array",
            "description": "Booking's numeric property ids, e.g. 536251 — what an earlier run's hotel_id column holds. The fastest way to re-price a portfolio or a comp set every day.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "YYYY-MM-DD, or relative so a schedule never goes stale: \"30 days\", \"6 weeks\", \"tomorrow\". Check-out is checkIn + nights."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay. price_total is for the whole stay; price_nightly is the total divided by this.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Adults across all rooms. Booking prices the occupancy you ask for, so a solo traveller and a couple can see different rates.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0-17) per child, e.g. 5 and 9. Booking needs ages, not a count, to match family rooms and child policies.",
            "items": {
              "type": "string"
            }
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many rooms the guests need. With two rooms Booking returns two room blocks per property and the total covers both.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO code for every price (USD, EUR, GBP, …). The hotel's own currency is kept alongside in hotel_currency and price_hotel_currency_total.",
            "default": "USD"
          },
          "sortBy": {
            "title": "Sort destination results by",
            "enum": [
              "popularity",
              "price",
              "price_desc",
              "review_score",
              "review_score_and_price",
              "stars",
              "stars_asc",
              "stars_and_price",
              "distance",
              "homes_first"
            ],
            "type": "string",
            "description": "Booking's own sort orders. \"Top picks\" is personalised and shifts between pages; the price, review and star orders are stable and are what a price monitor should use.",
            "default": "popularity"
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 = every property. 1-5 = Booking's own star filter, applied by Booking before the results are fetched — filtered properties are never fetched or billed.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max nightly price",
            "minimum": 0,
            "type": "number",
            "description": "0 = every priced property. N = keep only properties whose nightly rate (stay total ÷ nights, in your currency) is N or less. Filtered properties are never delivered or billed; with this set, sold-out properties are dropped too.",
            "default": 0
          },
          "includeRooms": {
            "title": "Room-level rates",
            "type": "boolean",
            "description": "Also deliver one `room` row per room and rate combination Booking matched to the stay (name, occupancy, meal plan, price, free-cancellation deadline, \"only X left\"). Billed per room row.",
            "default": false
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Booking locale for the request, e.g. en-US, en-GB, de-DE, fr-FR. It sets the language of labels such as the meal plan and distance texts and the number format in price_display.",
            "default": "en-US"
          },
          "sessions": {
            "title": "Proxy sessions",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many proxy sessions (egress IPs) run in parallel. More is faster; each is paced separately.",
            "default": 4
          },
          "perIp": {
            "title": "Requests per second per session",
            "minimum": 0.1,
            "maximum": 3,
            "type": "number",
            "description": "Pace for each session. Booking answered 10 searches at 1/s from one IP with no refusals; a search takes 2-4 s anyway.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy with the RESIDENTIAL group is required: Booking's search call answers datacenter IPs with its WAF challenge, while residential IPs are served without cookies or tokens. Keep 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}