{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Scraper: Search & Stay Prices",
    "description": "Export deduplicated Booking.com search-card properties with stay totals, derived nightly prices, ratings, availability, stable IDs, and transparent coverage.",
    "version": "0.10",
    "x-build-id": "JNT8yI3uCNxNo4yfg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luminar~booking-hotels-scraper-private-v1/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luminar-booking-hotels-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-hotels-scraper-private-v1/runs": {
      "post": {
        "operationId": "runs-sync-luminar-booking-hotels-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-hotels-scraper-private-v1/run-sync": {
      "post": {
        "operationId": "run-sync-luminar-booking-hotels-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",
        "properties": {
          "destination": {
            "title": "📍 Destination",
            "type": "string",
            "description": "Enter a city, region, country, landmark or property name. This field is ignored when one or more Booking.com URLs are supplied below."
          },
          "startUrls": {
            "title": "🔗 Booking.com URLs",
            "maxItems": 10,
            "type": "array",
            "description": "Optional public Booking.com search-result or property URLs. URLs take precedence over Destination. Explicit date and guest fields below take precedence over matching URL query parameters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "Booking.com URL",
                  "description": "Paste a public Booking.com search-result or property URL.",
                  "pattern": "^https://([a-z0-9-]+\\.)?booking\\.com/"
                }
              }
            }
          },
          "maxProperties": {
            "title": "Maximum properties",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum unique property rows delivered across every URL and flexible date window. Higher values can require more pages and runtime; reaching the limit is reported as capped, not source-complete.",
            "default": 50
          },
          "mode": {
            "title": "Extraction mode",
            "pattern": "^fast$",
            "type": "string",
            "description": "Compatibility field for the active fast search-card contract. It is hidden because there is currently no buyer-facing mode choice.",
            "default": "fast"
          },
          "checkIn": {
            "title": "Check-in",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional stay check-in date. Supply it together with Check-out to attach live price and availability context to the requested stay."
          },
          "checkOut": {
            "title": "Check-out",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional stay check-out date. It must be after Check-in."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adult guests used for availability and displayed-price context.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms requested for the stay query.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Number of child guests. When greater than zero, provide exactly one matching age below for every child.",
            "default": 0
          },
          "childrenAges": {
            "title": "Child ages",
            "type": "array",
            "description": "Enter one age from 0 to 17 for each child, for example [4, 9] for two children. The number of ages must match Children.",
            "items": {
              "type": "integer"
            },
            "default": []
          },
          "flexibleDays": {
            "title": "Flexible stay window",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "7"
            ],
            "type": "string",
            "description": "Runs explicit shifted stays and keeps every row tied to exact dates. ±7 days creates up to 15 search targets and can materially increase requests, runtime and transfer.",
            "default": "0"
          },
          "propertyTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional native Booking.com property-type filters. Leave empty to keep every property type.",
            "items": {
              "type": "string",
              "enum": [
                "hotels",
                "apartments",
                "hostels",
                "bed_and_breakfasts",
                "guest_houses",
                "resorts",
                "villas",
                "vacation_homes"
              ],
              "enumTitles": [
                "Hotels",
                "Apartments",
                "Hostels",
                "Bed and breakfasts",
                "Guest houses",
                "Resorts",
                "Villas",
                "Vacation homes"
              ]
            }
          },
          "starCategories": {
            "title": "Official star categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional native official star-category filters. Quality ratings used by some apartments are not converted into official stars.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minGuestScore": {
            "title": "Minimum guest score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Minimum Booking.com guest-review score from 0 to 10. The source may apply its own score buckets."
          },
          "minPrice": {
            "title": "Minimum displayed price",
            "minimum": 0,
            "type": "number",
            "description": "Optional native price filter in the selected currency. Booking.com may interpret the filter as nightly while output preserves the displayed stay total and price basis."
          },
          "maxPrice": {
            "title": "Maximum displayed price",
            "minimum": 0,
            "type": "number",
            "description": "Optional native upper price filter in the selected currency."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "popularity",
              "price_low",
              "price_high",
              "stars",
              "distance",
              "review_score"
            ],
            "type": "string",
            "description": "Native Booking.com result order applied to every search target.",
            "default": "popularity"
          },
          "currency": {
            "title": "Requested currency",
            "enum": [
              "EUR",
              "USD",
              "GBP",
              "CHF",
              "CAD",
              "AUD",
              "JPY",
              "PLN",
              "AED",
              "INR",
              "TRY"
            ],
            "type": "string",
            "description": "Requested Booking.com display currency. Each row still preserves the currency actually exposed by the source.",
            "default": "EUR"
          },
          "language": {
            "title": "Language / locale",
            "enum": [
              "en-gb",
              "en-us",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pt-pt",
              "pl",
              "ja",
              "ko",
              "zh-cn"
            ],
            "type": "string",
            "description": "Booking.com display locale used for localized source labels and address text.",
            "default": "en-gb"
          },
          "maxPagesPerTarget": {
            "title": "Maximum search pages per target",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Page ceiling for each destination, URL and date target. A visible next page at this ceiling is reported as capped rather than source-complete.",
            "default": 2
          },
          "maxRequests": {
            "title": "Maximum live source requests",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Hard request total across search pages, retries and automatic routing. The run stops before the next request would exceed it.",
            "default": 20
          },
          "maxRuntimeSecs": {
            "title": "Maximum runtime (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Wall-clock source-work ceiling. New source work stops before another request after this time.",
            "default": 240
          },
          "maxCostUsd": {
            "title": "Internal infrastructure ceiling",
            "minimum": 0.02,
            "maximum": 5,
            "type": "number",
            "description": "Internal conservative compute-and-transfer guard; this is not the buyer PPE charge.",
            "default": 0.25
          },
          "maxBuyerChargeUsd": {
            "title": "Internal buyer charge ceiling",
            "minimum": 0.02,
            "maximum": 5,
            "type": "number",
            "description": "Optional second PPE ceiling enforced inside this Actor for integrations that cannot forward Apify's run-level maxTotalChargeUsd. It can only lower, never raise, the platform allowance."
          },
          "requestTimeoutSecs": {
            "title": "Per-request timeout (seconds)",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "Maximum wait for one live Booking.com request before that target is reported partial or failed.",
            "default": 35
          },
          "maxRetries": {
            "title": "Retries per source request",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Challenge, transient HTTP and network failures can retry up to this many times. Every retry counts against Maximum live source requests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}