{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper",
    "description": "Booking.com guest reviews for any property or a destination's top properties: score, title, liked and disliked text, language, stay month, nights, room, traveller type, reviewer name and country, owner reply. Free hotel rows with sub-scores and a free score spread. Filters, onlyNew. No login.",
    "version": "0.1",
    "x-build-id": "YLorESIyYYW6jQf1P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~booking-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-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/locaihost~booking-reviews/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-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/locaihost~booking-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-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": "Booking.com property links (www.booking.com/hotel/fr/...), review page links, hotel ids (50901) or hotel names (Ritz Paris). One per line.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "Cities, areas or regions (Lisbon, Shinjuku Tokyo) or Booking.com search links: reviews are read for the top properties there, in Booking.com's own order. Set how many under Advanced.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerHotel": {
            "title": "Reviews per property",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Most reviews returned per property, 1 to 100,000. 0 returns only the free hotel rows.",
            "default": 100
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "oldest",
              "highest",
              "lowest",
              "relevant"
            ],
            "type": "string",
            "description": "Order Booking.com returns reviews in. With newest first, dateFrom and onlyNew stop reading as soon as older reviews start.",
            "default": "newest"
          },
          "languages": {
            "title": "Review languages",
            "type": "array",
            "description": "Two-letter codes (en, de, fr, es, it, nl, ja, zh...). Empty reads every language.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new reviews",
            "type": "boolean",
            "description": "Skip reviews an earlier run with the same property and filters already returned, so scheduled runs pay only for new ones.",
            "default": false
          },
          "maxHotels": {
            "title": "Properties per destination",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many of a destination's top properties to read, 1 to 100.",
            "default": 5
          },
          "minScore": {
            "title": "Minimum score",
            "type": "string",
            "description": "Lowest review score to keep, 1 to 10 (for example 9 or 7.5). Booking.com filters for us when the range fits one of its bands (9+, 7 to 9, 5 to 7, 3 to 5, below 3)."
          },
          "maxScore": {
            "title": "Maximum score",
            "type": "string",
            "description": "Highest review score to keep, 1 to 10. Set maxScore 5 to read only the complaints."
          },
          "travellerType": {
            "title": "Traveller type",
            "enum": [
              "all",
              "families",
              "couples",
              "groups",
              "solo",
              "business"
            ],
            "type": "string",
            "description": "Only reviews from this kind of guest (Booking.com applies it).",
            "default": "all"
          },
          "season": {
            "title": "Time of year",
            "enum": [
              "all",
              "spring",
              "summer",
              "autumn",
              "winter"
            ],
            "type": "string",
            "description": "Only stays in these months (Booking.com applies it).",
            "default": "all"
          },
          "dateFrom": {
            "title": "Reviews written from",
            "type": "string",
            "description": "Only reviews written on or after this day: YYYY-MM-DD, or a span like \"90 days\" that moves with the calendar on scheduled runs."
          },
          "searchText": {
            "title": "Reviews mentioning",
            "type": "string",
            "description": "Only reviews that mention this word or phrase (breakfast, parking, noise). Booking.com applies it."
          },
          "onlyWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Leave out reviews that are a score only, or whose liked and disliked boxes hold only \"n/a\", \"nothing\" and the like.",
            "default": false
          },
          "includeReplies": {
            "title": "Include owner replies",
            "type": "boolean",
            "description": "The property's public reply under each review, with its date.",
            "default": true
          },
          "hotelsOnly": {
            "title": "Hotel rows only",
            "type": "boolean",
            "description": "Return only the free hotel rows (overall score, review count, sub-scores, score bands, languages, traveller types) and no reviews.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}