{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking Hotels Scraper - Search, Prices & Details",
    "description": "Scrape Booking.com hotels for any destination: live prices, ratings, reviews count, location, facilities and full detail pages. Real-time data, all filters, optional detail enrichment. Pay only per result - no subscription.",
    "version": "1.0",
    "x-build-id": "u5e8B8YilBpOG72d8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jdtpnjtp~booking-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jdtpnjtp-booking-hotels-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/jdtpnjtp~booking-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jdtpnjtp-booking-hotels-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/jdtpnjtp~booking-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jdtpnjtp-booking-hotels-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": {
          "location": {
            "title": "Destination (search a whole city/area)",
            "type": "string",
            "description": "Search an entire destination. Accepts a **city/area name** (`Paris`), a **Booking.com dest_id** (numeric), or a full **Booking.com search URL** - the actor resolves it automatically. Optional if you provide Start URLs below."
          },
          "startUrls": {
            "title": "Start URLs (specific Booking.com hotel pages)",
            "uniqueItems": true,
            "type": "array",
            "description": "Paste specific Booking.com hotel URLs to fetch their full detail directly - each is parsed into one detail row (charged as a detail event), independent of the destination search below.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max hotels (destination search)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper bound on hotels pulled for the destination search. 20 = quick sample, 100 = solid dataset. The actor paginates Booking.com (up to 100/page) under the hood to reach this number.",
            "default": 50
          },
          "includeDetails": {
            "title": "Also fetch full detail for each hotel",
            "type": "boolean",
            "description": "When on, every hotel search result is enriched with a second call that pulls its full detail page (complete facility list, description, check-in/out times, more photos). **This adds a `hotel-details` charge per hotel on top of the search-result event.** Leave off for a fast, cheap listing-only run.",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency for prices. Pick from the list or type any 3-letter ISO 4217 code.",
            "default": "USD"
          },
          "checkIn": {
            "title": "Check-in date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Optional. When both check-in and check-out are set, results carry real dated prices. Format `YYYY-MM-DD`."
          },
          "checkOut": {
            "title": "Check-out date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Optional. Pair with check-in for dated prices. Format `YYYY-MM-DD`."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Guests for dated pricing.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Children for dated pricing.",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms for dated pricing.",
            "default": 1
          },
          "sort": {
            "title": "Sort hotels by",
            "enum": [
              "popularity",
              "price",
              "price_low",
              "review_score",
              "review_and_price",
              "stars",
              "stars_asc",
              "distance"
            ],
            "type": "string",
            "description": "Order of search results. (Booking occasionally returns fewer results for the combined star+price sorts.)",
            "default": "popularity"
          },
          "priceMin": {
            "title": "Min price (per night)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest per-night price to include."
          },
          "priceMax": {
            "title": "Max price (per night)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest per-night price to include."
          },
          "minReviewScore": {
            "title": "Minimum guest score",
            "enum": [
              "",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Keep only hotels at or above this Booking.com guest score.",
            "default": ""
          },
          "stars": {
            "title": "Star class",
            "uniqueItems": true,
            "type": "array",
            "description": "Official hotel star class. Multi-select.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "★ 1 Star",
                "★★ 2 Star",
                "★★★ 3 Star",
                "★★★★ 4 Star",
                "★★★★★ 5 Star"
              ]
            },
            "default": []
          },
          "mealPlan": {
            "title": "Meal plan",
            "uniqueItems": true,
            "type": "array",
            "description": "Board basis. Multi-select.",
            "items": {
              "type": "string",
              "enum": [
                "breakfast",
                "half_board",
                "all_inclusive"
              ],
              "enumTitles": [
                "Breakfast included",
                "Half board",
                "All inclusive"
              ]
            },
            "default": []
          },
          "facilities": {
            "title": "Facilities",
            "uniqueItems": true,
            "type": "array",
            "description": "Required property facilities. Multi-select - pick by name, no IDs to look up.",
            "items": {
              "type": "string",
              "enum": [
                "free_wifi",
                "parking",
                "swimming_pool",
                "spa",
                "fitness_center",
                "airport_shuttle",
                "restaurant",
                "non_smoking_rooms",
                "front_desk_24h",
                "hot_tub",
                "ev_charging",
                "wheelchair_accessible",
                "room_service"
              ],
              "enumTitles": [
                "Free WiFi",
                "Parking",
                "Swimming pool",
                "Spa",
                "Fitness center",
                "Airport shuttle",
                "Restaurant",
                "Non-smoking rooms",
                "24h front desk",
                "Hot tub",
                "EV charging",
                "Wheelchair accessible",
                "Room service"
              ]
            },
            "default": []
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Keep only hotels offering a free-cancellation rate.",
            "default": false
          },
          "sustainable": {
            "title": "Sustainable travel only",
            "type": "boolean",
            "description": "Keep only properties flagged as sustainable by Booking.com.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}