{
  "openapi": "3.0.1",
  "info": {
    "title": "Kayak Hotels Search Scraper",
    "description": "Search Kayak hotel listings with names, star levels, review scores, amenities, provider prices, and property links. Batch location IDs and compare future stays.",
    "version": "1.0",
    "x-build-id": "z8nNooMaRjuobDar3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrappa~kayak-hotels-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrappa-kayak-hotels-search-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~kayak-hotels-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrappa-kayak-hotels-search-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~kayak-hotels-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrappa-kayak-hotels-search-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": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "KAYAK location IDs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "City, airport, or property location IDs to search for hotel offers.",
            "items": {
              "type": "object",
              "required": [
                "location_id"
              ],
              "properties": {
                "location_id": {
                  "title": "Location Id",
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,40}$",
                  "description": "KAYAK location identifier for the city, airport, or property search.",
                  "editor": "textfield"
                },
                "location_type": {
                  "title": "Location Type",
                  "type": "string",
                  "enum": [
                    "city",
                    "airport",
                    "hotel"
                  ],
                  "description": "Type of KAYAK location identifier, such as a city, airport, or hotel. Accepted values: city, airport, hotel.",
                  "editor": "select"
                },
                "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"
                },
                "adults": {
                  "title": "Adults",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9,
                  "description": "Number of adult travelers included in the search.",
                  "editor": "number"
                },
                "rooms": {
                  "title": "Rooms",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 8,
                  "description": "Number of hotel rooms requested.",
                  "editor": "number"
                },
                "child_age": {
                  "title": "Child age",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 17,
                  "description": "Age of one child in the hotel search, from 0 to 17.",
                  "editor": "number"
                },
                "sort": {
                  "title": "Sort",
                  "type": "string",
                  "enum": [
                    "rank_a",
                    "price_a",
                    "review_a"
                  ],
                  "description": "Sort order for returned search results. Accepted values: rank_a, price_a, review_a.",
                  "editor": "select"
                }
              }
            }
          },
          "location_type": {
            "title": "Location Type",
            "enum": [
              "city",
              "airport",
              "hotel"
            ],
            "type": "string",
            "description": "Type of KAYAK location identifier, such as a city, airport, or hotel. Accepted values: city, airport, hotel."
          },
          "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."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult travelers included in the search."
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of hotel rooms requested."
          },
          "child_age": {
            "title": "Child age",
            "minimum": 0,
            "maximum": 17,
            "type": "integer",
            "description": "Age of one child in the hotel search, from 0 to 17."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "rank_a",
              "price_a",
              "review_a"
            ],
            "type": "string",
            "description": "Sort order for returned search results. Accepted values: rank_a, price_a, review_a."
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}