{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper - Hotel Rating & Review Count",
    "description": "Scrape Booking.com hotel ratings and guest reviews. Get the overall score, total review count and category sub-scores per hotel, or pull every review with reviewer name, country, room type and stay dates. Summary-only mode skips reviews entirely. Fast, HTTP-only. JSON or CSV.",
    "version": "0.0",
    "x-build-id": "ezNO8jiyxBXVG5ine"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~booking-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~booking-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~booking-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "hotelQuery": {
            "title": "Hotel name",
            "type": "string",
            "description": "Hotel name (or 'Hotel Name, City') to fetch reviews for, e.g. 'Sansi Pedralbes Barcelona'. Provide this or Start URLs."
          },
          "startUrls": {
            "title": "Start URLs (Booking.com hotel pages)",
            "type": "array",
            "description": "List of direct Booking.com hotel page URLs (e.g. https://www.booking.com/hotel/es/sansipedralbes.html). Each is resolved to its reviews.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "resolveUrlsViaPage": {
            "title": "Resolve start URLs by reading the hotel page",
            "type": "boolean",
            "description": "Read each start URL's own page to get the hotel's exact identity, name, guest rating and review count. A hotel's URL slug and its listed name are independent (booking.com/hotel/tc/the-alexandra is listed as 'Alexandra Resort - All-Inclusive'), so resolving a URL by searching its name misses renamed properties — on a real 41-hotel list, 13 of them. Turn this off to use name-search resolution only.",
            "default": true
          },
          "maxHotels": {
            "title": "Max hotels per query",
            "minimum": 1,
            "type": "integer",
            "description": "When 'Hotel name' is a broad term (like a city), how many matching hotels to fetch reviews for. Ignored for exact hotel URLs.",
            "default": 1
          },
          "maxReviews": {
            "title": "Max reviews per hotel",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum reviews to fetch per hotel. Set to 0 for all available reviews.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "most_relevant",
              "newest",
              "oldest",
              "score_high",
              "score_low"
            ],
            "type": "string",
            "description": "Review sort order.",
            "default": "most_relevant"
          },
          "cutoffDate": {
            "title": "Only reviews since this date",
            "type": "string",
            "description": "Keep only reviews posted on or after this date, e.g. 2026-01-01. Sorting switches to newest-first automatically so pagination stops at the cutoff instead of reading the hotel's whole history — which makes an incremental re-run much cheaper than a full one."
          },
          "minReviewScore": {
            "title": "Minimum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Keep only reviews scoring at least this, on Booking's 0-10 scale. Use 8 for positive reviews only."
          },
          "maxReviewScore": {
            "title": "Maximum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Keep only reviews scoring at most this, on Booking's 0-10 scale. Use 6 to study complaints."
          },
          "skipReviews": {
            "title": "Skip reviews (hotel summary only)",
            "type": "boolean",
            "description": "When true, the actor does not scrape individual reviews. It emits a single hotel-level row per property (rowType: \"hotel\") carrying the overall guest score, score label, total review count, star rating, address and coordinates. Use this when you only need the headline rating and review count.",
            "default": false
          },
          "includeHotelSummary": {
            "title": "Include hotel summary row",
            "type": "boolean",
            "description": "Emit one rowType: \"hotel\" row per property alongside the review rows, carrying the overall score, total review count and category sub-scores. Off by default so existing dataset consumers are unaffected. Forced on when 'Skip reviews' is enabled.",
            "default": false
          },
          "includeCategoryRatings": {
            "title": "Include category sub-scores",
            "type": "boolean",
            "description": "Add the per-category breakdown (cleanliness, staff, location, comfort, facilities, value, wifi) to the hotel summary row as a categoryRatings object.",
            "default": true
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code for review text and labels (e.g. en-us, de, fr, es).",
            "default": "en-us"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The default Apify proxy is enough: Booking's data API is not geo-gated and hotel pages load fine from a datacenter exit. Residential is supported if you prefer it, but it costs considerably more per run and is not required.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}