{
  "openapi": "3.0.1",
  "info": {
    "title": "🏨 Booking.com Reviews Scraper | Hotel Ratings",
    "description": "Extract verified guest reviews from Booking.com Hotels, Stays & Attractions from $0.50/1k results — including positive/negative feedback, scores, stay dates, room types, traveler types, sorting & filters.",
    "version": "0.0",
    "x-build-id": "wx51eu6tV7YD551dK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/misterkhan~booking-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-misterkhan-booking-reviews-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/misterkhan~booking-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-misterkhan-booking-reviews-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/misterkhan~booking-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-misterkhan-booking-reviews-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": {
          "hotelUrl": {
            "title": "Hotel or Stay URL",
            "type": "string",
            "description": "Direct Booking.com Hotel or Review URL (e.g. 'https://www.booking.com/hotel/us/the-plaza.html'). When provided, startUrls is optional."
          },
          "startUrls": {
            "title": "Start URLs (Hotels, Review Pages & Attractions)",
            "minItems": 1,
            "type": "array",
            "description": "Paste one or more Booking.com URLs from any of the 3 supported review-bearing formats: (1) Hotel/Stay page (`https://www.booking.com/hotel/{cc}/{slug}.html`), (2) Standalone Hotel Reviews page (`https://www.booking.com/reviews/{cc}/hotel/{slug}.html`), or (3) Attraction/Tour page (`https://www.booking.com/attractions/{cc}/{slug}.html`).",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Booking.com Hotel (/hotel/{cc}/...), Hotel Reviews (/reviews/{cc}/hotel/...), or Attraction (/attractions/{cc}/...) URL",
                  "pattern": "^https://([a-zA-Z0-9-]+\\.)?booking\\.com/(hotel/[a-zA-Z]{2}/|reviews/[a-zA-Z]{2}/hotel/|attractions/[a-zA-Z]{2}/)[^/?#\\s]+"
                }
              }
            },
            "default": [
              {
                "url": "https://www.booking.com/hotel/us/the-plaza.html"
              }
            ]
          },
          "maxItems": {
            "title": "Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of guest reviews to collect (Free plan runs are capped at 40 items per run; paid Apify plans support unlimited extraction).",
            "default": 20
          },
          "sortBy": {
            "title": "Sort Reviews By",
            "enum": [
              "most_relevant",
              "newest",
              "oldest",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Order in which reviews are retrieved from Booking.com (`most_relevant`, `newest`, `oldest`, `highest_rating`, or `lowest_rating`).",
            "default": "most_relevant"
          },
          "scoreFilter": {
            "title": "Filter by Review Score",
            "enum": [
              "all",
              "5",
              "4",
              "3",
              "2",
              "1"
            ],
            "type": "string",
            "description": "Filter reviews by rating tier (maps to Booking.com's 1–10 hotel score buckets and 1–5 star attraction ratings).",
            "default": "all"
          },
          "travelerType": {
            "title": "Filter by Traveler Type",
            "enum": [
              "all",
              "family",
              "couple",
              "friends",
              "solo",
              "business",
              "pet"
            ],
            "type": "string",
            "description": "Filter reviews by guest/traveler group (`family`, `couple`, `friends`, `solo`, `business`, or `pet`).",
            "default": "all"
          },
          "language": {
            "title": "Filter by Review Language",
            "enum": [
              "all",
              "en-us",
              "en-gb",
              "fr",
              "de",
              "es",
              "it",
              "nl",
              "pt-br",
              "ja"
            ],
            "type": "string",
            "description": "Filter reviews by language code (e.g. `all`, `en-us`, `en-gb`, `fr`, `de`, `es`, `it`, `nl`, `ja`, `pt-br`).",
            "default": "all"
          },
          "searchKeyword": {
            "title": "Search Keyword Filter",
            "type": "string",
            "description": "Optional keyword or phrase to filter reviews containing specific topics (e.g., `breakfast`, `wifi`, `clean`, `skip the line`).",
            "default": ""
          },
          "timeOfYear": {
            "title": "Filter by Time of Year (Attractions)",
            "enum": [
              "all",
              "Q1",
              "Q2",
              "Q3",
              "Q4"
            ],
            "type": "string",
            "description": "Optional season filter for Booking.com Attractions (`Q1`: Jan–Mar, `Q2`: Apr–Jun, `Q3`: Jul–Sep, `Q4`: Oct–Dec).",
            "default": "all"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}