{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper",
    "description": "Booking.com Reviews Scraper extracts every guest review of Booking.com hotels: score, liked and disliked text, title, guest country, traveller type, room, stay dates, nights, hotel reply and photos, with Booking's own sort and filters.",
    "version": "1.0",
    "x-build-id": "k5J4vrcdTCl7DnRou"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~booking-com-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-booking-com-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/neuro-scraper~booking-com-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-booking-com-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/neuro-scraper~booking-com-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-booking-com-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": {
          "startUrls": {
            "title": "Booking.com hotel URLs",
            "type": "array",
            "description": "Hotel pages, e.g. https://www.booking.com/hotel/pt/pestana-palace.html (any language or query parameters). One review list per hotel.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxReviews": {
            "title": "Max reviews per hotel",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many reviews to return for EACH hotel (2 hotels x 100 = up to 200). Booking serves 10 reviews per page; the Actor follows the pages until this number or the end.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "relevant",
              "newest",
              "oldest",
              "score_desc",
              "score_asc"
            ],
            "type": "string",
            "description": "Booking's own review order.",
            "default": "relevant"
          },
          "cutoffDate": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Only reviews written on or after this date (YYYY-MM-DD) or a period such as \"90 days\". With Newest first the Actor stops at the first older review."
          },
          "scoreFilter": {
            "title": "Review score",
            "enum": [
              "all",
              "wonderful",
              "good",
              "okay",
              "poor",
              "very_poor"
            ],
            "type": "string",
            "description": "Booking's score filter.",
            "default": "all"
          },
          "customerType": {
            "title": "Traveller type",
            "enum": [
              "all",
              "families",
              "couples",
              "solo",
              "groups",
              "business"
            ],
            "type": "string",
            "description": "Booking's traveller-type filter.",
            "default": "all"
          },
          "languages": {
            "title": "Review languages",
            "type": "array",
            "description": "Only reviews written in these languages (two-letter codes such as en, de, fr). Empty = all languages.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Site language",
            "type": "string",
            "description": "Language Booking.com is shown in (en-us, en-gb, de, fr, es, it, nl, pt-pt ...): traveller types, room names and labels follow it. Review texts stay in the language the guest wrote them in.",
            "default": "en-us"
          },
          "timeOfYear": {
            "title": "Time of year",
            "enum": [
              "all",
              "mar_may",
              "jun_aug",
              "sep_nov",
              "dec_feb"
            ],
            "type": "string",
            "description": "Booking's season filter (when the review was posted).",
            "default": "all"
          },
          "searchText": {
            "title": "Reviews mentioning",
            "type": "string",
            "description": "Only reviews that mention this word (Booking's review search), e.g. breakfast."
          },
          "onlyWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Skip reviews with neither a liked nor a disliked text.",
            "default": false
          },
          "minReviewScore": {
            "title": "Minimum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Keep reviews with a score at or above this (1-10). 0 = no minimum.",
            "default": 0
          },
          "maxReviewScore": {
            "title": "Maximum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Keep reviews with a score at or below this (1-10). 0 = no maximum.",
            "default": 0
          },
          "includeReplies": {
            "title": "Include hotel replies",
            "type": "boolean",
            "description": "Keep the property's reply to a review in partnerReply. Off = reply fields empty.",
            "default": true
          },
          "includeHotelSummary": {
            "title": "Add a hotel summary row",
            "type": "boolean",
            "description": "Adds one row per hotel (recordType hotelSummary) with the overall score, review count and the category scores (staff, cleanliness, location ...).",
            "default": false
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stops the whole run after this many rows.",
            "default": 1000
          },
          "debugSaveRaw": {
            "title": "Debug",
            "type": "boolean",
            "description": "Internal check: stores the captured request and the first answer in the key-value store.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Hotels in parallel",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many hotels are read at the same time, each in its own browser session and IP. 3 is fast and gentle.",
            "default": 3
          },
          "hotelQuery": {
            "title": "Hotel names (search instead of URLs)",
            "type": "array",
            "description": "Hotel names, one per line (e.g. 'Pestana Palace Lisbon'). Each name is searched on Booking.com and the first hotel found is scraped like a hotel URL; the log shows which hotel was picked. Add the city for an exact match.",
            "items": {
              "type": "string"
            }
          },
          "includeCategoryRatings": {
            "title": "Add category scores to every review row",
            "type": "boolean",
            "description": "Adds the hotel's category scores (staff, facilities, cleanliness, comfort, value for money, location, free WiFi) as hotelRatingScores to every review row. Switch off for smaller rows; the summary row keeps them.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies (the default) are required. A blocked session is replaced by a new IP.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}