{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking Reviews Scraper | Guest Reviews & Hotel Replies",
    "description": "Export Booking.com hotel reviews with ratings, positive and negative text, guest countries, stay dates, rooms, photos and hotel replies. Filter by language, traveler type, season and score.",
    "version": "0.1",
    "x-build-id": "85SlTYJWbjcfQLx0a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~booking-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-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/s-r~booking-reviews/runs": {
      "post": {
        "operationId": "runs-sync-s-r-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/s-r~booking-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-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": {
          "start_urls": {
            "title": "Start urls",
            "type": "array",
            "description": "Booking.com hotel URLs; a single URL string is also accepted."
          },
          "hotel_ids": {
            "title": "Hotel ids",
            "type": "array",
            "description": "Positive Booking hotel IDs. Requires country_code; skips hotel-page lookup."
          },
          "country_code": {
            "title": "Country code",
            "type": "string",
            "description": "Two-letter request country code, required with hotel_ids. Does not prove the hotel location."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "oldest",
              "highest_score",
              "lowest_score",
              "most_relevant"
            ],
            "type": "string",
            "description": "Defaults to newest. Score sorting groups by score band, newest first within each band. most_relevant is not complete or reproducible."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Two-letter review language codes; omitted means all languages."
          },
          "customer_type": {
            "title": "Customer type",
            "enum": [
              "all",
              "families",
              "couples",
              "group_of_friends",
              "solo_travellers",
              "business_travellers"
            ],
            "type": "string",
            "description": "Traveler filter. Defaults to all."
          },
          "time_of_year": {
            "title": "Time of year",
            "enum": [
              "all",
              "mar_may",
              "jun_aug",
              "sep_nov",
              "dec_feb"
            ],
            "type": "string",
            "description": "Season filter. Defaults to all."
          },
          "score_range": {
            "title": "Score range",
            "enum": [
              "all",
              "superb",
              "good",
              "average",
              "poor",
              "very_poor"
            ],
            "type": "string",
            "description": "Score band filter. Defaults to all."
          },
          "search_text": {
            "title": "Search text",
            "maxLength": 500,
            "type": "string",
            "description": "Search in original guest review text; defaults to an empty string."
          },
          "max_reviews": {
            "title": "Max reviews",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum delivered unique reviews per hotel, across all cursor pages. Defaults to 100."
          },
          "include_hotel_info": {
            "title": "Include hotel info",
            "type": "boolean",
            "description": "Include a hotel snapshot for hotels with delivered reviews. Defaults to true."
          },
          "cursor": {
            "title": "Cursor",
            "type": "string",
            "description": "Opaque next_cursor from the previous response. Repeat all original inputs unchanged."
          },
          "cutoff_date": {
            "title": "Cutoff date",
            "type": "string",
            "description": "Optional oldest included review publication date, YYYY-MM-DD; only with newest sorting."
          },
          "startUrls": {
            "title": "Starturls",
            "type": "array",
            "description": "Alias for start_urls; also accepts objects with a url property."
          },
          "maxReviewsPerHotel": {
            "title": "Maxreviewsperhotel",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Alias for max_reviews."
          },
          "sortReviewsBy": {
            "title": "Sortreviewsby",
            "enum": [
              "f_relevance",
              "f_recent_desc",
              "f_recent_asc",
              "f_score_desc",
              "f_score_asc"
            ],
            "type": "string",
            "description": "Alias for sort."
          },
          "reviewScores": {
            "title": "Reviewscores",
            "enum": [
              "ALL",
              "REVIEW_ADJ_SUPERB",
              "REVIEW_ADJ_GOOD",
              "REVIEW_ADJ_AVERAGE_PASSABLE",
              "REVIEW_ADJ_POOR",
              "REVIEW_ADJ_VERY_POOR"
            ],
            "type": "string",
            "description": "Alias for score_range."
          },
          "cutoffDate": {
            "title": "Cutoffdate",
            "type": "string",
            "description": "Alias for cutoff_date, YYYY-MM-DD."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}