{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper | Prices, Rate Parity & Alerts",
    "description": "Scrape Google Hotels prices: every booking site's rate for many hotels and dates per run, Google's low/typical/high verdict and usual price range, rate parity against the official site. Area searches too. Monitor mode returns only price drops. Plain HTTP.",
    "version": "0.1",
    "x-build-id": "rTDOfjKOefvaYwhTW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexmorain~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexmorain-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/alexmorain~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexmorain-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/alexmorain~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexmorain-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": {
          "hotels": {
            "title": "Hotels",
            "type": "array",
            "description": "One hotel per line: its Google Hotels URL (<code>https://www.google.com/travel/hotels/entity/Ch...</code>), its hotel ID (the <code>Ch...</code> part, also in the <code>entityId</code> field of earlier results) or its name with the city (<code>Hotel Excelsior Lisboa</code>).<br><br>A name Google does not recognize as one hotel gives a free <code>hotel-not-found</code> row, never the price of some other hotel.",
            "items": {
              "type": "string"
            }
          },
          "searches": {
            "title": "Area searches",
            "type": "array",
            "description": "Free text as typed on Google Hotels: <code>hotels in Lisbon</code>, <code>hotels near Times Square</code>, <code>5-star hotels in Bangkok</code>. Each search returns up to <b>Hotels per search</b> hotels with their lowest price, as <code>hotel-listing</code> rows. Google's pages overlap; every hotel comes once and is charged once.",
            "items": {
              "type": "string"
            }
          },
          "maxHotelsPerSearch": {
            "title": "Hotels per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum distinct hotels per area search and check-in date. Google shows 20 per page.",
            "default": 20
          },
          "includeOffers": {
            "title": "Every booking site's rate for search results",
            "type": "boolean",
            "description": "Off: each search result is a <code>hotel-listing</code> row (lowest price only). On: each hotel found is priced like the hotels above (<code>hotel-price</code> rows with every booking site, Google's verdict and parity), one extra page per hotel.",
            "default": false
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "First check-in date, <code>YYYY-MM-DD</code>. Leave empty to use <b>Check in in N days</b>, which keeps a scheduled run valid forever."
          },
          "checkInInDays": {
            "title": "Check in in N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Used when <b>Check-in date</b> is empty: check-in is today plus N days. Monitor mode then compares \"30 days ahead\" from one run to the next.",
            "default": 30
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of the stay.",
            "default": 1
          },
          "dateCount": {
            "title": "Check-in dates",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Number of consecutive check-in dates, starting from the first one: <code>30</code> gives a 30-day price calendar for every hotel, one row per hotel and date.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Guests per room. Google Hotels prices up to 6 adults.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children ages",
            "type": "array",
            "description": "One age per child (0 to 17), for example <code>[5, 9]</code>.",
            "default": []
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO code, e.g. <code>USD</code>, <code>EUR</code>, <code>GBP</code>.",
            "default": "USD"
          },
          "country": {
            "title": "Country (market)",
            "type": "string",
            "description": "Two-letter code of the searcher's market (<code>gl</code>), not the hotel's country. It changes which booking sites are listed. Prices from the default US market are shown before tax; <code>stayTotalPrice</code> always includes taxes and fees.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google interface language (<code>hl</code>): <code>en-US</code>, <code>fr</code>, <code>de</code>, <code>ja</code>…",
            "default": "en-US"
          },
          "monitorMode": {
            "title": "Monitor mode",
            "enum": [
              "off",
              "changes",
              "drops"
            ],
            "type": "string",
            "description": "For scheduled runs. The Actor remembers the lowest nightly price of each hotel stay between runs.<br>• <b>off</b>: no memory.<br>• <b>changes</b>: only stays seen for the first time or whose price moved.<br>• <b>drops</b>: only price drops (and stays under the target price). Unchanged stays are neither returned nor charged.",
            "default": "off"
          },
          "dropThresholdPercent": {
            "title": "Minimum drop (%)",
            "minimum": 0,
            "maximum": 99,
            "type": "number",
            "description": "In <b>drops</b> mode, ignore drops smaller than this percentage.",
            "default": 0
          },
          "targetPrice": {
            "title": "Target nightly price",
            "minimum": 0,
            "type": "number",
            "description": "Optional. A stay whose lowest nightly price falls to or under this amount (in the chosen currency) is returned as a <code>target-price</code> alert."
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Runs with the same name share one price memory. Empty: the memory is tied to this exact list of hotels, searches and dates."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. At the end of a run that returned something, the Actor POSTs a JSON summary with the alerts. It carries <code>text</code> and <code>content</code> fields, so a Slack or Discord incoming webhook URL works as is."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) is enough. A page Google refuses is retried on a fresh IP, then through residential proxies at no extra charge to you.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}