{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper — Most Comprehensive",
    "description": "From $0.20 per 1,000 reviews — 10× cheaper than typical $2/1k actors. Scrape Booking.com hotel reviews: title, positive/negative text, 0–10 score, stay date, room, nights, traveler type, country, with date/language/keyword filters + a new-review monitor with alerts. No login or API key.",
    "version": "0.1",
    "x-build-id": "JwlvuDH29brdG32u0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~booking-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-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/scrapersdelight~booking-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-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/scrapersdelight~booking-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Hotel URLs",
            "type": "array",
            "description": "Booking.com hotel page URLs — any of these forms works: https://www.booking.com/hotel/gb/royal-national.html, https://www.booking.com/reviews/gb/hotel/royal-national.html, or the shorthand 'gb/royal-national'. One entry per hotel.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on reviews collected per hotel (cost/safety guard). Defaults to 50 for a fast first run — set 0 for ALL reviews of each hotel.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "featured",
              "score_high",
              "score_low"
            ],
            "type": "string",
            "description": "Server-side review ordering. 'Newest first' is best for monitors and date-range scrapes (enables early-stop).",
            "default": "newest"
          },
          "language": {
            "title": "Review language",
            "type": "string",
            "description": "Server-side language filter (Booking's own r_lang). 'all' = every language (most reviews). Use a 2-letter code like en, fr, de, es, it, nl, zh, ja… 'default' lets Booking pick.",
            "default": "all"
          },
          "dateFrom": {
            "title": "Reviews from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only reviews posted ON/AFTER this date. With 'Newest first' the actor stops paginating as soon as it reaches older reviews (early-stop = fewer requests)."
          },
          "dateTo": {
            "title": "Reviews until (YYYY-MM-DD)",
            "type": "string",
            "description": "Only reviews posted ON/BEFORE this date."
          },
          "keyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only reviews whose title/positive/negative text or room type contains this word (case-insensitive). E.g. 'breakfast', 'noise', 'bed bugs'."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "all",
              "leisure",
              "business"
            ],
            "type": "string",
            "description": "Only leisure or business trips.",
            "default": "all"
          },
          "travelerType": {
            "title": "Traveler type",
            "enum": [
              "all",
              "couple",
              "solo",
              "family",
              "group"
            ],
            "type": "string",
            "description": "Only reviews by this traveler type.",
            "default": "all"
          },
          "minScore": {
            "title": "Min score (0–10)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only reviews scored at/above this. Combine with maxScore to isolate e.g. complaints (0–5)."
          },
          "maxScore": {
            "title": "Max score (0–10)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only reviews scored at/below this."
          },
          "stripPersonalData": {
            "title": "Strip personal data (GDPR-friendly)",
            "type": "boolean",
            "description": "ON (default): drop the reviewer's first name from the output (nationality, age group, and review counts are kept — they don't identify a person). Turn OFF only if you have a lawful basis to process reviewer names.",
            "default": true
          },
          "maxRetriesPerPage": {
            "title": "Max retries per page",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Booking.com's AWS WAF challenges requests at random (~2 of 3). Each retry uses a fresh cookie jar + proxy session; a clean page usually arrives within 1–4 tries. Raise this if you see 'no clean reviews page' warnings.",
            "default": 10
          },
          "monitorMode": {
            "title": "Monitor mode (new-review watcher)",
            "type": "boolean",
            "description": "Recurring watcher: diff against the prior run's seen reviews (per hotel) and output/alert ONLY new reviews. Pair with an Apify Schedule and Sort by = Newest first.",
            "default": false
          },
          "alertOnNewReview": {
            "title": "Alert on new reviews",
            "type": "boolean",
            "description": "In monitor mode, deliver an alert for each new review via the channels below.",
            "default": true
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST endpoint for new-review alert payloads (Make / Zapier / n8n / custom). One JSON body per alert."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL for formatted new-review cards."
          },
          "emailRecipients": {
            "title": "Email recipients",
            "type": "array",
            "description": "Email addresses for the new-review digest (sent via apify/send-mail).",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. Booking.com's WAF challenges requests at random — the retry loop beats it with datacenter proxies; switch to RESIDENTIAL for large bulk runs if you see many retries.",
            "default": {
              "useApifyProxy": true
            }
          },
          "diagnose": {
            "title": "Diagnostic mode (dev)",
            "type": "boolean",
            "description": "Dev only. Dumps the raw reviews HTML to the key-value store (DEBUG_REVIEWS_HTML), logs the parsed first review + a pagination check, then exits. Leave off for normal runs.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}