{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Guest Reviews & Category Scores Extractor",
    "description": "Extract every guest review from Booking.com properties by hotel URL or hotel ID, with scores, liked and disliked text, reviewer and stay details, photos, replies, category subscores, city ranges and live filter counts.",
    "version": "1.0",
    "x-build-id": "k80M2KBoKNtcl7OcX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~booking-reviews-scraper-v2/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-booking-reviews-scraper-v2",
        "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/xyrelith-data~booking-reviews-scraper-v2/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-booking-reviews-scraper-v2",
        "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/xyrelith-data~booking-reviews-scraper-v2/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-booking-reviews-scraper-v2",
        "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": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "reviews",
              "summary",
              "both"
            ],
            "type": "string",
            "description": "reviews = review records only; summary = one summary record per hotel; both = summary plus reviews.",
            "default": "reviews"
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound for review records per hotel. Booking returns 25 reviews per request; the actor paginates until this limit, the end of the history, or the reviewsSince cutoff.",
            "default": 100
          },
          "includeTravelerTypeScores": {
            "title": "Include traveler-type scores",
            "type": "boolean",
            "description": "Add per-traveler-type score breakdowns to summary records. Costs 5 extra summary requests per hotel.",
            "default": false
          },
          "hotelUrls": {
            "title": "Booking.com hotel URLs",
            "type": "array",
            "description": "Hotel pages such as https://www.booking.com/hotel/it/artemide.en-gb.html. Any country path and language edition is accepted. You can mix URLs and numeric IDs.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.booking.com/hotel/it/artemide.en-gb.html"
            ]
          },
          "hotelIds": {
            "title": "Numeric hotel IDs",
            "type": "array",
            "description": "Booking.com hotel IDs (the number in the property data, e.g. 80051). IDs are resolved to the hotel name, city and reviews.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxHotels": {
            "title": "Max hotels",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Stop after this many resolved hotels from the combined URL and ID list.",
            "default": 25
          },
          "sortBy": {
            "title": "Sort reviews",
            "enum": [
              "most_relevant",
              "newest_first",
              "oldest_first",
              "highest_score",
              "lowest_score"
            ],
            "type": "string",
            "description": "Booking's own review order.",
            "default": "most_relevant"
          },
          "scoreBand": {
            "title": "Score band",
            "enum": [
              "all",
              "superb",
              "good",
              "passable",
              "poor",
              "very_poor"
            ],
            "type": "string",
            "description": "Booking's live review-score band.",
            "default": "all"
          },
          "travelerType": {
            "title": "Traveler type",
            "enum": [
              "all",
              "families",
              "couples",
              "solo",
              "groups",
              "business"
            ],
            "type": "string",
            "description": "Who stayed: families, couples, solo travellers, groups or business travellers.",
            "default": "all"
          },
          "reviewLanguage": {
            "title": "Review language",
            "enum": [
              "ALL",
              "aa",
              "ab",
              "ae",
              "af",
              "ak",
              "am",
              "an",
              "ar",
              "as",
              "av",
              "ay",
              "az",
              "ba",
              "be",
              "bg",
              "bh",
              "bi",
              "bm",
              "bn",
              "bo",
              "br",
              "bs",
              "ca",
              "ce",
              "ch",
              "co",
              "cr",
              "cs",
              "cu",
              "cv",
              "cy",
              "da",
              "de",
              "dv",
              "dz",
              "ee",
              "el",
              "en",
              "eo",
              "es",
              "et",
              "eu",
              "fa",
              "ff",
              "fi",
              "fj",
              "fo",
              "fr",
              "fy",
              "ga",
              "gd",
              "gl",
              "gn",
              "gu",
              "gv",
              "ha",
              "he",
              "hi",
              "ho",
              "hr",
              "ht",
              "hu",
              "hy",
              "hz",
              "ia",
              "id",
              "ie",
              "ig",
              "ii",
              "ik",
              "io",
              "is",
              "it",
              "iu",
              "ja",
              "jv",
              "ka",
              "kg",
              "ki",
              "kj",
              "kk",
              "kl",
              "km",
              "kn",
              "ko",
              "kr",
              "ks",
              "ku",
              "kv",
              "kw",
              "ky",
              "la",
              "lb",
              "lg",
              "li",
              "ln",
              "lo",
              "lt",
              "lu",
              "lv",
              "mg",
              "mh",
              "mi",
              "mk",
              "ml",
              "mn",
              "mr",
              "ms",
              "mt",
              "my",
              "na",
              "nb",
              "nd",
              "ne",
              "ng",
              "nl",
              "nn",
              "no",
              "nr",
              "nv",
              "ny",
              "oc",
              "oj",
              "om",
              "or",
              "os",
              "pa",
              "pi",
              "pl",
              "ps",
              "pt",
              "qu",
              "rm",
              "rn",
              "ro",
              "ru",
              "rw",
              "sa",
              "sc",
              "sd",
              "se",
              "sg",
              "si",
              "sk",
              "sl",
              "sm",
              "sn",
              "so",
              "sq",
              "sr",
              "ss",
              "st",
              "su",
              "sv",
              "sw",
              "ta",
              "te",
              "tg",
              "th",
              "ti",
              "tk",
              "tl",
              "tn",
              "to",
              "tr",
              "ts",
              "tt",
              "tw",
              "ty",
              "ug",
              "uk",
              "ur",
              "uz",
              "ve",
              "vi",
              "vo",
              "wa",
              "wo",
              "xh",
              "yi",
              "yo",
              "za",
              "zh",
              "zu",
              "xu"
            ],
            "type": "string",
            "description": "Language the guest wrote in (ISO 639-1). Live counts per language are in the summary record.",
            "default": "ALL"
          },
          "timeOfYear": {
            "title": "Time of year of the stay",
            "enum": [
              "all",
              "mar_may",
              "jun_aug",
              "sep_nov",
              "dec_feb"
            ],
            "type": "string",
            "description": "Season of the stay, based on the review's check-in date.",
            "default": "all"
          },
          "topicKeywords": {
            "title": "Topic keywords",
            "type": "array",
            "description": "Only reviews that Booking tags with these topics. Valid names: breakfast, location, room, clean, bar, restaurant, spa, bed, dinner, suite, view, bathroom, quiet, noise, shower, bus, balcony, coffee, pool, window, luggage, family, checkin, toilet, heat, lift, cold, hot, baby, loud.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "reviewSearchText": {
            "title": "Search text inside reviews",
            "type": "string",
            "description": "Free-text search over review titles and bodies (case-insensitive, Booking's own search).",
            "default": ""
          },
          "reviewsSince": {
            "title": "Reviews since (optional)",
            "type": "string",
            "description": "YYYY-MM-DD cutoff applied client-side. Useful for incremental runs. Leave empty for all reviews.",
            "default": ""
          },
          "language": {
            "title": "Interface language",
            "enum": [
              "en-gb",
              "en-us",
              "de",
              "fr",
              "es",
              "es-ar",
              "es-mx",
              "it",
              "pt-pt",
              "pt-br",
              "nl",
              "ru",
              "ja",
              "zh-cn",
              "zh-tw",
              "ko",
              "ar",
              "tr",
              "pl",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "hu",
              "ro",
              "bg",
              "el",
              "he",
              "hi",
              "id",
              "ms",
              "th",
              "vi",
              "uk",
              "sk",
              "sl",
              "hr",
              "sr",
              "lt",
              "lv",
              "et",
              "is",
              "ca",
              "eu",
              "gl",
              "fa",
              "af",
              "sw",
              "sq",
              "mk",
              "bs",
              "hy",
              "ka",
              "az",
              "kk",
              "uz",
              "mn",
              "ne",
              "si",
              "ta",
              "te",
              "ml",
              "kn",
              "mr",
              "bn",
              "gu",
              "pa",
              "ur",
              "my",
              "km",
              "lo",
              "tl",
              "cy",
              "ga",
              "mt",
              "lb",
              "fo"
            ],
            "type": "string",
            "description": "Booking interface language used for labels and translations. Review text keeps the guest's original language.",
            "default": "en-gb"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}