{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking Reviews Scraper",
    "description": "Extracts Booking.com hotel reviews by hotel URL: score, title, liked and disliked text, date, guest country, traveller type, room, nights, stay dates, hotel reply and photos as JSON. Booking's own score, season, language and traveller filters, only-new monitoring.",
    "version": "0.0",
    "x-build-id": "J3iVPtN0nhBOt0cmo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apifry~booking-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apifry-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/apifry~booking-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apifry-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/apifry~booking-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apifry-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": [
          "hotels"
        ],
        "properties": {
          "hotels": {
            "title": "Hotels",
            "type": "array",
            "description": "Add Booking.com hotel addresses, e.g. https://www.booking.com/hotel/gb/the-savoy.html (any language version and any query parameters work), or the short form gb/the-savoy. One hotel per line.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Enter the most reviews to keep per hotel. Booking.com keeps reviews for about 36 months and the run can reach all of them. You pay only for reviews stored in the dataset.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "newest",
              "relevant",
              "oldest",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Order in which Booking.com returns reviews. Date cut-offs and 'Only new since the last run' always use newest first.",
            "default": "newest"
          },
          "onlyNewerThan": {
            "title": "Only reviews newer than",
            "type": "string",
            "description": "Enter a date (2026-10-01) or a relative period (7 days, 12 hours, 2 weeks). Older reviews are skipped and not charged; reading stops once it reaches them."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "Turn on for scheduled monitoring: each run keeps only reviews newer than the newest one seen by your previous run with the same hotel and filters. The mark is kept in the key-value store 'apifry-booking-reviews-state' in your account.",
            "default": false
          },
          "scoreRanges": {
            "title": "Review scores",
            "type": "array",
            "description": "Select Booking.com score ranges to keep, e.g. Poor and Very poor for complaints. Booking.com filters on its side, so other reviews are not read and not charged. Leave empty for all scores.",
            "items": {
              "type": "string",
              "enum": [
                "superb",
                "good",
                "passable",
                "poor",
                "very_poor"
              ],
              "enumTitles": [
                "Wonderful: 9+",
                "Good: 7–9",
                "Passable: 5–7",
                "Poor: 3–5",
                "Very poor: 1–3"
              ]
            }
          },
          "travelerTypes": {
            "title": "Traveller types",
            "type": "array",
            "description": "Select traveller types to keep (Booking.com's own filter). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "families",
                "couples",
                "groups",
                "solo",
                "business"
              ],
              "enumTitles": [
                "Families",
                "Couples",
                "Groups of friends",
                "Solo travellers",
                "Business travellers"
              ]
            }
          },
          "seasons": {
            "title": "Time of year",
            "type": "array",
            "description": "Select seasons of the stay to keep (Booking.com's own filter). Leave empty for the whole year.",
            "items": {
              "type": "string",
              "enum": [
                "mar_may",
                "jun_aug",
                "sep_nov",
                "dec_feb"
              ],
              "enumTitles": [
                "March–May",
                "June–August",
                "September–November",
                "December–February"
              ]
            }
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Add language codes (en, de, fr, es, zh …) to keep only reviews written in those languages (Booking.com's own filter). Leave empty for every language.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Guest countries",
            "type": "array",
            "description": "Add two-letter country codes (US, GB, DE, CN …) to keep only reviews by guests from those countries. Booking.com has no such filter, so the run reads the hotel's reviews and keeps the matching ones (others are free). After the first 750 reviews it reads on only while at least 1 in 75 matches, so for a very rare country you get the newest matches, not all of them — SUMMARY says so. Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 10,
            "type": "array",
            "description": "Add up to 10 words or phrases (breakfast, wifi, noise). Booking.com searches each one on its side and only reviews whose title or text contains at least one of them are kept (case-insensitive). Leave empty to keep all.",
            "items": {
              "type": "string"
            }
          },
          "stripPersonalData": {
            "title": "Leave out guest names and photos",
            "type": "boolean",
            "description": "Turn on to leave out the guest's name, avatar and review photos (for GDPR-friendly exports). Guest country, traveller type and the review itself are kept.",
            "default": false
          },
          "includeTags": {
            "title": "Tag every review (topics, sentiment)",
            "type": "boolean",
            "description": "Adds topics (cleanliness, staff & service, location, noise, breakfast & food, Wi-Fi, room & bed comfort, price & value, check-in & reception), sentiment and isFeatureRequest (suggestions) to each review. Tagged reviews are charged the 'Review with tags' price instead of 'Review'. Reviews in languages other than EN, DE, FR, ES, PT, IT, RU stay untagged at the plain review price. Rule-based, not AI.",
            "default": false
          },
          "includeInsights": {
            "title": "Insights per hotel",
            "type": "boolean",
            "description": "Writes record INSIGHTS: complaint topics with shares and quotes, frequent words and phrases in low-score reviews, suggestions, hotel reply rate. Charged once per hotel with at least 30 reviews in this run; failed, incomplete or tiny samples are free. Based on the reviews this run collected — Booking's own score stays in SUMMARY.",
            "default": false
          },
          "includeTrends": {
            "title": "Trends per hotel",
            "type": "boolean",
            "description": "Writes record TRENDS: average rating, review count and low-score share per week or month with change to the previous period, a spike flag, and the same by guest country. Charged once per hotel with at least 30 reviews in this run. Use no score or keyword filter for a true picture.",
            "default": false
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy (datacenter)",
            "type": "boolean",
            "description": "Leave off: the run opens one hotel page in a browser to pass Booking.com's bot check, then reads reviews directly — the fastest and cleanest way in our tests. Turn on only if runs stop with 'Booking.com keeps refusing this IP'; the whole run then uses one Apify datacenter IP.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}