{
  "openapi": "3.0.1",
  "info": {
    "title": "Booking.com Hotel Prices Scraper",
    "description": "Compare Booking.com hotel prices by destination and stay dates, with property names, quoted prices, review scores, locations, and links. Search several cities in one run.",
    "version": "1.0",
    "x-build-id": "8IFj05hs2fCjnIW4k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrappa~booking-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrappa-booking-prices-scraper",
        "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/thescrappa~booking-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrappa-booking-prices-scraper",
        "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/thescrappa~booking-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrappa-booking-prices-scraper",
        "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": [
          "destinations"
        ],
        "properties": {
          "destinations": {
            "title": "Destinations",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Cities, regions, or destination names to search for Booking.com hotel prices.",
            "items": {
              "type": "object",
              "required": [
                "ss"
              ],
              "properties": {
                "ss": {
                  "title": "Ss",
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 200,
                  "description": "Destination, e.g. \"Paris\" or \"New York\".",
                  "editor": "textfield"
                },
                "checkin": {
                  "title": "Checkin",
                  "type": "string",
                  "description": "Hotel check-in date in YYYY-MM-DD format. When omitted, check-in is set to 30 days from today.",
                  "editor": "textfield"
                },
                "checkout": {
                  "title": "Checkout",
                  "type": "string",
                  "description": "Hotel check-out date in YYYY-MM-DD format, after check-in. When omitted, check-out is set to two days after check-in.",
                  "editor": "textfield"
                },
                "group_adults": {
                  "title": "Group Adults",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30,
                  "nullable": true,
                  "description": "Number of adults (1-30). Defaults to Booking.com default.",
                  "editor": "number"
                },
                "group_children": {
                  "title": "Group Children",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 20,
                  "nullable": true,
                  "description": "Number of children (0-20).",
                  "editor": "number"
                },
                "no_rooms": {
                  "title": "No Rooms",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30,
                  "nullable": true,
                  "description": "Number of rooms (1-30).",
                  "editor": "number"
                },
                "dest_id": {
                  "title": "Dest Id",
                  "type": "integer",
                  "nullable": true,
                  "description": "Booking.com destination id when known (e.g. -1456928 for Paris). Helps Booking render resolved city result pages.",
                  "editor": "number"
                },
                "dest_type": {
                  "title": "Dest Type",
                  "type": "string",
                  "enum": [
                    "city",
                    "region",
                    "district",
                    "hotel",
                    "landmark",
                    "airport"
                  ],
                  "nullable": true,
                  "description": "Booking.com destination type when known: city, region, district, hotel, landmark, or airport. Accepted values: city, region, district, hotel, landmark, airport.",
                  "editor": "select"
                },
                "lang": {
                  "title": "Lang",
                  "type": "string",
                  "maxLength": 10,
                  "nullable": true,
                  "description": "UI language hint (e.g. en-us, de).",
                  "editor": "textfield"
                },
                "currency": {
                  "title": "Currency",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 3,
                  "nullable": true,
                  "description": "3-letter currency code (e.g. EUR, USD).",
                  "editor": "textfield"
                }
              }
            }
          },
          "checkin": {
            "title": "Checkin",
            "type": "string",
            "description": "Hotel check-in date in YYYY-MM-DD format. When omitted, check-in is set to 30 days from today."
          },
          "checkout": {
            "title": "Checkout",
            "type": "string",
            "description": "Hotel check-out date in YYYY-MM-DD format, after check-in. When omitted, check-out is set to two days after check-in."
          },
          "group_adults": {
            "title": "Group Adults",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of adults (1-30). Defaults to Booking.com default."
          },
          "group_children": {
            "title": "Group Children",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Number of children (0-20)."
          },
          "no_rooms": {
            "title": "No Rooms",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of rooms (1-30)."
          },
          "dest_id": {
            "title": "Dest Id",
            "type": "integer",
            "description": "Booking.com destination id when known (e.g. -1456928 for Paris). Helps Booking render resolved city result pages."
          },
          "dest_type": {
            "title": "Dest Type",
            "enum": [
              "city",
              "region",
              "district",
              "hotel",
              "landmark",
              "airport"
            ],
            "type": "string",
            "description": "Booking.com destination type when known: city, region, district, hotel, landmark, or airport. Accepted values: city, region, district, hotel, landmark, airport."
          },
          "lang": {
            "title": "Lang",
            "maxLength": 10,
            "type": "string",
            "description": "UI language hint (e.g. en-us, de)."
          },
          "currency": {
            "title": "Currency",
            "minLength": 3,
            "maxLength": 3,
            "type": "string",
            "description": "3-letter currency code (e.g. EUR, USD)."
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum dataset items to save across this entire run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}