{
  "openapi": "3.0.1",
  "info": {
    "title": "Hotel & Stay Price Comparison",
    "description": "Compares bookable hotels and stays with totalStayPrice, pricePerNight, amenities, rating, reviewCount, and bookingUrl.",
    "version": "0.1",
    "x-build-id": "fQfZtJP2Qng3yib5O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trovevault~hotel-stay-price-comparison/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trovevault-hotel-stay-price-comparison",
        "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/trovevault~hotel-stay-price-comparison/runs": {
      "post": {
        "operationId": "runs-sync-trovevault-hotel-stay-price-comparison",
        "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/trovevault~hotel-stay-price-comparison/run-sync": {
      "post": {
        "operationId": "run-sync-trovevault-hotel-stay-price-comparison",
        "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": [
          "destination",
          "checkIn",
          "checkOut",
          "guests",
          "rooms",
          "accommodationTypes"
        ],
        "properties": {
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "City, neighborhood, region, or destination to search. Use a specific place for cleaner results, such as Lisbon, Portugal or Baixa, Lisbon.",
            "default": "Lisbon, Portugal"
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Arrival date in YYYY-MM-DD format. Prices and room availability are date-dependent.",
            "default": "2026-09-12"
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Departure date in YYYY-MM-DD format. Must be after check-in.",
            "default": "2026-09-15"
          },
          "guests": {
            "title": "Guests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Number of guests staying. This affects pricing, room fit, and short-term rental availability.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of rooms needed for hotel-style stays. Use 1 for most leisure or solo business searches.",
            "default": 1
          },
          "accommodationTypes": {
            "title": "Accommodation types",
            "minItems": 1,
            "type": "array",
            "description": "Types of stays to compare. Short-term rental covers apartment, studio, villa, home, and similar stay listings exposed in the accommodation search.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "aparthotel",
                "motel",
                "hostel",
                "guesthouse",
                "resort",
                "short_term_rental"
              ],
              "enumTitles": [
                "Hotel",
                "Aparthotel",
                "Motel",
                "Hostel",
                "Guesthouse",
                "Resort",
                "Short-term rental"
              ]
            },
            "default": [
              "hotel",
              "aparthotel",
              "guesthouse",
              "short_term_rental"
            ]
          },
          "maxTotalPrice": {
            "title": "Max total stay price",
            "minimum": 1,
            "type": "integer",
            "description": "Preferred maximum price for the whole stay, not just nightly rate. The default is intentionally broad so the built-in smoke run stays resilient.",
            "default": 1000
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "EUR",
              "USD",
              "GBP"
            ],
            "type": "string",
            "description": "Preferred display currency for source searches where supported.",
            "default": "EUR"
          },
          "requiredAmenities": {
            "title": "Required amenities",
            "type": "array",
            "description": "Amenities that should be present. Leave empty for broad searches or smoke tests.",
            "items": {
              "type": "string",
              "enum": [
                "wifi",
                "air_conditioning",
                "kitchen",
                "washer",
                "dryer",
                "free_parking",
                "pool",
                "gym",
                "breakfast",
                "workspace",
                "pet_friendly",
                "family_friendly",
                "accessible",
                "self_check_in"
              ],
              "enumTitles": [
                "Wifi",
                "Air conditioning",
                "Kitchen",
                "Washer",
                "Dryer",
                "Free parking",
                "Pool",
                "Gym",
                "Breakfast",
                "Workspace",
                "Pet friendly",
                "Family friendly",
                "Accessible",
                "Self check-in"
              ]
            },
            "default": []
          },
          "preferredAmenities": {
            "title": "Preferred amenities",
            "type": "array",
            "description": "Nice-to-have amenities. Matching preferred amenities improve value and fit, but missing them is not treated as a hard warning.",
            "items": {
              "type": "string",
              "enum": [
                "wifi",
                "air_conditioning",
                "kitchen",
                "washer",
                "dryer",
                "free_parking",
                "pool",
                "gym",
                "breakfast",
                "workspace",
                "pet_friendly",
                "family_friendly",
                "accessible",
                "self_check_in"
              ],
              "enumTitles": [
                "Wifi",
                "Air conditioning",
                "Kitchen",
                "Washer",
                "Dryer",
                "Free parking",
                "Pool",
                "Gym",
                "Breakfast",
                "Workspace",
                "Pet friendly",
                "Family friendly",
                "Accessible",
                "Self check-in"
              ]
            },
            "default": []
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum ranked accommodation rows to save. The default is one row so the built-in Apify test stays fast; increase it for real comparison runs.",
            "default": 1
          },
          "datasetId": {
            "title": "Dataset ID",
            "type": "string",
            "description": "Optional existing Apify dataset ID to append the same ranked rows to, in addition to the default run dataset."
          },
          "runId": {
            "title": "Run ID",
            "type": "string",
            "description": "Optional identifier copied to output rows for downstream tracing in larger workflows."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}