{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper: Hotel Prices, OTA Rates & Price Alerts",
    "description": "Scrape Google Hotels for any city or hotel list: nightly and stay prices with taxes, ratings, every booking site's rate and guest reviews, up to 1,000 hotels per search. Price-change mode saves only new or changed prices, with webhook alerts. Send to Sheets, Zapier or Make.",
    "version": "0.2",
    "x-build-id": "8ZBdedhewhAoChOwd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-google-hotels-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/getascraper~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-google-hotels-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/getascraper~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-google-hotels-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",
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, neighborhoods or landmarks to search, one per line, typed the way you would type them into Google Hotels (for example Paris, Shibuya Tokyo or Times Square New York). Every location is searched for every stay set below.",
            "items": {
              "type": "string"
            }
          },
          "hotels": {
            "title": "Hotel pages or ids",
            "type": "array",
            "description": "Track specific hotels instead of, or as well as, a location search. Paste Google Hotels hotel page links or hotel ids, one per line. Each hotel is priced for every stay set below, which suits a daily rate-tracking schedule for a fixed list of hotels.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "hotels",
              "vacationRentals"
            ],
            "type": "string",
            "description": "Hotels searches the Hotels tab, which also mixes in the few vacation rentals Google shows there. Vacation rentals searches homes and apartments instead. Applies to location searches only.",
            "default": "hotels"
          },
          "checkInDate": {
            "title": "Check-in date",
            "type": "string",
            "description": "A calendar date, or a relative value such as 14 days, which always means that many days after the run starts, so a scheduled run keeps looking the same distance ahead. Leave empty for 14 days from the run date. Past dates are refused before any search starts."
          },
          "checkOutDate": {
            "title": "Check-out date",
            "type": "string",
            "description": "A calendar date, or a relative value such as 16 days counted from the run date like the check-in. Leave empty for a 1-night stay. Stays of up to 30 nights are supported."
          },
          "sweepDays": {
            "title": "Extra check-in days",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Also price each of the next N check-in days with the same length of stay, which gives a price calendar in one run. 0 prices only the dates above. Every extra day repeats each search, so it multiplies the run time and the number of results.",
            "default": 0
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Adults sharing the room. Google prices stays for 1 to 6 adults.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age per child, for example [8, 5]. Hotels price children by age, so every child needs an age from 0 to 17. Leave the list empty for adults only.",
            "default": []
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "The currency of every price, as a 3-letter code such as USD, EUR, GBP, INR or JPY.",
            "default": "USD"
          },
          "countryCode": {
            "title": "Google region",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "The 2-letter country code of the Google region to search from, such as us, gb, de or in. Booking-site offers follow the country of the connection, so for another market's local prices also pick a proxy located in that country below.",
            "default": "us"
          },
          "languageCode": {
            "title": "Language",
            "pattern": "^[A-Za-z]{2,3}(-[A-Za-z]{2})?$",
            "type": "string",
            "description": "Language for hotel descriptions, amenity names and review translations, such as en, fr, de or ja.",
            "default": "en"
          },
          "minPrice": {
            "title": "Minimum nightly price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only hotels whose nightly price is at least this much, in the currency above. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum nightly price",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only hotels whose nightly price is at most this much, in the currency above. Leave empty for no maximum."
          },
          "hotelClass": {
            "title": "Hotel class",
            "type": "array",
            "description": "Only hotels with one of these official star classes. Leave empty for any class, including places without a class.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2-star",
                "3-star",
                "4-star",
                "5-star"
              ]
            },
            "default": []
          },
          "minRating": {
            "title": "Minimum guest rating",
            "enum": [
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Only hotels whose Google guest rating is at least this high. Leave empty for any rating."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lowestPrice",
              "highestRating",
              "mostReviewed"
            ],
            "type": "string",
            "description": "The order Google returns hotels in, kept across every page. With a sort and a result limit, you get the cheapest, best-rated or most-reviewed hotels first.",
            "default": "relevance"
          },
          "includeOffers": {
            "title": "Include booking-site offers",
            "type": "boolean",
            "description": "Add every booking site's price for the stay (the hotel's own site, Booking.com, Expedia, Agoda and the rest), each with its nightly price, stay total and link, plus the hotel's address, phone and Google Maps place id. Adds one request per hotel.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add guest reviews from Google and partner sites, with the rating, text, visit date and the owner's reply.",
            "default": false
          },
          "maxReviewsPerHotel": {
            "title": "Reviews per hotel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many reviews to collect per hotel, in Google's default order. Every 10 reviews take one request.",
            "default": 10
          },
          "includeReviewerProfile": {
            "title": "Include reviewer profile links",
            "type": "boolean",
            "description": "Also add each reviewer's profile link and photo. These are personal data, so they stay off unless you need them. Reviewer names are always included.",
            "default": false
          },
          "maxResults": {
            "title": "Max hotels per location",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most hotels to return for each location and stay. One search page holds about 18 hotels, and pages are read until this number is reached or Google has no more results.",
            "default": 20
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed prices",
            "type": "boolean",
            "description": "Return only hotels that are new since the last run of this monitor, or whose nightly price changed, for the same locations, hotels, dates, guests and filters. Each row then says NEW or UPDATED and carries the previous price. Use it on a schedule to get price alerts instead of the full list every time.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name for this monitor's memory, using letters, digits and hyphens (up to 40 characters). Runs with the same name and settings compare against each other. Leave empty to name the memory after the search settings."
          },
          "minChangePercent": {
            "title": "Minimum price change",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Ignore price moves smaller than this percentage, so small currency swings do not count as changes. 0 reports every change in the displayed price.",
            "default": 0
          },
          "notificationWebhookUrl": {
            "title": "Notification webhook URL",
            "type": "string",
            "description": "Optional HTTPS address that receives a JSON summary of the new and changed hotels at the end of every monitor run that finds any. Private, local and plain HTTP addresses are refused."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The connection used for Google. The default Apify Proxy works for most runs. For local booking-site prices in a country other than the US, choose a proxy located in that country.",
            "default": {
              "useApifyProxy": true
            }
          },
          "retryOnStrongerConnection": {
            "title": "Retry blocked pages on a stronger connection",
            "type": "boolean",
            "description": "If Google blocks or drops a page twice on the default connection, retry it through a stronger, more reliable connection. Off by default because those retries cost more. At most 100 such retries are made per run, and the run summary reports how many were used.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}