{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotels Scraper — Calendar + Delta Monitor",
    "description": "Extract Booking.com hotels with pricing, availability calendar (61 days), multi-destination search, and incremental price change monitoring. 17% cheaper than competitors on per-hotel cost ($0.0025 vs $0.003).",
    "version": "1.0",
    "x-build-id": "kXtik47gFl3rODhff"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/don.eich~booking-hotels/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-don.eich-booking-hotels",
        "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/don.eich~booking-hotels/runs": {
      "post": {
        "operationId": "runs-sync-don.eich-booking-hotels",
        "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/don.eich~booking-hotels/run-sync": {
      "post": {
        "operationId": "run-sync-don.eich-booking-hotels",
        "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": {
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "List of destinations to search (city, region, country, or hotel chain name). Example: [\"Barcelona\", \"Madrid\"]. Multi-destination runs emit results for all destinations in one dataset.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "destinationType": {
            "title": "Destination type",
            "enum": [
              "CITY",
              "REGION",
              "COUNTRY",
              "DISTRICT",
              "AIRPORT"
            ],
            "type": "string",
            "description": "Type hint for destination resolution. If the autocomplete returns a different type, the autocomplete result prevails. CITY covers most use cases.",
            "default": "CITY"
          },
          "checkin": {
            "title": "Check-in date",
            "type": "string",
            "description": "Check-in date in YYYY-MM-DD format. Defaults to tomorrow if omitted."
          },
          "checkout": {
            "title": "Check-out date",
            "type": "string",
            "description": "Check-out date in YYYY-MM-DD format. Defaults to check-in + 2 nights if omitted."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adults.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children.",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO 4217 currency code for prices. USD is the default (more universal for the Apify store). EUR is used by most European users.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code for labels and text fields in the response. en-gb is recommended as the GQL API returns complete text in this language.",
            "default": "en-gb"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "POPULARITY",
              "PRICE",
              "REVIEW_SCORE",
              "DISTANCE"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "POPULARITY"
          },
          "travelPurpose": {
            "title": "Travel purpose",
            "enum": [
              "LEISURE",
              "BUSINESS"
            ],
            "type": "string",
            "description": "Travel purpose filters property types shown in results.",
            "default": "LEISURE"
          },
          "maxResults": {
            "title": "Max results (per destination)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of hotel results per destination. 0 means no limit (paginates until exhausted). Booking.com caps results at approximately 1000 per search regardless of this setting.",
            "default": 100
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Filter by property type. Leave empty to include all types. Multiple types are iterated in separate sub-searches within the same run.",
            "items": {
              "type": "string",
              "enum": [
                "HOTEL",
                "APARTMENT",
                "HOSTEL",
                "VILLA",
                "RESORT",
                "GUESTHOUSE",
                "BED_AND_BREAKFAST",
                "MOTEL"
              ]
            },
            "default": []
          },
          "minReviewScore": {
            "title": "Minimum review score",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Filter results by minimum review score (0-10). Applied to output, not the GQL query."
          },
          "minStarRating": {
            "title": "Minimum star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Filter results by minimum star rating (1-5). Applied to output, not the GQL query."
          },
          "mode": {
            "title": "Operation mode",
            "enum": [
              "SEARCH",
              "CALENDAR",
              "MONITOR"
            ],
            "type": "string",
            "description": "SEARCH: snapshot of hotels for a destination. CALENDAR: price and availability per day for a list of hotelIds. MONITOR: SEARCH + CALENDAR + delta detection against previous run snapshot.",
            "default": "SEARCH"
          },
          "hotelIds": {
            "title": "Hotel IDs (CALENDAR mode)",
            "type": "array",
            "description": "Required in CALENDAR mode. List of Booking.com internal hotel IDs (the hotelId field from SEARCH output). Ignored in SEARCH mode.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "calendarDays": {
            "title": "Calendar days ahead",
            "minimum": 1,
            "maximum": 61,
            "type": "integer",
            "description": "Number of days ahead to fetch in the availability calendar. Maximum is 61 (Booking.com API limit).",
            "default": 61
          },
          "calendarStartDate": {
            "title": "Calendar start date",
            "type": "string",
            "description": "Start date for the availability calendar in YYYY-MM-DD format. Defaults to tomorrow if omitted."
          },
          "deltaThreshold": {
            "title": "Delta threshold (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Minimum price change percentage to emit a PRICE_CHANGE delta event. 0 emits any price change. 5 emits only changes greater than 5%.",
            "default": 0
          },
          "kvStoreName": {
            "title": "KV store name (MONITOR mode)",
            "type": "string",
            "description": "Name of the named Key-Value Store used to persist snapshots between runs in MONITOR mode. Use the same name across all scheduled runs for the same destination.",
            "default": "booking-monitor"
          },
          "includeCalendar": {
            "title": "Include calendar in SEARCH mode",
            "type": "boolean",
            "description": "In SEARCH mode, also fetch AvailabilityCalendar for each hotel result. Adds calendar-row items to the dataset. Increases run time approximately 3x.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum concurrent HTTP requests. Booking.com tolerates 5-8 concurrent requests per session without visible rate limiting.",
            "default": 5
          },
          "requestTimeout": {
            "title": "Request timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout per HTTP request in milliseconds.",
            "default": 30000
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of retries per failed request before marking as error.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy configuration. Residential proxies are REQUIRED — Booking.com blocks datacenter IPs with an AWS WAF challenge. Without residential proxies, all requests will return HTTP 202 challenge responses and the actor will produce 0 results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}