{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper: Scores, Texts & Hotel Replies",
    "description": "Booking.com reviews scraper: give hotel URLs, ids or a booking-hotel-search dataset; get guest reviews with score, liked and disliked text, date, stay, room, traveller type and hotel reply, plus category scores. Any language: reseñas, avaliações, Bewertungen, avis, recensioni. No guest names.",
    "version": "0.1",
    "x-build-id": "baeTO0SvZuTQpBDXl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~booking-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-booking-reviews",
        "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/siteacs~booking-reviews/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-booking-reviews",
        "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/siteacs~booking-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-booking-reviews",
        "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": {
          "hotels": {
            "title": "Hotels",
            "type": "array",
            "description": "One per line: a Booking.com hotel page URL as your browser shows it (https://www.booking.com/hotel/pt/avenida-palace.html; dates and other parameters are ignored) or Booking's numeric hotel id (39446). Any property type works: hotels, apartments, hostels, homes. A URL is matched to its hotel id through Booking's own search box, or the hotel page when the search box does not find it. An unknown hotel or a line that is not a hotel gives one free row saying so.",
            "items": {
              "type": "string"
            }
          },
          "hotelSearchDatasetId": {
            "title": "Hotels from a booking-hotel-search run",
            "type": "string",
            "description": "Optional: the dataset of a siteacs/booking-hotel-search run (pick it, or paste its id from the run's Storage tab). Every hotel row in it is read here, by its hotel id, so a city's hotels from that actor get their reviews here. Up to 100,000 rows."
          },
          "maxReviewsPerHotel": {
            "title": "Maximum reviews per hotel",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop each hotel after this many reviews, in the sort order below. 0 reads every review Booking lists for the hotel (Booking keeps about the last 3 years).",
            "default": 100
          },
          "summaryOnly": {
            "title": "Summary rows only (no review texts)",
            "type": "boolean",
            "description": "Save only each hotel's summary row: review score, review count, the seven category scores and the counts by language, traveller type and score band. Each hotel summary with reviews is then charged as one review; hotels with no reviews stay free.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "most_relevant",
              "oldest",
              "highest_score",
              "lowest_score"
            ],
            "type": "string",
            "description": "Booking's own review sorts. With a maximum per hotel, the sort decides which reviews you get.",
            "default": "newest"
          },
          "newerThan": {
            "title": "Only reviews written since",
            "type": "string",
            "description": "Optional: a date (YYYY-MM-DD) or an age such as \"30 days\" or \"6 months\". Older reviews are skipped, and with the newest-first sort the hotel stops at the first older page, which makes a daily or weekly monitoring run cheap."
          },
          "reviewLanguages": {
            "title": "Review languages",
            "type": "array",
            "description": "Optional: only reviews written in these languages, as Booking's language filter codes (en, de, fr, es, it, pt, nl, ja, zh, ko, ru, he, ar...; en-gb or de-DE read as en, de). pt includes Brazilian Portuguese and zh includes Taiwanese Chinese; pt-br, zh-tw, es-mx and es-ar ask for one variant. Empty: every language.",
            "items": {
              "type": "string"
            }
          },
          "travelerType": {
            "title": "Traveller type",
            "enum": [
              "all",
              "families",
              "couples",
              "groups_of_friends",
              "solo",
              "business"
            ],
            "type": "string",
            "description": "Booking's traveller type filter.",
            "default": "all"
          },
          "scoreBand": {
            "title": "Review score",
            "enum": [
              "all",
              "wonderful",
              "good",
              "okay",
              "poor",
              "very_poor"
            ],
            "type": "string",
            "description": "Booking's review score filter.",
            "default": "all"
          },
          "searchText": {
            "title": "Reviews that mention",
            "type": "string",
            "description": "Optional: a word or phrase, searched by Booking in the review texts (\"breakfast\", \"parking\", \"noise\")."
          },
          "language": {
            "title": "Labels language",
            "enum": [
              "en-us",
              "en-gb",
              "de",
              "fr",
              "es",
              "es-ar",
              "it",
              "pt-pt",
              "pt-br",
              "nl",
              "pl",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "tr",
              "ru",
              "uk",
              "sv",
              "da",
              "no",
              "fi",
              "is",
              "et",
              "lv",
              "lt",
              "hr",
              "sr",
              "sl",
              "ca",
              "ja",
              "ko",
              "zh-cn",
              "zh-tw",
              "th",
              "vi",
              "id",
              "ms",
              "tl",
              "ar",
              "he",
              "hi"
            ],
            "type": "string",
            "description": "Language of Booking's labels in the rows: room type names, guest countries and traveller type labels. Review texts always come as the guest wrote them.",
            "default": "en-us"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Booking's review list. Residential is not needed.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry refused requests on residential proxy",
            "type": "boolean",
            "description": "When Booking refuses a request on the proxy above, retry it on Apify residential proxy, within a traffic budget per run (5 MB plus 2 KB per saved review).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Hotels at a time",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many hotels are read in parallel. Each hotel's pages are read one after another.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}