{
  "openapi": "3.0.1",
  "info": {
    "title": "Kayak Hotels Scraper",
    "description": "Scrape hotels prices from Kayak.com",
    "version": "0.2",
    "x-build-id": "lp0bbKyDbzWq1e3MN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jupri~kayak-hotels/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jupri-kayak-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/jupri~kayak-hotels/runs": {
      "post": {
        "operationId": "runs-sync-jupri-kayak-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/jupri~kayak-hotels/run-sync": {
      "post": {
        "operationId": "run-sync-jupri-kayak-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",
        "required": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Where are you going ?"
          },
          "check_in": {
            "title": "Check-in",
            "type": "string",
            "description": "YYYY-MM-DD <i>(default = tomorrow+1)</i>"
          },
          "check_out": {
            "title": "Check-out",
            "type": "string",
            "description": "YYYY-MM-DD <i>(default = tomorrow+2)</i>"
          },
          "guest_adults": {
            "title": "Adults",
            "type": "integer",
            "description": "",
            "default": 1
          },
          "guest_children": {
            "title": "Children",
            "type": "integer",
            "description": "",
            "default": 0
          },
          "room_count": {
            "title": "Rooms",
            "type": "integer",
            "description": "",
            "default": 1
          },
          "price_mode": {
            "title": "Price Mode",
            "enum": [
              "nightly-base",
              "nightly-total",
              "total"
            ],
            "type": "string",
            "description": ""
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "",
            "default": "USD"
          },
          "sort": {
            "title": "Sorting",
            "enum": [
              "rank",
              "points",
              "price",
              "distance",
              "deals",
              "userRating",
              "stars"
            ],
            "type": "string",
            "description": ""
          },
          "limit": {
            "title": "Limit",
            "type": "integer",
            "description": "try 10000 (default = 5)",
            "default": 5
          },
          "includes:amenities": {
            "title": "amenities",
            "type": "boolean",
            "description": "Hotel Amenities"
          },
          "includes:brands": {
            "title": "Brands",
            "type": "boolean",
            "description": "Brands Info"
          },
          "includes:type": {
            "title": "Type",
            "type": "boolean",
            "description": "Hotel type"
          },
          "includes:bookingsites": {
            "title": "Booking Sites",
            "type": "boolean",
            "description": ""
          },
          "includes:freebies": {
            "title": "Freebies",
            "type": "boolean",
            "description": ""
          },
          "includes:neighborhood": {
            "title": "Neighborhood",
            "type": "boolean",
            "description": ""
          },
          "includes:overview": {
            "title": "Overview",
            "type": "boolean",
            "description": "Hotel Overview"
          },
          "includes:promotedhotel": {
            "title": "Promoted Hotel",
            "type": "boolean",
            "description": ""
          },
          "includes:rentalinformation": {
            "title": "Rental Information",
            "type": "boolean",
            "description": ""
          },
          "includes:nearbylandmarks": {
            "title": "Nearby Landmarks",
            "type": "boolean",
            "description": ""
          },
          "includes:nearbytransport": {
            "title": "Nearby Transport",
            "type": "boolean",
            "description": ""
          },
          "includes:reviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": ""
          },
          "includes:photos": {
            "title": "Photos",
            "type": "boolean",
            "description": ""
          },
          "includes:similar": {
            "title": "Similar Hotels",
            "type": "boolean",
            "description": ""
          },
          "includes:offers": {
            "title": "Price Offers",
            "type": "boolean",
            "description": "make sure to input check_in and check_out correctly."
          },
          "dev_proxy_config": {
            "title": "🌐 PROXY NETWORKING",
            "type": "object",
            "description": "<b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b><a href=https://scrapeops.io/app/register/main target=_blank>ScrapeOps.IO</a></b><br><code>scrapeops://{api-key}</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>"
          },
          "dev_transform_enable": {
            "title": "Enable Custom Fields",
            "type": "boolean",
            "description": ""
          },
          "dev_transform_fields": {
            "title": "Fields List",
            "type": "array",
            "description": "",
            "items": {
              "type": "object",
              "required": [
                "key",
                "value"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key"
                },
                "value": {
                  "type": "string",
                  "title": "Value"
                }
              }
            }
          },
          "dev_dataset_enable": {
            "title": "Enable Custom Storage",
            "type": "boolean",
            "description": ""
          },
          "dev_dataset_clear": {
            "title": "Clear Storage",
            "type": "boolean",
            "description": "Clear Dataset before insert/update."
          },
          "dev_dataset_name": {
            "title": "Dataset Name",
            "type": "string",
            "description": "Use mask to customize dataset name:<br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br><i>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>"
          },
          "dev_dataset_key": {
            "title": "Unique Column",
            "type": "string",
            "description": "Column name from results to use as Key for Key-Value Storage. For example: <code>product_id</code> (must be unique)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}