{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Reviews Scraper",
    "description": "Export flat, deduplicated Booking.com reviews with positive and negative text, scores, stay context, property replies when exposed, filters, coverage, and optional changes-only monitoring.",
    "version": "0.9",
    "x-build-id": "Sa1h3mwE0YHePaLq9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luminar~booking-reviews-scraper-private-v1/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luminar-booking-reviews-scraper-private-v1",
        "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/luminar~booking-reviews-scraper-private-v1/runs": {
      "post": {
        "operationId": "runs-sync-luminar-booking-reviews-scraper-private-v1",
        "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/luminar~booking-reviews-scraper-private-v1/run-sync": {
      "post": {
        "operationId": "run-sync-luminar-booking-reviews-scraper-private-v1",
        "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",
        "required": [
          "propertyUrls"
        ],
        "properties": {
          "propertyUrls": {
            "title": "🔗 Booking.com property URLs or IDs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One or more Booking.com property URLs, or compact cc/slug IDs such as me/regent-porto-montenegro. Duplicate targets are removed before requests. Changes-only monitoring accepts at most 3 unique properties per run so zero-change cost stays bounded.",
            "items": {
              "type": "string",
              "minLength": 3
            }
          },
          "mode": {
            "title": "Coverage mode",
            "enum": [
              "recent",
              "full"
            ],
            "type": "string",
            "description": "Recent is a fast newest-first window and is reported as bounded unless the source positively ends. Full keeps paginating until source exhaustion, the review cap or a safety ceiling.",
            "default": "recent"
          },
          "maxReviewsPerProperty": {
            "title": "Maximum reviews per property",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum review rows considered for each property. Higher limits can require more pages and runtime. Reaching this cap is reported as bounded or capped, never source-complete.",
            "default": 50
          },
          "language": {
            "title": "Review language",
            "pattern": "^$|^[a-z]{2}(-[a-z]{2})?$",
            "type": "string",
            "description": "Optional Booking language code such as en, de or fr. Leave blank to keep every source language.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort reviews",
            "enum": [
              "newest",
              "relevant",
              "oldest",
              "score_high",
              "score_low"
            ],
            "type": "string",
            "description": "Newest first is recommended for repeat monitoring. Other orders can require more paging before date filters can stop work.",
            "default": "newest"
          },
          "dateFrom": {
            "title": "Published on or after",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional review publication-date lower bound. Newest-first runs stop early once older dated rows are reached."
          },
          "dateTo": {
            "title": "Published on or before",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional review publication-date upper bound."
          },
          "minScore": {
            "title": "Minimum score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Inclusive 0–10 score filter applied to extracted rows."
          },
          "maxScore": {
            "title": "Maximum score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Inclusive 0–10 score filter applied to extracted rows."
          },
          "travelerTypes": {
            "title": "Traveler types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional deterministic match against source traveler/stay tags.",
            "items": {
              "type": "string",
              "enum": [
                "couple",
                "family",
                "solo",
                "group",
                "business",
                "leisure"
              ],
              "enumTitles": [
                "Couples",
                "Families",
                "Solo travelers",
                "Groups",
                "Business travelers",
                "Leisure travelers"
              ]
            }
          },
          "reviewerCountries": {
            "title": "Reviewer countries",
            "type": "array",
            "description": "Optional exact, case-insensitive match against the public country label exposed by Booking.com.",
            "items": {
              "type": "string"
            }
          },
          "repliesOnly": {
            "title": "Only reviews with property replies",
            "type": "boolean",
            "description": "Turn on to keep only reviews where Booking.com exposes an official property response.",
            "default": false
          },
          "includePropertyResponse": {
            "title": "Include property replies",
            "type": "boolean",
            "description": "Preserve official property reply text and date when exposed. Disabling this reduces output depth but does not reduce source requests.",
            "default": true
          },
          "incrementalState": {
            "title": "Track review status across runs",
            "type": "boolean",
            "description": "Classify stable reviews as NEW, UPDATED or UNCHANGED. A newly added property reply is UPDATED. Partial or capped snapshots never infer deletion.",
            "default": true
          },
          "outputMode": {
            "title": "Dataset output",
            "enum": [
              "all",
              "changes_only"
            ],
            "type": "string",
            "description": "All matching reviews writes every unique row. Changes-only is for monitoring: the first run writes all rows as NEW; compatible repeats write only NEW or UPDATED rows and suppress UNCHANGED rows for free. It requires review-status tracking and accepts at most 3 unique properties per run.",
            "default": "all"
          },
          "maxConcurrency": {
            "title": "Concurrent properties",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallelizes properties, not pages within one property. Excessive concurrency can increase challenge/retry cost.",
            "default": 3
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard total across all pages and retries.",
            "default": 120
          },
          "maxRuntimeSecs": {
            "title": "Maximum runtime (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Stops new page work before the requested runtime boundary.",
            "default": 240
          },
          "maxCostUsd": {
            "title": "Internal infrastructure ceiling",
            "minimum": 0.02,
            "maximum": 25,
            "type": "number",
            "description": "Internal conservative compute-and-transfer guard; this is not the buyer PPE charge.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}