{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Scraper - Hotels, Prices, Rooms & Reviews",
    "description": "Scrape Booking.com hotels for any destination and dates: prices, taxes, stars, scores, free cancellation, full hotel pages with every room rate, and guest reviews. Pay per result.",
    "version": "1.0",
    "x-build-id": "zsWedOpZwfBRVEE89"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/extraordinary_grasshopper~booking-hotel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-extraordinary_grasshopper-booking-hotel-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/extraordinary_grasshopper~booking-hotel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-extraordinary_grasshopper-booking-hotel-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/extraordinary_grasshopper~booking-hotel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-extraordinary_grasshopper-booking-hotel-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": {
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "City, district, region, landmark or address as typed in the Booking.com search box, e.g. \"Paris\" or \"Shibuya, Tokyo\". One per line. Add the country for small or ambiguous places.",
            "items": {
              "type": "string"
            }
          },
          "hotelUrls": {
            "title": "Hotel URLs or IDs",
            "type": "array",
            "description": "Get full details (and reviews, if enabled) for these properties: booking.com/hotel/... links in any language, or numeric hotel IDs.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD, today or later. Set together with check-out. Without dates Booking.com prices its own default stay (returned in the checkin and checkout fields)."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD, after check-in (at most 90 nights)."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adults.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "string",
            "description": "Ages of the children (0-17), comma separated, e.g. \"5, 10\". Booking.com prices children by age. Leave empty for no children."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms; cannot exceed adults.",
            "default": 1
          },
          "maxHotelsPerDestination": {
            "title": "Max hotels per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stops paging once this many properties are collected (25 per page, Booking.com lists up to 1,000 per search).",
            "default": 50
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "popularity",
              "price",
              "price_desc",
              "review_score",
              "distance",
              "stars_desc",
              "stars_asc",
              "homes_first"
            ],
            "type": "string",
            "description": "Order of search results.",
            "default": "popularity"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO code for every price, e.g. USD, EUR, GBP, JPY. The price in the hotel's own currency is returned too.",
            "default": "USD"
          },
          "minPrice": {
            "title": "Min price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the chosen currency. Optional."
          },
          "maxPrice": {
            "title": "Max price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the chosen currency. Optional."
          },
          "stars": {
            "title": "Star rating",
            "type": "array",
            "description": "Only properties with these star classes. Leave empty for any.",
            "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",
            "enum": [
              "any",
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Only properties with at least this guest score.",
            "default": "any"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these kinds of properties. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "apartment",
                "hostel",
                "bed_and_breakfast",
                "guest_house",
                "vacation_home",
                "villa",
                "homestay",
                "campground",
                "love_hotel",
                "entire_home"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Hostels",
                "Bed and breakfasts",
                "Guest houses",
                "Vacation homes",
                "Villas",
                "Homestays",
                "Campgrounds",
                "Love hotels",
                "Entire homes and apartments"
              ]
            }
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only properties with a free-cancellation rate.",
            "default": false
          },
          "breakfastIncluded": {
            "title": "Breakfast included only",
            "type": "boolean",
            "description": "Only rates with breakfast included.",
            "default": false
          },
          "nflt": {
            "title": "Advanced: Booking.com filter codes",
            "type": "string",
            "description": "Raw filter ids from the nflt parameter of a Booking.com search URL, joined with \";\", e.g. \"hotelfacility=107\" for free Wi-Fi. Optional."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for names, descriptions and labels: en-us, en-gb, fr, de, es, it, pt-br, ja, ko, zh-cn, vi, th and more.",
            "default": "en-us"
          },
          "includeDetails": {
            "title": "Also scrape full details of every hotel found",
            "type": "boolean",
            "description": "Opens each property from the search results to add the description, facilities, policies, photos and every room and rate (charged as hotel details). Hotel URLs above always get details.",
            "default": false
          },
          "includeReviews": {
            "title": "Scrape guest reviews",
            "type": "boolean",
            "description": "Adds guest reviews for every hotel URL above and every hotel found by search (charged per review).",
            "default": false
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Reviews come 25 per page.",
            "default": 25
          },
          "reviewsSort": {
            "title": "Sort reviews by",
            "enum": [
              "most_relevant",
              "newest",
              "oldest",
              "highest_score",
              "lowest_score"
            ],
            "type": "string",
            "description": "Order of the reviews.",
            "default": "most_relevant"
          },
          "reviewsLanguages": {
            "title": "Review languages",
            "type": "string",
            "description": "Only reviews written in these languages, as ISO codes, e.g. \"en\" or \"en,fr\". Leave empty for all."
          },
          "reviewsTravelerType": {
            "title": "Traveler type",
            "enum": [
              "any",
              "families",
              "couples",
              "groups",
              "solo",
              "business"
            ],
            "type": "string",
            "description": "Only reviews from this kind of traveler.",
            "default": "any"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}