{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Multi-Query Scraper & Price Comparison",
    "description": "Search multiple hotel queries at once and compare prices across 30+ OTAs. Collect 5 data sections per hotel — Overview, Prices, Reviews, Photos, About — all from Google Hotels.",
    "version": "1.0",
    "x-build-id": "PgqXblfej9dZZdwaD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jy-labs~google-hotels-multi-query-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jy-labs-google-hotels-multi-query-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/jy-labs~google-hotels-multi-query-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jy-labs-google-hotels-multi-query-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/jy-labs~google-hotels-multi-query-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jy-labs-google-hotels-multi-query-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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search Queries",
            "maxItems": 5,
            "type": "array",
            "description": "List of hotel search queries (e.g., 'hotels in New York', 'hotels in Singapore Orchard Road', 'luxury hotels Tokyo Shinjuku'). Each query runs a separate search. Maximum 5 queries per run.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in Date",
            "type": "string",
            "description": "Check-in date in YYYY-MM-DD format. Defaults to tomorrow if not set."
          },
          "checkOut": {
            "title": "Check-out Date",
            "type": "string",
            "description": "Check-out date in YYYY-MM-DD format. Defaults to day after check-in if not set."
          },
          "adults": {
            "title": "Number of Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult guests per room.",
            "default": 2
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "sg",
              "jp",
              "kr",
              "de",
              "fr",
              "au",
              "ca",
              "in",
              "th",
              "br",
              "it",
              "es",
              "nl",
              "ae",
              "hk",
              "tw",
              "my",
              "id",
              "ph",
              "vn"
            ],
            "type": "string",
            "description": "Country code for localized results. Affects hotel availability, pricing, and OTA options shown.",
            "default": "us"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "JPY",
              "KRW",
              "SGD",
              "AUD",
              "CAD",
              "INR",
              "THB",
              "BRL",
              "TWD",
              "MYR",
              "IDR",
              "PHP",
              "VND",
              "AED",
              "HKD",
              "CHF",
              "SEK",
              "NOK",
              "DKK"
            ],
            "type": "string",
            "description": "Currency code for prices.",
            "default": "USD"
          },
          "maxResults": {
            "title": "Max Hotels Per Query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of hotels to extract per search query. Higher values require more scrolling and take longer.",
            "default": 20
          },
          "scrapeOtaPrices": {
            "title": "Scrape Hotel Detail Pages",
            "type": "boolean",
            "description": "When enabled, visits each hotel's detail page to extract OTA prices, reviews, photos, and about data. When disabled, only extracts basic info from search results (faster, cheaper).",
            "default": true
          },
          "dataSections": {
            "title": "Data Sections to Collect",
            "type": "array",
            "description": "Select which data sections to collect from each hotel's detail page. Overview and Prices are always included. More sections = slower but richer data.",
            "items": {
              "type": "string",
              "enum": [
                "overview",
                "prices",
                "reviews",
                "photos",
                "about"
              ],
              "enumTitles": [
                "Overview (always included)",
                "Prices / OTA Comparison (always included)",
                "Guest Reviews",
                "Hotel Photos",
                "About / Amenities"
              ]
            },
            "default": [
              "overview",
              "prices"
            ]
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "price_low",
              "price_high",
              "rating",
              "reviews",
              "name"
            ],
            "type": "string",
            "description": "How to sort the final output.",
            "default": "price_low"
          },
          "minRating": {
            "title": "Minimum Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only include hotels with this minimum Google rating (0-5). Set to 0 for no filter.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum Price Per Night",
            "minimum": 0,
            "type": "integer",
            "description": "Only include hotels at or below this nightly price (in selected currency). Set to 0 for no limit.",
            "default": 0
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "HTTP proxy configuration. Residential proxies strongly recommended for Google Hotels scraping."
          },
          "requestHandlerTimeoutSecs": {
            "title": "Request Handler Timeout (seconds)",
            "minimum": 120,
            "maximum": 1800,
            "type": "integer",
            "description": "Maximum time allowed per request (search page or detail page). Increase for slow proxies or large result sets.",
            "default": 600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}