{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Price Calendar Scraper",
    "description": "Track a hotel and its comp set on Booking.com across every check-in date: nightly rate, stay total, pre-discount price, taxes, room type, cancellation policy, rooms left. Sold-out dates flagged; currency, language and tax regime verified in every response. Not affiliated with Booking.com.",
    "version": "0.1",
    "x-build-id": "Qx7GMhJQHLFeftDXm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aleksandrbooking~booking-rate-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aleksandrbooking-booking-rate-calendar",
        "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/aleksandrbooking~booking-rate-calendar/runs": {
      "post": {
        "operationId": "runs-sync-aleksandrbooking-booking-rate-calendar",
        "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/aleksandrbooking~booking-rate-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-aleksandrbooking-booking-rate-calendar",
        "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": [
          "hotelUrls"
        ],
        "properties": {
          "hotelUrls": {
            "title": "Hotel page URLs",
            "type": "array",
            "description": "Links to Booking.com hotel pages, one per line, e.g. https://www.booking.com/hotel/ge/radisson-blu-batumi.html. Any dates, language or tracking parameters already in the link are ignored; the actor sets its own.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "First check-in date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Leave empty to start from tomorrow. Today is allowed; a date in the past is moved to today."
          },
          "days": {
            "title": "How many check-in dates",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of consecutive check-in dates, per hotel. Each hotel and date pair is one billable row, so 5 hotel URLs over 30 dates is 150 rows. The form starts at 14 so a first run finishes quickly; raise it for a fuller calendar. Longer runs also cost less per row, because the flat start charge of the run is spread over more rows.",
            "default": 30
          },
          "nights": {
            "title": "Nights per stay",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay used for every check-in date. Booking shows a total for the stay; the actor also reports the price per night.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adult guests. Occupancy changes the price, so compare like for like.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children ages",
            "maxItems": 10,
            "type": "array",
            "description": "Age of each child as a JSON list, e.g. [5, 9]. Booking prices children by age, so a plain count is not enough. Leave empty for adults only.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            },
            "default": []
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms to price for the same stay.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "GEL",
              "PLN",
              "TRY",
              "CHF",
              "CAD",
              "AUD",
              "AED",
              "SEK",
              "JPY"
            ],
            "type": "string",
            "description": "Prices are verified to actually come back in this currency. If Booking.com returns a different one, the date is rejected and not charged. Only currencies whose price format has been verified are offered. Ask in Issues if you need another.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-gb",
              "de",
              "fr",
              "es",
              "it",
              "pl",
              "ru"
            ],
            "type": "string",
            "description": "Language of room names and policies. Verified in every response. English (US) is deliberately absent: with lang=en-us Booking.com ignores the requested currency and prices the property in its local one, so every date would be rejected. Use English (UK); the room descriptions are the same.",
            "default": "en-gb"
          },
          "datesConcurrency": {
            "title": "Dates fetched in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many dates one browser tab requests at the same time. Higher is faster but uses more memory: each response expands to 4–5 MB in RAM. Keep 3 on 4 GB.",
            "default": 3
          },
          "datesPerSession": {
            "title": "Dates per browser session",
            "minimum": 10,
            "maximum": 365,
            "type": "integer",
            "description": "How many dates to take from one warmed-up browser tab before starting a fresh one with a new proxy. Measured: 100 dates in a single session with zero rejections. The minimum is 10. Below it the hotel page is re-warmed for almost every date, which costs about eleven times the traffic and returns the same data.",
            "default": 100
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxies are the default and they are what this Actor is priced on: measured on Booking.com, 10 of 10 dates collected with zero rejections. Apify residential groups are not available here; they cost about twenty times more per row than the Actor earns, so a run that asked for one is refused in the first seconds and nothing is charged. If you need a specific country, or a residential address, choose Custom proxies and supply your own: the Actor uses them exactly as given. The country matters for more than blocking. Booking quotes a rate with or without local tax depending on where it thinks you are, so the exit address decides what pricesIncludeTaxes says in every row.",
            "default": {
              "useApifyProxy": true
            }
          },
          "dryRun": {
            "title": "Dry run (owner only)",
            "type": "boolean",
            "description": "Produce data without charging events. Honored only for runs started by the actor owner (used for the owner's own monitoring); ignored for everyone else.",
            "default": false
          },
          "selectorOverrides": {
            "title": "Selector overrides (advanced)",
            "type": "object",
            "description": "Emergency hatch for the day Booking.com changes its markup and a new Actor version is not out yet. Maps a selector name to a CSS selector, e.g. {\"taxes\": \".prd-taxes-new\"}. Names that are not recognised and values that do not look like a CSS selector are ignored and logged. Leave empty unless the run log tells you a selector stopped matching.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}