{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper: Hotel Guest Reviews",
    "description": "Scrape Booking.com guest reviews by hotel link, share link, id, name, place or map area, up to 36 months back, no login. Each review: score, title, liked and disliked text, stay dates, room, traveller type, reviewer country, property reply. JSON, CSV, Excel, API; pay per review and hotel.",
    "version": "0.1",
    "x-build-id": "ktgMArlJhFytaVIBP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~booking-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-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/automation_craft~booking-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-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/automation_craft~booking-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-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": {
          "startUrls": {
            "title": "Booking.com links",
            "type": "array",
            "description": "Hotel page links (www.booking.com/hotel/gb/strandpalace.html, with or without a language part, dates or Booking's tracking parts), review page links (www.booking.com/reviews/gb/hotel/strandpalace.html), links shared from the Booking.com app (www.booking.com/Share-...), search result links (their hotels, as Booking.com lists them for the link's own stay and filters) and shared list links. Rows of another Actor's dataset work too: any object with a \"url\"; its \"userData\" object comes back on every row of that hotel as \"customData\".",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "hotelIds": {
            "title": "Booking.com hotel ids",
            "type": "array",
            "description": "Booking.com hotel ids (digits, for example 230802), or a hotel's country code and page name as in its link (gb/strandpalace).",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Hotel names",
            "type": "array",
            "description": "Hotel names as Booking.com shows them, with the city when the name is common (for example \"Strand Palace London\"). A name is read only when exactly one hotel Booking.com suggests for it holds every word given; otherwise a free row lists the candidates.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Places (their hotels)",
            "type": "array",
            "description": "City, region, district, landmark, airport or country names, matched to Booking.com's own destination (for example \"Paris\" or \"Le Marais, Paris\"). The reviews of the first hotels Booking.com lists there (for a 2 night stay 14 days ahead) are read, up to \"maxHotelsPerSearch\" per place.",
            "items": {
              "type": "string"
            }
          },
          "mapAreas": {
            "title": "Map areas (their hotels)",
            "type": "array",
            "description": "A circle {\"latitude\": 51.5107, \"longitude\": -0.1211, \"radiusKm\": 1} (0.1 to 50 km) or a box {\"north\": 51.52, \"south\": 51.50, \"east\": -0.10, \"west\": -0.14}: the hotels inside it, nearest first, up to \"maxHotelsPerSearch\"."
          },
          "maxHotelsPerSearch": {
            "title": "Hotels per place, search link or map area",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many hotels of each place, search link or map area are read, in Booking.com's order (1 to 1000; 10 when left empty)."
          },
          "maxReviewsPerHotel": {
            "title": "Reviews per hotel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The most reviews read per hotel (0 reads every review Booking.com shows; 100 when left empty). Booking.com shows the reviews of the last 36 months."
          },
          "maxItems": {
            "title": "Reviews per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most reviews the whole run delivers. One run keeps at most 300,000 reviews and 20,000 hotels."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "oldest",
              "highestScore",
              "lowestScore",
              "mostRelevant"
            ],
            "type": "string",
            "description": "The order Booking.com gives the reviews in (newest first when left empty)."
          },
          "reviewsFrom": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Only reviews posted on or after this date: YYYY-MM-DD, or an age such as \"7 days\", \"2 weeks\", \"3 months\" or \"1 year\" counted back from the run's day. Sorted newest first, the walk stops at the first older review."
          },
          "reviewsTo": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Only reviews posted on or before this date: YYYY-MM-DD, or an age such as \"1 month\" counted back from the run's day. Sorted oldest first, the walk stops at the first newer review."
          },
          "languages": {
            "title": "Review languages",
            "type": "array",
            "description": "Language codes as Booking.com lists them, for example en, fr, de, es, it, nl, pt (several are one OR filter). Booking.com files a few regional codes under their language: an \"en\" filter also returns reviews coded \"xu\".",
            "items": {
              "type": "string"
            }
          },
          "travellerTypes": {
            "title": "Traveller types",
            "type": "array",
            "description": "Families, couples, groups of friends, solo travellers, business travellers (several are one OR filter, as on Booking.com).",
            "items": {
              "type": "string",
              "enum": [
                "families",
                "couples",
                "groupsOfFriends",
                "solo",
                "business"
              ],
              "enumTitles": [
                "Families",
                "Couples",
                "Groups of friends",
                "Solo travellers",
                "Business travellers"
              ]
            }
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "business",
              "leisure"
            ],
            "type": "string",
            "description": "Business trips only (Booking.com's own business trip list), or leisure stays only (every review that is not on that list; needs the newest or oldest order). Each review then carries \"tripType\"."
          },
          "scoreBands": {
            "title": "Score bands",
            "type": "array",
            "description": "Booking.com's own score bands, one or several (review scores are whole numbers from 1 to 10; with several bands, for example wonderful and poor, every review is checked on its score).",
            "items": {
              "type": "string",
              "enum": [
                "wonderful",
                "good",
                "decent",
                "poor",
                "veryPoor"
              ],
              "enumTitles": [
                "Wonderful: 9 and 10",
                "Good: 7 and 8",
                "Decent: 5 and 6",
                "Poor: 3 and 4",
                "Very poor: 1 and 2"
              ]
            }
          },
          "minScore": {
            "title": "Lowest score",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only reviews scored at least this (1 to 10)."
          },
          "maxScore": {
            "title": "Highest score",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only reviews scored at most this (1 to 10). With \"minScore\", a range: 1 to 4 reads the poor and very poor reviews."
          },
          "season": {
            "title": "Season of the stay",
            "enum": [
              "marchToMay",
              "juneToAugust",
              "septemberToNovember",
              "decemberToFebruary"
            ],
            "type": "string",
            "description": "Booking.com's own season filter, by the month of the guest's stay."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "A word or phrase in the review, searched by Booking.com (up to 100 characters). The words it matched are listed in \"highlightedTerms\"."
          },
          "topics": {
            "title": "Review topics",
            "type": "array",
            "description": "Topics Booking.com tags reviews with, for example location, breakfast, room, clean, staff, bed, bathroom, wifi, parking, pool, noise, view (several are one OR filter). A hotel is read with the topics Booking.com offers for it; its walk row names the ones it does not offer.",
            "items": {
              "type": "string"
            }
          },
          "stayFrom": {
            "title": "Stay check-in on or after",
            "type": "string",
            "description": "Only reviews of stays that began on or after this date (YYYY-MM-DD)."
          },
          "stayTo": {
            "title": "Stay check-in on or before",
            "type": "string",
            "description": "Only reviews of stays that began on or before this date (YYYY-MM-DD)."
          },
          "onlyWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Leave out reviews that are a score alone (Booking.com lists them beside written reviews; each row says \"ratingOnly\")."
          },
          "minTextLength": {
            "title": "Shortest text",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Only reviews whose title, liked and disliked text run to at least this many characters."
          },
          "withPhotosOnly": {
            "title": "Only reviews with guest photos",
            "type": "boolean",
            "description": "Only reviews that carry guest photos (a few percent of reviews)."
          },
          "withReplyOnly": {
            "title": "Only reviews with a property reply",
            "type": "boolean",
            "description": "Only reviews the property answered."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "reviews",
              "nested"
            ],
            "type": "string",
            "description": "One row per review (and one per hotel), or one row per hotel with its reviews inside (at most 500 a hotel; hotels are then read one at a time)."
          },
          "hotelSummaryOnly": {
            "title": "Hotel summaries only",
            "type": "boolean",
            "description": "One row per hotel and no reviews: its scores, category scores by traveller type, Booking.com's review summary, featured reviews and the counts of every filter value (and of the reviews your filters match)."
          },
          "categoryScoresOnEveryReview": {
            "title": "Category scores on every review",
            "type": "boolean",
            "description": "Copy the hotel's category scores (staff, cleanliness, location and so on) onto each review row."
          },
          "includeRawReview": {
            "title": "Raw review as served",
            "type": "boolean",
            "description": "Add the review exactly as Booking.com served it (\"raw\") to each review row, for your own checks."
          },
          "outputFields": {
            "title": "Review fields to keep",
            "type": "array",
            "description": "Keep only these fields of each review row (for example score, liked, disliked, postedAt); \"type\", \"id\" and \"hotelId\" are always kept. Empty keeps every field.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Label language",
            "type": "string",
            "description": "The language of Booking.com's labels (traveller types, countries, category names), for example en-us, en-gb, de, fr. Review texts stay in the language they were written in."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify's datacenter proxy is used and included in the price. You may give your own http:// or socks5:// proxy links instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}