{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Scraper - Hotels, Prices & Availability",
    "description": "Scrape Booking.com hotels with live room prices, availability, discounts, taxes, review scores, star ratings, room types, free-cancellation & breakfast flags, photos and map coordinates. Search any destination, city, landmark or hotel by name or URL. Monitor price drops. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "yzZc6ePAUYYVSEzp4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~booking-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~booking-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~booking-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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": {
          "searchTerms": {
            "title": "Search terms (destinations or hotels)",
            "type": "array",
            "description": "What to search. Type a <b>destination</b> (<code>Paris</code>, <code>Bali</code>, <code>New York</code>, <code>Eiffel Tower</code>, <code>Schiphol Airport</code>) to get all matching hotels, or a <b>specific hotel name</b> (<code>Hotel Armoni Paris</code>) to fetch just that property. Each term is resolved with Booking's own autocomplete, so cities, regions, districts, landmarks, airports and individual hotels all work.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Booking.com URLs",
            "type": "array",
            "description": "Paste Booking.com <b>search results</b> URLs (<code>https://www.booking.com/searchresults.html?ss=Rome&dest_id=-126693&dest_type=city...</code>) or <b>hotel</b> URLs (<code>https://www.booking.com/hotel/fr/armoni-paris.html</code>). Dates, occupancy and on-page filters in the URL are honoured. Used in addition to the search terms above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "destinations": {
            "title": "Destination IDs (advanced)",
            "type": "array",
            "description": "Advanced: explicit Booking destination IDs as <code>destId:destType</code> (e.g. <code>-1456928:city</code>, <code>735:landmark</code>, <code>10096:hotel</code>). Types: <code>city</code>, <code>region</code>, <code>country</code>, <code>district</code>, <code>airport</code>, <code>landmark</code>, <code>hotel</code>.",
            "items": {
              "type": "string"
            }
          },
          "checkInDate": {
            "title": "Check-in date",
            "type": "string",
            "description": "Check-in date (YYYY-MM-DD) used to price rooms and check availability. Defaults to 14 days from today."
          },
          "checkOutDate": {
            "title": "Check-out date",
            "type": "string",
            "description": "Check-out date (YYYY-MM-DD). Defaults to the day after check-in."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adults for pricing.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "type": "integer",
            "description": "Number of children for pricing.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children ages",
            "type": "array",
            "description": "Ages of children (0–17). If left empty when children > 0, age 8 is assumed for each child.",
            "items": {
              "type": "string"
            }
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Number of rooms for pricing.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency for all prices (ISO code, e.g. <code>USD</code>, <code>EUR</code>, <code>GBP</code>, <code>AUD</code>).",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Booking language/locale for text fields (e.g. <code>en-us</code>, <code>en-gb</code>, <code>de</code>, <code>fr</code>, <code>es</code>).",
            "default": "en-us"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "price",
              "review_score_and_price",
              "bayesian_review_score",
              "class_descending",
              "class_ascending",
              "distance_from_search"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "popularity"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return hotels at or above this nightly-stay price (in the chosen currency). 0 = no limit. Applied server-side.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return hotels at or below this price (in the chosen currency). 0 = no limit.",
            "default": 0
          },
          "starRatings": {
            "title": "Star ratings",
            "type": "array",
            "description": "Only return hotels with these star classes. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minReviewScore": {
            "title": "Minimum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only return hotels with a guest review score at or above this value (0–10). Maps to Booking's buckets (9+ Superb, 8+ Very good, 7+ Good, 6+ Pleasant).",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep hotels with at least this many guest reviews (applied client-side after fetching).",
            "default": 0
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only return stays that offer free cancellation.",
            "default": false
          },
          "breakfastIncludedOnly": {
            "title": "Breakfast included only",
            "type": "boolean",
            "description": "Only return stays where breakfast is included.",
            "default": false
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only return these property types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "204",
                "201",
                "203",
                "205",
                "206",
                "208",
                "216",
                "220",
                "222",
                "223",
                "228"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Hostels",
                "Motels",
                "Resorts",
                "Bed and breakfasts",
                "Guest houses",
                "Villas",
                "Holiday homes",
                "Boats",
                "Country houses"
              ]
            }
          },
          "extraFilters": {
            "title": "Extra filters (advanced)",
            "type": "string",
            "description": "Advanced: raw Booking <code>nflt</code> filter codes, semicolon-separated, appended to the filters above (e.g. <code>hotelfacility=107;distance=1000</code>). Copy them from the <code>nflt=</code> part of a Booking search URL."
          },
          "includeRooms": {
            "title": "Include room offers",
            "type": "boolean",
            "description": "Include the <code>rooms</code> array (per available room offer: price, original price, free-cancellation deadline and meal plan).",
            "default": true
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum hotels to collect for each destination / search URL.",
            "default": 50
          },
          "maxResults": {
            "title": "Max results (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of hotels to scrape across all searches.",
            "default": 200
          },
          "deduplicateResults": {
            "title": "Deduplicate hotels",
            "type": "boolean",
            "description": "Skip a hotel if it was already emitted in this run (e.g. when it appears in two searches).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new & changed)",
            "type": "boolean",
            "description": "Remember each hotel's price and availability across runs (in a named key-value store) and output only hotels that are <b>new</b>, or whose <b>price changed</b> (price_drop / price_rise) or <b>availability changed</b> (sold_out / now_available). A <code>monitorChange</code> field is added to each record. Pair with Apify Schedules to track prices automatically. This does not conflict with the scheduler — the schedule triggers the run; monitor mode compares the run's results against earlier runs.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store used to remember prices across runs. Use different names to track different searches independently (lowercase letters, digits and hyphens).",
            "default": "booking-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many destination resolutions to run in parallel.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Apify Proxy (datacenter, US) works well for Booking.com's data host; switch to residential if you scrape at very high volume.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}