{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper | Scores, Subscores & Filters",
    "description": "Get Booking.com hotel reviews: guest score, liked and disliked text, stay dates, room, traveler type, hotel reply, hotel score and subscores. Monitors new reviews: schedule it with cutoffDate = last run; only newer reviews are returned and charged. Filter by traveler type, score, language. No login.",
    "version": "0.0",
    "x-build-id": "5zpSt5ACK1EKtybD9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~booking-com-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-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/genial_candlestand~booking-com-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-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/genial_candlestand~booking-com-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Hotel URLs",
            "type": "array",
            "description": "Booking.com hotel pages, e.g. https://www.booking.com/hotel/pt/lisboaplaza.html. Language suffixes (.en-gb.html), upper case and query parameters are fine; the same hotel twice is fetched once. Search-result, city and other pages are skipped with a warning.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many reviews of each hotel, counted after the filters. Use a large number such as 100000 to get every review, or 1 to get one row per hotel with its score and category subscores.",
            "default": 100
          },
          "maxItems": {
            "title": "Max reviews in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the number of reviews of the whole run, over all hotels. Empty = no cap besides Max reviews per hotel."
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "NEWEST_FIRST",
              "MOST_RELEVANT",
              "OLDEST_FIRST",
              "SCORE_DESC",
              "SCORE_ASC"
            ],
            "type": "string",
            "description": "Order in which Booking.com returns the reviews; with Max reviews per hotel it decides which reviews you get. Newest first is required for Only reviews since.",
            "default": "NEWEST_FIRST"
          },
          "cutoffDate": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Only reviews published on or after this date (YYYY-MM-DD, UTC) or within a relative period such as \"7 days\" or \"1 month\". Each hotel stops at the first older review. Works only with Sort by = Newest first. Use it for scheduled monitoring."
          },
          "travelerType": {
            "title": "Traveler type",
            "enum": [
              "ALL",
              "FAMILIES",
              "COUPLES",
              "SOLO_TRAVELLERS",
              "GROUP_OF_FRIENDS",
              "BUSINESS_TRAVELLERS"
            ],
            "type": "string",
            "description": "Only reviews by this kind of guest. Works together with all other filters. Business travelers is a trip purpose: their rows still show the guest type (e.g. Solo traveler).",
            "default": "ALL"
          },
          "scoreRange": {
            "title": "Review score",
            "enum": [
              "ALL",
              "SUPERB",
              "GOOD",
              "PASSABLE",
              "POOR",
              "VERY_POOR"
            ],
            "type": "string",
            "description": "Only reviews with a score in this band (Booking.com's own bands on the 1-10 scale). Works together with all other filters.",
            "default": "ALL"
          },
          "timeOfYear": {
            "title": "Time of year of the stay",
            "enum": [
              "ALL",
              "MAR_MAY",
              "JUN_AUG",
              "SEP_NOV",
              "DEC_FEB"
            ],
            "type": "string",
            "description": "Only reviews of stays with a check-in in these months. Works together with all other filters.",
            "default": "ALL"
          },
          "reviewLanguages": {
            "title": "Review languages",
            "type": "array",
            "description": "Only reviews written in these languages, as two-letter codes, e.g. en, de, fr, ja. \"pt\" includes Brazilian Portuguese. Empty = all languages. Codes like pt-BR or names like German are rejected as an input error.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchText": {
            "title": "Text search",
            "type": "string",
            "description": "Only reviews that mention this word or phrase, e.g. breakfast or noise. Works together with all other filters. Empty = no text filter."
          },
          "language": {
            "title": "Language of labels",
            "enum": [
              "en-us",
              "en-gb",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pt-pt",
              "pt-br",
              "ja",
              "zh-cn",
              "zh-tw",
              "ko",
              "ru",
              "pl",
              "tr",
              "ar",
              "sv",
              "uk",
              "cs"
            ],
            "type": "string",
            "description": "Language of Booking.com's labels in the output: traveler type, guest country, subscore names and city. Review texts always stay in the language they were written in.",
            "default": "en-us"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy for the requests. The Apify datacenter proxy (default) works; blocked requests are retried once through a residential proxy automatically.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}